Deskhero Developer Hub
Back to deskhero.com
Mailboxes

Create

Connects a new mailbox to the workspace (a Deskhero hosted address, a forwarding address on your own domain, or a Microsoft or Google account authorized through OAuth) and attaches it to an existing group, creating the group when only a label is supplied. For Microsoft and Google the server decides import_as_knowledge and import_tickets itself and queues a background setup job that subscribes to the mailbox and imports recent mail, while a forwarding mailbox creates the email domain record if it is missing and stays in require-forward state until the DNS setup is verified.

POST /api/{tenant:minlength(2)}/v{version:apiVersion}/mailboxes
Authorisation
Minimum role: ADMIN

Request arguments

Name Type Source
inputDTO_mailboxBody
Request body example

Response

Status
200 (OK)
Type
DTO_mailbox
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 403 (Forbidden)
Response body example
DTO_mailbox
NameTypeReadOnlyDescription
oauth2DTO_external_auth_oauth2Oauth2
groupDTO_referenceGroup
setupDTO_mailbox_setupReadOnlySetup
created_byDTO_reference_userReadOnlyCreated by
last_updated_byDTO_reference_userReadOnlyLast updated by
idInt32Id
email_addressStringEmail address
typeENUM mailbox_typeType
statusENUM mailbox_statusReadOnlyStatus
import_as_knowledgeBooleanReadOnlyImport as knowledge
import_ticketsBooleanReadOnlyImport tickets
createdDateTimeReadOnlyCreated
last_updatedDateTimeReadOnlyLast updated
DTO_external_auth_oauth2
NameTypeReadOnlyDescription
identifierStringIdentifier
authorized_accountStringReadOnlyAuthorized account
DTO_reference
NameTypeReadOnlyDescription
idInt32The id of the reference
labelObjectReadOnlyName/Label from referenced object.
DTO_mailbox_setup
NameTypeReadOnlyDescription
import_in_progressBooleanReadOnlyImport in progress
dns_setupsDTO_dns_setup[]ReadOnlyDns setups
forward_toStringReadOnlyForward to
DTO_dns_setup
NameTypeReadOnlyDescription
typeENUM dns_record_typeLeave empty on input
statusENUM dns_setup_statusStatus
host_valueStringHost value
dataStringData
DTO_reference_user
NameTypeReadOnlyDescription
profile_picStringReadOnlyProfile pic
emailStringReadOnlyEmail
idInt32Id
labelObjectReadOnlyLabel
ENUM dns_record_type
ValueNameDescription
0UNKNOWNUNKNOWN
1TXTTXT
2CNAMECNAME
ENUM dns_setup_status
ValueNameDescription
0UNKNOWNUNKNOWN
1PENDINGWaiting client to setup DNS records (or verification of it)
2INSTALLINGClient DNS record setup completed, and verification done
3COMPLETEDInstall completed
ENUM mailbox_type
ValueNameDescription
0UNKNOWNUNKNOWN
1PLATFORM_PROVIDEDBuilt in @tenant.deskhero.com
2DNSDNS setup / Custom Email domain
3MICROSOFTAuth2 Microsoft365 provided
4GOOGLEAuth2 Google provided
ENUM mailbox_status
ValueNameDescription
0UNKNOWNUNKNOWN
1ACTIVEACTIVE
2ACTIVATION_IN_PROGRESSACTIVATION_IN_PROGRESS
101REQUIRE_REAUTHREQUIRE_REAUTH
102REQUIRE_FORWARDREQUIRE_FORWARD

Generated Aug 4, 2026 18:37