This endpoint provides a list of domains to which you can assign mailboxes.
Request Code Samples
curl --location --request GET 'https://api.zapmail.ai/api/v2/domains/assignable?contains=zap&page=1&limit=20' \
--header 'x-auth-zapmail;' \
--header 'x-workspace-key;' \
--header 'x-service-provider;'
Responses
application/json {
"status": 200,
"message": "Domains fetched successfully",
"data": {
"totalSearchedCount": 1,
"currentPage": 1,
"nextPage": 2,
"totalPages": 1,
"domains": [
{
"id": "e439f190-632c-40cd-98a7-f1f3f1cc7a05",
"workspaceId": "0e027scf-frd2-443d-9c3c-2d157ff6sfda",
"domain": "abc.com",
"status": "ACTIVE",
"createdAt": "2025-03-13T14:38:07.579Z",
"updatedAt": "2025-06-27T12:01:01.359Z",
"forwardTo": null,
"forwardToAddedOnReseller": false,
"dmarcEmail": null,
"dmarcEmailAddedToReseller": false,
"assignedMailboxesCount": "0",
"mailboxes": []
}
]
}
}
Modified at 2025-10-14 09:24:43