EmailAccounts
Create EmailAccount
Create a new EmailAccount record.
POST
Create EmailAccount
An EmailAccount configures an incoming email connection (IMAP) used to receive messages for the help desk or other automated workflows. Each account specifies server connection details, credentials, and message handling policies.
Authentication
This endpoint requires OAuth2 authentication. Include a valid bearer token in the
Authorization header.
The authenticated user must be a full unrestricted administrator or have the EmailAccount-Create role.Enums
eEmailServerType — IncomingServerType values
eEmailServerType — IncomingServerType values
| Value | Name |
|---|---|
| 1 | Imap |
eMessageDeletionPolicy — DeleteMessageSettings values
eMessageDeletionPolicy — DeleteMessageSettings values
| Value | Name |
|---|---|
| 1 | DontDelete |
| 2 | DeleteOnReceive |
| 3 | DeleteWhenDeleting |
Request Body
Required Fields
ID of the business linked to this record.
The display name value for this email account.
The email address value for this email account.
The incoming server value for this email account.
The incoming server type value for this email account.
The incoming server port value for this email account.
The incoming server username value for this email account.
The delete message settings value for this email account.
The outgoing server value for this email account.
The outgoing server port value for this email account.
The outgoing server username value for this email account.
ID of the last message associated with this record.
The error count value for this email account.
Optional Fields
Whether this email account is currently active.
Whether send notification on new messages is enabled.
The notification email address value for this email account.
Whether incoming server ssl is enabled.
Whether outgoing server ssl is enabled.
The reply to email value for this email account.
Date/time value for last check time.
The google access token value for this email account.
The office365 access token value for this email account.
Code Examples
Response
200
HTTP status code.
200 on success.A human-readable message confirming the creation.
Contains the
Id of the newly created record.true if the emailaccount was created successfully.null on success.Example Response
400
A summary of the validation error(s), in the format
PropertyName: error message.null on validation failure.Array of validation errors.
false when the request fails validation.Example Response
Create EmailAccount