InboxKit
  1. Domains
InboxKit
  • Introduction
  • Order
    • Place Order
      POST
  • Webhook
    • Status Change Webhook
      POST
  • Account
    • Get account details
      GET
  • Workspaces
    • List workspaces
      GET
    • Get workspace details
      GET
    • Create workspace
      POST
    • Update workspace
      PUT
    • Delete workspace
      DELETE
    • Update workspace webhook
      POST
  • Domains
    • Search available domains
      POST
    • Check if domain is banned from registration
      GET
    • Check domain availability
      GET
    • Register domains
      POST
    • List domains
      POST
    • List assignable domains
      GET
    • Remove domains
      POST
    • Set domain forwarding
      POST
    • Set catch-all email
      POST
    • Remove catch-all email
      DELETE
    • Get nameservers for domain connection
      POST
    • Check nameservers propagation
      POST
    • Check Workspace Availability
      POST
    • Set DMARC Configuration
      POST
    • Remove DMARC Configuration
      DELETE
    • Regenerate Domain Nameservers
      POST
  • Mailboxes
    • List mailboxes
    • Add or update signature for mailboxes
    • Delete signature for mailboxes
    • Show mailbox credentials
    • Get mailbox details
    • Buy mailboxes
    • Check mailbox status
    • Cancel mailboxes
    • Update mailbox
    • Update mailbox profile picture
    • Generate TOTP
    • Change username
    • Change password
    • Check mailbox availability
    • Get Failure Reason
  • DNS
    • Get DNS records
    • Add DNS records
    • Update DNS records
    • Delete DNS records
  • Sequencers
    • Export mailboxes status
    • List sequencer platforms
    • Get sequencer tags
    • List sequencers
    • Export mailboxes
    • Add sequencer
    • Update sequencer
    • Delete sequencers
  • Billing
    • Get pricing plans
    • Get subscription details
    • Change subscription plan
    • Cancel subscription
    • Get wallet details
    • Add credits to wallet
    • Update auto top-up settings
    • Get billing portal link
  • Client ID Requests
    • Initiate Client ID Request
    • Get Client ID Request Status
    • List Client ID Requests
  • Mailbox Forwarding
    • Setup Email Forwarding
    • Update Email Forwarding
    • Remove Email Forwarding
    • List Forwarding Jobs
  • Consent Request
    • Initiate Consent Request
    • Get Consent Request Status
    • List Consent Requests
  • Tags
    • Assign tags to domains or mailboxes
    • Get all tags
    • Create a new tag
    • Delete a tag
  • Prewarm
    • Search Domains
    • Search Mailboxes
    • Buy Prewarmed Mailboxes
    • Check Order Status
    • Check Availability
  • Inbox Placement
    • Tests
      • Create Test
      • List Tests
      • Get Test Results
    • Scheduled Tests
      • List Scheduled Tests
      • Get Scheduled Test
      • Pause Scheduled Test
      • Resume Scheduled Test
      • Delete Scheduled Test
  • Schemas
    • Schemas
      • WebhookPayload
      • DomainStatusWebhook
      • Tag
      • DomainEventData
      • MailboxStatusWebhook
      • MailboxEventData
      • Domain
      • Mailbox
      • ChangeDetails
      • WebhookResponse
      • ErrorResponse
  1. Domains

Regenerate Domain Nameservers

POST
https://api.inboxkit.com/v1/api/domains/nameservers/regenerate
Maintainer:Not configured

Regenerate Domain Nameservers#

Creates new Cloudflare zones and generates fresh nameservers for domains that need reconfiguration.

When to Use This Endpoint#

This endpoint handles two scenarios:

1. Expired Propagation (status: 'expired_propagation')#

Domains where the initial DNS propagation timed out. This typically happens when nameservers weren't configured at the registrar within 12 hours.

2. Moved Nameservers (nameserver_match_status: 'moved')#

Domains where our monitoring detected that nameservers at the registrar no longer match the expected Cloudflare nameservers. This can happen if:
Someone manually changed nameservers at the registrar
The domain was transferred to a different registrar
Registrar reset nameservers to default

How It Works#

1.
Generates new nameservers (e.g., anna.ns.cloudflare.com, bob.ns.cloudflare.com)
2.
Resets domain status to 'not_connected' and propagation statuses to 'pending'

After Calling This Endpoint#

IMPORTANT: You must update the nameservers at your domain registrar with the new values returned in the response. The domain will remain in 'not_connected' status until nameservers are correctly configured and propagated.

Finding Domains That Need Regeneration#

Use the List Domains endpoint with filters:
status: ['expired_propagation'] - for timed-out domains
nameserver_match_status: ['moved'] - for domains with changed nameservers
Or check the nameserver_status_counts in the List Domains response to see how many domains need attention.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Examples

Responses

🟢200Success Response
application/json
Body

🟠400Bad Request - Missing Parameters
🟠400Bad Request - Exceeded Limit
🟠400Bad Request - Invalid Type
🟠401Unauthorized
🟠404Not Found - No Eligible Domains
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.inboxkit.com/v1/api/domains/nameservers/regenerate' \
--header 'X-Workspace-Id: 550e8400-e29b-41d4-a716-446655440000' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "uids": [
        "d1a2b3c4-5678-90ab-cdef-1234567890ab",
        "e2f3a4b5-6789-01bc-defg-2345678901cd"
    ],
    "domains": [
        "example.com",
        "mycompany.net"
    ]
}'
Response Response Example
200 - Example 1
{
    "error": false,
    "message": "Nameservers regenerated successfully",
    "count": 3,
    "expired_propagation_count": 1,
    "moved_nameservers_count": 2,
    "result": [
        {
            "name": "example.com",
            "uid": "d1a2b3c4-5678-90ab-cdef-1234567890ab",
            "status": "not_connected",
            "nameservers": [
                "anna.ns.cloudflare.com",
                "bob.ns.cloudflare.com"
            ],
            "cf_zone_id": "abc123def456",
            "dns_propagation_status": "pending",
            "nameservers_propagation_status": "pending",
            "nameserver_match_status": "pending"
        }
    ]
}
Modified at 2026-01-27 10:09:11
Previous
Remove DMARC Configuration
Next
List mailboxes
Built with