Delete the tracking domain of a mailbox
DELETE
Deletes the tracking domain attached to this mailbox from the account, and detaches it from every mailbox that uses it. The path takes the mailbox id, not the domain id. With onlyUnlink=true, the domain is only detached from this mailbox and stays in the account (same as POST /domains/assign with domainId: null). A mailbox without a tracking domain returns success.
Authorization
apiKey Authorization<token>
Your 48 character API key, sent as is (a Bearer prefix is tolerated). Create it at https://v3.emelia.io/settings/api.
In: header
Path Parameters
providerId*string
Email provider id.
Match
^[0-9a-fA-F]{24}$Query Parameters
onlyUnlink?string
true: detach the domain from this mailbox only, without deleting it.
Default
"false"Value in
- "true"
- "false"
Response Body
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/domains/6650f1a2b839d80011c5a0aa?onlyUnlink=false" \ -H "Authorization: YOUR_API_KEY"{ "status": "OK"}