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

Retrieve All Domains

GET
/v2/domains
Retrieves a complete list of domains available in the system.

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?contains&page&limit' \
--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": 2,
        "currentPage": 1,
        "nextPage": 2,
        "totalPages": 1,
        "domains": [
            {
                "id": "64e71b99-bc07-4b5d-90b6-6abc0120c08c",
                "domain": "abc.com",
                "status": "ACTIVE",
                "createdAt": "2024-07-29T14:13:35.168Z",
                "updatedAt": "2024-07-29T14:14:57.045Z",
                "forwardTo": null,
                "forwardToAddedOnReseller": false,
                "dmarcEmail": null,
                "dmarcEmailAddedToReseller": false,
                "forwardingEmail": null,
                "forwardingEmailAdded": false,
                "catchAllEmail": null,
                "catchAllEmailAdded": false,
                "nameServers": null,
                "assignedMailboxesCount": "0"
            },
            {
                "id": "35649ec0-a54e-4ea0-8d3d-05df47690326",
                "domain": "xyz.com",
                "status": "ACTIVE",
                "createdAt": "2024-07-12T10:01:31.028Z",
                "updatedAt": "2024-07-26T06:53:10.551Z",
                "forwardTo": "https://stage.ai",
                "forwardToAddedOnReseller": true,
                "dmarcEmail": "john@company.com",
                "dmarcEmailAddedToReseller": true,
                "forwardingEmail": "john@company.com",
                "forwardingEmailAdded": false,
                "catchAllEmail": "john@company.com",
                "catchAllEmailAdded": false,
                "nameServers": [
                    "adele.ns.cloudflare.com",
                    "rose.ns.cloudflare.com"
                ],
                "assignedMailboxesCount": "1"
            }
        ]
    }
}
Modified at 2025-10-14 09:24:34
Previous
Upgrade existing subscription
Next
List Assignable Domains
Built with