Disable helpdesk for email account
Disables helpdesk functionality for a specific email account. Any account-level override settings are preserved but not applied until re-enabled.
What this does:
- Disables helpdesk processing for the specified email account
- Stops automatic email pulling and task creation for this account
- Preserves all account-specific settings for future re-enabling
- The account settings remain in the database but are not used
How it works:
- The system verifies the email account exists and belongs to the workspace
- Sets
isEnabled: falsefor the account’s helpdesk settings - All account-level overrides are preserved (task defaults, auto-reply, etc.)
- The account is removed from automated email pulling cron jobs
After disabling:
- No new emails will be pulled from this account
- No tasks will be created from emails sent to this account
- Existing tasks and email history remain unchanged
- Settings can be restored by re-enabling the account
Use cases:
- Temporarily disable helpdesk for an account (e.g., during maintenance)
- Stop processing emails for a specific account without losing configuration
- Test different configurations by disabling/enabling accounts
Error handling: Returns 404 if the email account is not found or doesn’t belong to the workspace.
Note: This endpoint requires the WsSettings.manageSettings permission.
DELETE
/helpdesk/email-accounts/{accountId}/disableAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
accountIdstringrequiredEmail account ID
Responses
200Helpdesk disabled for email account successfully
displayNamestringrequiredDisplay name for the email account. This is the friendly name shown in the UI and in email headers.
emailstringrequiredEmail address of the account. This is the address that receives helpdesk emails.
helpdeskEnabledbooleanrequiredWhether helpdesk is currently enabled for this email account. When enabled, emails sent to this account will be automatically processed and converted to tasks. When disabled, emails are ignored.
idstringrequiredUnique identifier for the email account. Use this ID to reference the account in other API calls.
settingsobjectAccount-specific helpdesk settings that override workspace defaults. Only present when helpdesk is enabled for this account. Null fields inherit from workspace defaults. If helpdesk is disabled, this field will be undefined.
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
404Email account not found
Request
curl -X DELETE "https://leadtime.app/api/public/helpdesk/email-accounts/account-uuid-123/disable" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/helpdesk/email-accounts/account-uuid-123/disable", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.delete(
"https://leadtime.app/api/public/helpdesk/email-accounts/account-uuid-123/disable",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"displayName": "Support Team",
"email": "support@example.com",
"helpdeskEnabled": true,
"id": "account-uuid-123",
"settings": {
"defaultReplyBody": "<p>Thank you for contacting us.</p>",
"emailAccountId": "account-uuid-123",
"emailAddress": "support@example.com",
"emailDisplayName": "Support Team",
"isEnabled": true,
"sendDefaultReply": true,
"taskAccountableId": null,
"taskAssignedId": null,
"taskPriority": "Normal",
"taskProjectId": null,
"taskStatusId": null,
"taskTagsIds": null,
"taskTypeId": "type-uuid-456"
}
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions
Email account not found