Mailboxes / Create

Creates new mailbox..

Route: /api/{tenant:minlength(2)}/v{version:apiVersion}/mailboxes

Method: POST

Authorisation: Minimum role: ADMIN

Request Arguments
Name Type Source
inputDTO_mailboxBody

  Request body example

Response object

Response status: 200 (OK)

Response type: DTO_mailbox

Wrapper: DTO_response_wrap

Other response 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_typeType
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