Skip to content

Depot clientemaildomains

Registers the client email domain routes.

This page is generated from the Depot route table. Every operation carries the permission it needs and the anchor an agent can link to.

GETmailbox:manageshared facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

listClientEmailDomains lists the domains that route mail to one client.

NameInTypeRequiredDescription
clientIdquerystringNo
StatusBodyDescription
200application/json, ClientEmailDomainListSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold mailbox:manage.
500application/problem+json, ProblemDetailsNo client resolved for this request.
503application/problem+json, ProblemDetailsClient email domains are not available on this Depot.

200 response body

FieldTypeDescription
itemsrequiredarray of ClientEmailDomainView
items[].clientIdrequiredstring
items[].clientNamerequiredstring
items[].createdAtrequiredstring (date-time)
items[].domainrequiredstring
items[].idrequiredstring
items[].sourcerequiredstring, one of manual, portal_sso
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/client-email-domains?clientId=<clientId>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

POSTmailbox:manageshared facehosteditmspremote

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

createClientEmailDomain routes a domain’s mail to a client.

Required, sent as application/json.

FieldTypeDescription
clientIdstring or null
domainstring or null
StatusBodyDescription
201application/json, ClientEmailDomainViewCreated.
400application/problem+json, ProblemDetailsThe request body is not valid JSON.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold mailbox:manage.
409application/problem+json, ProblemDetailsThe request conflicts with the current state.
500application/problem+json, ProblemDetailsNo client resolved for this request.
503application/problem+json, ProblemDetailsClient email domains are not available on this Depot.

201 response body

FieldTypeDescription
clientIdrequiredstring
clientNamerequiredstring
createdAtrequiredstring (date-time)
domainrequiredstring
idrequiredstring
sourcerequiredstring, one of manual, portal_sso
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
curl -X POST 'https://depot.example.com/api/v1/client-email-domains' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"clientId": "string",
"domain": "string"
}'

DELETE /api/v1/client-email-domains/{domainID}

Section titled “DELETE /api/v1/client-email-domains/{domainID}”

DELETEmailbox:manageshared facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

deleteClientEmailDomain stops routing a domain to its client.

A portal SSO domain is not deletable here.

NameInTypeRequiredDescription
domainIDpathstringYesA uuid.
StatusBodyDescription
204NoneSuccess, with no body.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold mailbox:manage.
404application/problem+json, ProblemDetailsNo resource matches that id.
409application/problem+json, ProblemDetailsThe domain could not be removed.
500application/problem+json, ProblemDetailsNo client resolved for this request.
503application/problem+json, ProblemDetailsClient email domains are not available on this Depot.
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X DELETE 'https://depot.example.com/api/v1/client-email-domains/<domainID>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

Content is licensed CC BY 4.0. Code samples are MIT. Outpost and the Outpost mark are trademarks of Outpost Business Solutions, PBC and are not covered by either license.