Deskhero Developer Hub
Back to deskhero.com
Mailboxes

List domains

Returns the mailboxes grouped by email domain and by type, which is what the mailbox settings page lists. For domains that use forwarding it also resolves the required DNS records live, including a recommended SPF change, and reports the domain as verified or pending, so the call can take a while (the DNS lookups are cached per domain).

GET /api/{tenant:minlength(2)}/v{version:apiVersion}/mailboxes/list_domains
Authorisation
Minimum role: USER

Request arguments

Name Type Source
Request body example
No input arguments

Response

Status
200 (OK)
Type
DTO_mailbox_domain[]
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 403 (Forbidden)
Response body example
DTO_mailbox_domain
NameTypeReadOnlyDescription
mailboxesDTO_mailbox[]Mailboxes
domainStringDomain
typeENUM mailbox_typeType
statusemail_domain_status (nullable)Status
dns_setupsDTO_dns_setup[]Dns setups
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 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
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

Generated Aug 4, 2026 18:37