1. DNS
InboxKit
  • Introduction
  • Order
    • Place Order
      POST
  • Webhook
    • Webhook Integration & Signature Verification
      POST
    • Event: Domain Status Changed
      POST
    • Event: Mailbox Status Changed
      POST
    • Events: OAuth Consent & Client ID Changes
      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
    • Invite Member to Workspace
      POST
  • Domains
    • Domain Renewals
    • 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
    • Request Domain Renewal
      POST
    • Check Renewal Status
      GET
  • Cloudflare Domains
    • Connect Cloudflare Domains
    • List Connected Cloudflare Domains
    • Get Domain Details
    • Disconnect Cloudflare Domains
    • List Cloudflare Zones
  • 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
    • Uncancel mailboxes
    • Resetup mailboxes
    • Get resetup status
  • DNS
    • Get DNS records
      GET
    • Add DNS records
      POST
    • Update DNS records
      POST
    • Delete DNS records
      POST
    • Verify DNS records
      POST
    • Repair DNS records
      POST
  • Sequencers
    • Export mailboxes status
    • List sequencer platforms
    • Get sequencer tags
    • List sequencers
    • Export mailboxes
    • Add sequencer
    • Update sequencer
    • Delete sequencers
    • Verify Lemlist OTP
  • Billing
    • Get pricing plans
    • Add Credits to Wallet
    • Get subscription details
    • Check Payment Status
    • Change subscription plan
    • Cancel subscription
    • Get wallet details
    • Update auto top-up settings
    • Get billing portal link
    • Get Wallet Logs
  • Warmup
    • List Warmup Subscriptions
    • Get Warmup Subscription Details
    • Add Warmup to Mailboxes
    • Pause Warmup for Mailboxes
    • Resume Warmup for Mailboxes
    • Cancel Warmup for Mailboxes
    • Get Warmup Statistics
    • Get Warmup Pricing
  • 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
  • InfraGuard
    • InfraGuard - Subscriptions
      • List protected domains
      • Get subscription details
      • Enable InfraGuard for domains
      • Cancel InfraGuard for domains
      • Get workspace statistics
      • Get pricing info
    • InfraGuard - Monitoring
      • Get blacklist check history
      • Get DNS check history
      • Get current bounce metrics
      • Get bounce check history
    • InfraGuard - Settings
      • Update subscription settings
      • Trigger manual check
    • InfraGuard - Alerts
      • List alerts
      • Acknowledge an alert
      • Resolve an alert
    • InfraGuard - Action Items
      • List action items
      • Get action item statistics
      • Resolve an action item
      • Dismiss an action item
  • Email Insight
    • Email Insights - Workspace
      • Get Workspace Overview
      • Get Mailboxes Health
      • Get High Bounce Mailboxes
      • Get Workspace Activity
    • Email Insights - Mailbox
      • Get Mailbox Stats
      • Get Mailbox Deliverability
      • Get Mailbox Health
      • Get Mailbox Trends
      • Get Mailbox Activity
      • Get Mailbox Bounce Events
      • Get Mailbox Top Recipients
      • Get Mailbox Top Recipient Domains
      • Get Mailbox Message Breakdown
      • Get Mailbox Subject Analysis
  • Domain Renewals
  • Schemas
    • Schemas
      • WebhookPayload
      • DomainStatusWebhook
      • Tag
      • DomainEventData
      • MailboxStatusWebhook
      • MailboxEventData
      • Domain
      • Mailbox
      • ChangeDetails
      • WebhookResponse
      • ErrorResponse
  1. DNS

Repair DNS records

POST
https://api.inboxkit.com/v1/api/dns/repair
Maintainer:Not configured
Automatically fix missing, misconfigured, or broken email DNS records for one or more domains.
This endpoint inspects MX, SPF, DKIM, and DMARC records, identifies any problems, and applies the necessary corrections. All changes are synced to Cloudflare right away.
You can repair a single domain by passing domain or uid, or repair up to 50 domains at once by passing domains or uids as an array. The response always returns a results array showing exactly what was fixed for each domain, along with an aggregated summary.
We recommend running the Verify DNS Records endpoint first to see what needs fixing before calling this endpoint.
What this endpoint can fix:
Missing records: Creates the record with the correct value
Misconfigured records: Updates the record to the correct value
Failed/errored records: Resets them so they can be re-synced
Out-of-sync records: Re-syncs records that are correct in your account but not in Cloudflare
Duplicate records: Removes extra copies of records (duplicates can cause authentication failures)
Repair actions explained:
added - A missing record was created with the correct value
updated - An existing record was corrected to the right value
reset_to_pending - A failed record was reset so it can be re-synced
imported_from_cf - A correct record found in Cloudflare was imported into your account
reconciled_from_cf - A failed record was fixed using the correct value from Cloudflare
cf_value_corrected - The Cloudflare copy of a record was out of date and has been re-synced
reset_for_cf_resync - A record that was missing from Cloudflare has been queued for re-sync
duplicate_removed - An extra copy of a record was removed

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

🟢200OK
application/json
DNS repair completed successfully. The response includes an aggregated summary and a results array with per-domain details showing exactly what was fixed.
Bodyapplication/json

🟠400Bad Request
🟠401Unauthorized
🟠404Not Found
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location 'https://api.inboxkit.com/v1/api/dns/repair' \
--header 'X-Workspace-Id;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
  "domain": "example.com"
}'
Response Response Example
200 - No issues found
All four email records were already healthy. No changes were made.
{
  "error": false,
  "message": "Bulk DNS repair completed: 1 domain repaired",
  "summary": {
    "total_requested": 1,
    "total_repaired": 1,
    "total_failed": 0,
    "total_actions": 0,
    "total_added": 0,
    "total_reset": 0,
    "total_updated": 0,
    "total_imported": 0,
    "total_reconciled": 0,
    "total_duplicates_removed": 0,
    "total_skipped": 4
  },
  "results": [
    {
      "domain": "example.com",
      "domain_uid": "3340bae3-53c3-4ab8-9c61-1d8205b86c70",
      "status": "success",
      "platform": "GOOGLE",
      "cloudflare_checked": true,
      "actions_taken": [],
      "skipped": [
        { "label": "MX", "reason": "Record is healthy and in sync" },
        { "label": "SPF", "reason": "Record is healthy and in sync" },
        { "label": "DMARC", "reason": "Record is healthy and in sync" },
        { "label": "DKIM", "reason": "Record is healthy and in sync" }
      ],
      "repair_summary": {
        "added": 0,
        "reset": 0,
        "updated": 0,
        "imported": 0,
        "reconciled": 0,
        "duplicates_removed": 0,
        "skipped": 4,
        "total_actions": 0
      }
    }
  ]
}
Modified at 2026-05-05 11:29:05
Previous
Verify DNS records
Next
Export mailboxes status
Built with