Zapmail
latest
  • latest
  • v1
  1. domains
Zapmail
latest
  • latest
  • v1
  • Zapmail Docs
  • users
    • Retrieve User Details
      GET
  • workspaces
    • Retrieve all workspaces
      GET
    • Create new workspace
      POST
    • Update workspace
      PUT
  • billing
    • Add Billing Details
      POST
    • Update Billing Details
      PUT
  • mailbox
    • Retrieve All Mailboxes
    • Get Mailbox Details by ID
    • Assign New Mailboxes to Domains
    • Update mailbox
    • Remove mailboxes on next renewal
    • Get Authenticator code
    • Remove Mailboxes Instantly
  • payments & wallet
    • Add balance to wallet
    • Get wallet balance
    • Enable auto recharge
  • export
    • Export mailboxes
    • Add third party account details
    • Update third party account details
  • subscriptions
    • Get all subscriptions
    • Cancel subscription
    • Upgrade existing subscription
  • domains
    • Retrieve All Domains
      GET
    • List Assignable Domains
      GET
    • Add DMARC record
      POST
    • Add Domain forwarding
      POST
    • Get Name servers to connect domain
      POST
    • Verify Name Server Propagation
      POST
    • Connect Domain with Zapmail
      POST
    • Enable email forwarding
      POST
    • Remove email forwarding
      DELETE
    • Enable catch all emails
      POST
    • Remove catch all emails
      DELETE
    • Check DNS records
      POST
    • Remove unused domains
      DELETE
    • Get available domains for registration
      POST
    • Get domains purchase payment link
      POST
    • Get domain connection requests
      GET
    • Remove domain connection requests
      DELETE
    • Connect Domain with Zapmail (New)
      POST
    • Add Google Client ID to Domain
      POST
    • Get availability of multiple domain names.
      POST
  • dns
    • Get dns records
    • Add dns records
    • Update dns records
    • Delete dns records
  1. domains

List Assignable Domains

GET
/v2/domains/assignable
This endpoint provides a list of domains to which you can assign mailboxes.

Request

Query Params

Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
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

🟢200Success
application/json
Body

Example
{
    "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
Previous
Retrieve All Domains
Next
Add DMARC record
Built with