Enable helpdesk for email account
Enables helpdesk functionality for a specific email account. The account will use workspace default settings unless account-level overrides are configured.
What this does:
- Enables helpdesk processing for the specified email account
- The account will start receiving and processing emails automatically
- Uses workspace default settings if no account-specific overrides exist
- Preserves any existing account-level settings if they were previously configured
How it works:
- The system verifies the email account exists and belongs to the workspace
- Sets
isEnabled: truefor the account’s helpdesk settings - If no account settings exist, they are created with workspace defaults
- If account settings exist, only the
isEnabledflag is updated - The account becomes eligible for automated email pulling via cron jobs
After enabling:
- Emails sent to this account will be automatically pulled (every minute via cron)
- Incoming emails will be converted to tasks using workspace defaults (or account overrides)
- Auto-replies will be sent if configured in workspace or account settings
- Tasks will be created with proper assignment, priority, and categorization
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. Workspace helpdesk must be enabled (isHelpdeskEnabled: true) for this to work.
POST
/helpdesk/email-accounts/{accountId}/enableAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
accountIdstringrequiredEmail account ID
Query parameters
fieldsToReturnstringComma-separated list of top-level response fields to return. Overrides the endpoint compact default unless responseShape=full is used.
responseShapestringAdvanced override. Omit for the endpoint compact default. Use full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.
Allowed:
compactfullHeader parameters
LT-Response-ShapestringAdvanced override. Set to full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.
Allowed:
fullResponses
200Helpdesk enabled 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 POST "https://leadtime.app/api/public/helpdesk/email-accounts/account-uuid-123/enable" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/helpdesk/email-accounts/account-uuid-123/enable", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.post(
"https://leadtime.app/api/public/helpdesk/email-accounts/account-uuid-123/enable",
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