Deskhero Developer Hub
Back to deskhero.com
Mailboxes

Update

Replaces the mailbox settings, email address and group have to be sent on every call, and the type cannot be changed after creation. Supplying oauth2 with a new identifier stores a fresh authentication and re-queues the mailbox setup job, while import_as_knowledge and import_tickets are only applied on create and are ignored here.

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

Request arguments

Name Type Source
idInt32
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