Zapmail
latest
  • latest
  • v1
  1. dns shield
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
    • Get Mailbox Details by ID
      GET
    • Assign New Mailboxes to Domains
      POST
    • Update mailbox
      PUT
    • Remove mailboxes on next renewal
      PUT
    • Get Authenticator code
      GET
    • Remove Mailboxes Instantly
      POST
    • Custom OAuth
      POST
  • payments & wallet
    • Add balance to wallet
      POST
    • Get wallet balance
      GET
    • Enable auto recharge
      POST
  • export
    • Export mailboxes
    • Add third party account details
    • Update third party account details
  • subscriptions
    • Get all subscriptions
    • Cancel subscription
    • Upgrade existing subscription
    • Purchase subscription
  • domains
    • Retrieve All Domains
    • List Assignable Domains
    • Add DMARC record
    • Add Domain forwarding
    • Get Name servers to connect domain
    • Verify Name Server Propagation
    • Connect Domain with Zapmail
    • Enable email forwarding
    • Remove email forwarding
    • Enable catch all emails
    • Remove catch all emails
    • Check DNS records
    • Remove unused domains
    • Get available domains for registration
    • Get domains purchase payment link
    • Get domain connection requests
    • Remove domain connection requests
    • Connect Domain with Zapmail (New)
    • Add Google Client ID to Domain
    • Get availability of multiple domain names.
    • Retrieve Domain Health Score
  • dns
    • Get dns records
    • Add dns records
    • Update dns records
    • Delete dns records
  • aged domains
    • Get available domains
    • Purchase aged domains
  • prewarmed domains
    • Get prewarmed domains
    • purchase prewarmed subscription
    • Assign prewarmed mailboxes
  • placement test
    • Get subscriptions
    • Get Overall Report
    • Get placement test orders
    • Get report by cart order id
    • Get Eligible Mailboxes for Placement Tests
    • Get Available Placement Test Credits
    • Purchase Placement Test
    • Purchase plan
  • dns shield
    • Get eligible domains
      GET
    • Get available slots
      GET
    • Get subscriptions
      GET
    • Get Allocated Domains for Subscription
      GET
    • Allocate Domains to DNS Shield
      POST
    • Purchase DNS Shield
      POST
    • Upgrade DNS Shield LTD Plan
      POST
    • Cancel subscription
      POST
  • Schemas
    • domain with filter
  1. dns shield

Allocate Domains to DNS Shield

Testing
POST
/v2/dns-shield/allocate-domains
Allocate domains to your DNS Shield LTD subscription slots and enable DNS Shield protection. This endpoint assigns specific domains to your available LTD plan capacity and automatically configures DNS Shield protection.

Request

Header Params

Body Params application/jsonRequired

Example
{
  "domainIds": [
    ""
  ]
}

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 POST 'https://api.zapmail.ai/api/v2/dns-shield/allocate-domains' \
--header 'x-auth-zapmail;' \
--header 'x-workspace-key;' \
--header 'x-service-provider;' \
--header 'Content-Type: application/json' \
--data-raw '{
  "domainIds": [
    ""
  ]
}'

Responses

🟢200Success
application/json
Body

Example
{
  "status": 200,
  "message": "Domains allocated to DNS Shield successfully",
  "data": {
    "success": true,
    "allocated": 25,
    "remaining": 0,
    "allocations": [
      {
        "domainId": "a66ccca7-d465-464a-887b-90bce6d09bbb",
        "subscriptionId": "sub-uuid-1"
      },
      {
        "domainId": "b77dddb8-e576-575b-998c-01cdf7e10ccc",
        "subscriptionId": "sub-uuid-1"
      },
      {
        "domainId": "c88eeeec9-f687-686c-aa9d-12def8f21ddd",
        "subscriptionId": "sub-uuid-2"
      }
    ],
    "errors": []
  }
}
Modified at 2025-12-24 13:03:22
Previous
Get Allocated Domains for Subscription
Next
Purchase DNS Shield
Built with