Skip to content

Import DNS records from a BIND zone file

POST
/api/organizations/{organizationId}/domains/{id}/import

Upload a BIND-format zone file (.txt) to bulk-import DNS records into this domain. The file must be sent as multipart/form-data with field name "file". The records are imported, then any records with a TTL below the minimum threshold are corrected, and subdomain NS records found in the file are created separately (NS records are skipped during import). DNS must be enabled on the domain before importing.

Authorizations

ApiToken

Long-lived API token created via POST /api/api-tokens (returned once in plaintext).

Type
API Key (header: X-API-TOKEN)
or
JWT

JWT access token obtained via POST /api/auth/login. Send as: Authorization: Bearer .

Type
HTTP (bearer)

Parameters

Path Parameters

organizationId*

Organization identifier

Type
string
Required
id*

domain identifier

Type
string
Required

Request Body

multipart/form-data
object

BIND zone file in plain text format (.txt)

Format"binary"

Responses

Import completed. Returns counts of successful, failed, and skipped records.

JSON
{
  
"@context": "string",
  
"@id": "string",
  
"@type": "string"
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI