Menu

DNS

Zones, records, copying a domain's live DNS, DNSSEC, moving a domain.

OperationMethod and path
The state events of the caller's DNS zonesGET /dns/events
The caller's DNS zonesGET /dns/zones
Create a DNS zone for a domainPOST /dns/zones
One of the caller's DNS zonesGET /dns/zones/{origin}
Delete one of the caller's DNS zonesDELETE /dns/zones/{origin}
Check the zone's delegation nowPOST /dns/zones/{origin}/check
The DS record of one of the caller's active DNS zonesGET /dns/zones/{origin}/dnssec
One of the caller's DNS zones as a zone fileGET /dns/zones/{origin}/export
Replace the records of one of the caller's DNS zones with a zone filePUT /dns/zones/{origin}/import
How to move the domain's DNS here without interruptionGET /dns/zones/{origin}/migration
Set one record set of one of the caller's DNS zonesPOST /dns/zones/{origin}/records
Delete the records at a name of one of the caller's DNS zonesDELETE /dns/zones/{origin}/records/{name}
Copy the domain's DNS again and store what changed since the seedPOST /dns/zones/{origin}/resync
The newest re-sync's diff and how it would applyGET /dns/zones/{origin}/resync
Apply a re-sync's diff to the pending zonePOST /dns/zones/{origin}/resync/apply
Fill a pending zone from a copy of the domain's DNS, in one writePOST /dns/zones/{origin}/seed
What a seed of a pending zone from a copy would writePOST /dns/zones/{origin}/seed/preview
Copy the domain's existing DNS from its current nameserversPOST /dns/zones/{origin}/snapshots
The copies of the domain's DNS taken for one of the caller's zonesGET /dns/zones/{origin}/snapshots
One copy of the domain's DNS, with its recordsGET /dns/zones/{origin}/snapshots/{id}

The state events of the caller's DNS zones#

GET /dns/events · operation listDnsEvents

The state changes of the caller's zones, oldest first, one page after the cursor: activated ("live with N records" or "live but empty"), suspended, resumed, expired (a pending zone never activated, deleted), deleted, pending-reminder, seeded ("seeded with N records"), snapshot-changed, old-ds-present; each with a message sentence. A page may hold fewer events than limit; keep paging with next. Page with after (the last id seen; next of the previous page). Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
afterqueryintegernothe cursor: the last event id seen (default 0, from the start) (default 0; at least 0)
limitqueryintegernothe page size, 1..500 (default 100) (default 100; 1 to 500)

Answer 200 (DnsEventList): the result

  • events, array of objects, required
    • id, integer, required — the event's cursor: pass the last one seen as after
    • at, string, required
    • origin, string, required
    • domain, string, required
    • zone_id, string, required
    • kind, string, required — activated, suspended, resumed, expired, deleted, pending-reminder, seeded, snapshot-changed or old-ds-present
    • detail, value — the event's details (a suspension's reason, the records an activation made live, the records a seed copied, ...)
    • message, string or null — the event as a sentence: live with N records, live but empty, seeded with N records, snapshot changed, old DS present ...
  • next, integer or null, required — the cursor of the next page when this one is full; null at the end

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field after or limit)
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/dns/events' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird dns events):

$ weird dns events

MCP: weird_dns_events.

The caller's DNS zones#

GET /dns/zones · operation listDnsZones

Every zone of the calling account, by origin, in every state, with its own nameserver pair, its records and its last delegation check. A new zone is pending: its records are kept, and while no other account claims the domain our DNS servers already answer for it (serving), so switching the registrar causes no outage; it becomes active (served and billed) once the domain's registrar points at the zone's pair, and suspended (still served, not billed) when that delegation is lost or the hours cannot be charged. A pending zone never activated is deleted after a while and leaves the list. Another customer's zone for the same domain is never listed. Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.readsper_requestafter a successful answer—see the credit charges

Answer 200 (DnsZoneList): the result

  • zones, array of objects, required
    • origin, string, required — the domain, lowercased and dotted
    • records, array of objects, required — the apex NS records naming the pair, then the caller's records
      • name, string, required — a name inside the zone, answered lowercased and dotted
      • type, string, required
      • class, string (default "IN")
      • ttl, integer (1 to 2147483647)
      • data, object, required — the data of the type: A/AAAA {address}, CNAME/NS/PTR {name}, MX {preference, exchange}, TXT {texts}, SRV {priority, weight, port, target}, CAA {flags, tag, value}; DS (below the apex only) {key_tag, algorithm, digest_type, digest (hex)}, TLSA {usage, selector, matching_type, certificate (hex)}, SSHFP {algorithm, hash, fingerprint (hex)}, SVCB/HTTPS {priority, target_name, params?}
    • suspended_at, string or null
    • restriction, object — on a resource held after a review: suspended (its account is restricted) or blocked (its content or hostname may not be served); the one reason code is abuse-review
      • state, string, required (one of suspended, blocked)
      • reason, string, required (must be "abuse-review")
      • decision_id, string or null — the decision on your account that put it in place (GET /auth/account/restrictions lists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it is
      • contact, string — the abuse contact address to write to about it
    • unpaid, one of
      • variant 1: object — the zone's hosting hours are not paid: it is served until stops_at, then no DNS server answers for it (its records and keys are kept) until the account has credits again, which serves it again at once; a zone still unpaid at deletes_at is deleted (and the DS of a domain registered here withdrawn)
        • since, string, required — the first hour that could not be charged
        • reminded_at, string or null — when the account was told the serving would stop
        • stops_at, string or null — when the serving stops unless the account pays
        • stopped_at, string or null — when the serving stopped (null while it is still served)
        • deletes_at, string or null — once the serving stopped: when the zone is deleted unless the account pays first, as the account was told (null while it is still served)
      • variant 2: null
    • activated_at, string or null
    • id, string, required
    • check, one of
      • variant 1: object — the last delegation check of the zone; null before the first
        • checked_at, string or null, required
        • next_check_at, string or null, required
        • verdict, string or null, required — what the domain's parent answered: delegated (it names the zone's pair), not-delegated, lame or error
        • outcome, string or null, required — what the last check did: activated, kept, suspended, resumed, inconclusive, pending, charge-refused (top up and the next check retries) ...
      • variant 2: null
    • seed, one of
      • variant 1: object
        • snapshot_id, string
        • at, string
        • mode, string (one of merge, replace)
        • records, integer — the records taken from the copy
      • variant 2: null
    • domain, string, required
    • default_ttl, integer, required
    • state, string, required — pending: kept, no DNS server answers for it yet (it becomes active once the domain's parent names the zone's pair; a pending zone never activated is deleted after a window and leaves the list); active: served and billed; suspended: still served and kept, not billed (the delegation was lost, the hours could not be charged, or another account's zone took the domain over), active again when the delegation check passes and, for a zone suspended for unpaid hours, once the current hour is paid (one of pending, active, suspended)
    • created_at, string, required
    • served_at, string or null — pending zones: since when our DNS servers answer for it before its delegation
    • nameservers, array of strings, required — the zone's own pair: <id>.a1.<domain>. and <id>.a2.<domain>.
    • serving, one of
      • variant 1: object
        • state, string, required — served: our DNS servers answer for the pending zone now, switching the registrar has no dark window; held: another account claims the domain (or a name above or below it), the zone is served from its activation; waiting: the platform cannot serve it yet (one of served, held, waiting)
        • reason, string or null — why it is not served: claimed-elsewhere (another account claims the domain or a name above or below it), starting (served from the next publishing pass, within minutes), unavailable (the platform cannot serve it now); null when served (one of claimed-elsewhere, starting, unavailable, null)
        • since, string or null
      • variant 2: null
    • suspend_reason, string or null — a suspended zone's reason: delegation-lost, billing-refused or superseded

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (DNS hosting did not answer: try again later)
503unavailableunavailable (DNS hosting is not available now)

Example

curl -X GET 'https://api.weird.ro/dns/zones' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird dns list):

$ weird dns list

MCP: weird_dns_zones_list.

Create a DNS zone for a domain#

POST /dns/zones · operation createDnsZone

Any account may create a zone for any domain: zones are per domain and account, so another customer holding a zone for the same domain is no obstacle, while creating a second zone of one's own for it is refused 409. An internationalized domain is accepted and answered in its xn-- form. The zone is created pending with its own nameserver pair (<id>.a1.<domain>., <id>.a2.<domain>.) as its apex NS records: point the domain at that pair at its registrar. Charged under the contract dns.manage (one charge per created zone); deleting the zone while it is still pending refunds that charge. Delete it with DELETE /dns/zones/{origin} (charged). Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.manage is taken from the credits before it runs (402 insufficient-funds when they do not cover it: top up, then retry; it is refunded when the operation fails); the per_entry_hour credit charge of recurring.dns-entry-hourly times records is billed every hour while what it creates exists; the per_answer credit charge of dns.traffic-hourly is billed per use.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedyes — see the charges below
Retry safetysend the Idempotency-Key header: a repeat with the same key answers the first answer and is not performed or charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.manageper_requestbefore it runs—see the credit charges
recurring.dns-entry-hourlyper_entry_hourevery hour while it existsrecordssee the credit charges
dns.traffic-hourlyper_answerper use—see the credit charges

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringno1..255 printable ASCII characters naming this operation. Repeating the request with the same key (on the same route, within 24 hours) answers the first answer again with the header idempotent-replay: true; it is not performed or charged a second time.

Request body (CreateDnsZone):

  • domain, string, required — the domain of the zone

Answer 201 (DnsZone): the result

  • origin, string, required — the domain, lowercased and dotted
  • records, array of objects, required — the apex NS records naming the pair, then the caller's records
    • name, string, required — a name inside the zone, answered lowercased and dotted
    • type, string, required
    • class, string (default "IN")
    • ttl, integer (1 to 2147483647)
    • data, object, required — the data of the type: A/AAAA {address}, CNAME/NS/PTR {name}, MX {preference, exchange}, TXT {texts}, SRV {priority, weight, port, target}, CAA {flags, tag, value}; DS (below the apex only) {key_tag, algorithm, digest_type, digest (hex)}, TLSA {usage, selector, matching_type, certificate (hex)}, SSHFP {algorithm, hash, fingerprint (hex)}, SVCB/HTTPS {priority, target_name, params?}
  • suspended_at, string or null
  • restriction, object — on a resource held after a review: suspended (its account is restricted) or blocked (its content or hostname may not be served); the one reason code is abuse-review
    • state, string, required (one of suspended, blocked)
    • reason, string, required (must be "abuse-review")
    • decision_id, string or null — the decision on your account that put it in place (GET /auth/account/restrictions lists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it is
    • contact, string — the abuse contact address to write to about it
  • unpaid, one of
    • variant 1: object — the zone's hosting hours are not paid: it is served until stops_at, then no DNS server answers for it (its records and keys are kept) until the account has credits again, which serves it again at once; a zone still unpaid at deletes_at is deleted (and the DS of a domain registered here withdrawn)
      • since, string, required — the first hour that could not be charged
      • reminded_at, string or null — when the account was told the serving would stop
      • stops_at, string or null — when the serving stops unless the account pays
      • stopped_at, string or null — when the serving stopped (null while it is still served)
      • deletes_at, string or null — once the serving stopped: when the zone is deleted unless the account pays first, as the account was told (null while it is still served)
    • variant 2: null
  • activated_at, string or null
  • id, string, required
  • check, one of
    • variant 1: object — the last delegation check of the zone; null before the first
      • checked_at, string or null, required
      • next_check_at, string or null, required
      • verdict, string or null, required — what the domain's parent answered: delegated (it names the zone's pair), not-delegated, lame or error
      • outcome, string or null, required — what the last check did: activated, kept, suspended, resumed, inconclusive, pending, charge-refused (top up and the next check retries) ...
    • variant 2: null
  • seed, one of
    • variant 1: object
      • snapshot_id, string
      • at, string
      • mode, string (one of merge, replace)
      • records, integer — the records taken from the copy
    • variant 2: null
  • domain, string, required
  • default_ttl, integer, required
  • state, string, required — pending: kept, no DNS server answers for it yet (it becomes active once the domain's parent names the zone's pair; a pending zone never activated is deleted after a window and leaves the list); active: served and billed; suspended: still served and kept, not billed (the delegation was lost, the hours could not be charged, or another account's zone took the domain over), active again when the delegation check passes and, for a zone suspended for unpaid hours, once the current hour is paid (one of pending, active, suspended)
  • created_at, string, required
  • served_at, string or null — pending zones: since when our DNS servers answer for it before its delegation
  • nameservers, array of strings, required — the zone's own pair: <id>.a1.<domain>. and <id>.a2.<domain>.
  • serving, one of
    • variant 1: object
      • state, string, required — served: our DNS servers answer for the pending zone now, switching the registrar has no dark window; held: another account claims the domain (or a name above or below it), the zone is served from its activation; waiting: the platform cannot serve it yet (one of served, held, waiting)
      • reason, string or null — why it is not served: claimed-elsewhere (another account claims the domain or a name above or below it), starting (served from the next publishing pass, within minutes), unavailable (the platform cannot serve it now); null when served (one of claimed-elsewhere, starting, unavailable, null)
      • since, string or null
    • variant 2: null
  • suspend_reason, string or null — a suspended zone's reason: delegation-lost, billing-refused or superseded

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field domain; with reason public-suffix, reserved-name or invalid-name for a domain that cannot be hosted; also too many pending zones: activate or delete some); invalid-params (field Idempotency-Key: a malformed key, or one used for a different request)
401unauthorizedunauthorized
402insufficient-fundsinsufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry)
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
409conflictconflict (the caller already holds a zone for the domain); conflict (the same operation is still in progress: retry shortly)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
451hostname-blockedhostname-blocked (the hostname or content was blocked after a review: reason abuse-review; contest it through a support ticket or contact)
502upstream-unavailableupstream-unavailable (try again later)
503charges-not-published, ledger-unavailable, unavailableunavailable (DNS hosting is not available now), ledger-unavailable (the credit account did not answer: try again later) or charges-not-published (try again later)

Example

curl -X POST 'https://api.weird.ro/dns/zones' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"domain":"<domain>"}'

With the CLI (weird dns create):

$ weird dns create <domain>

MCP: weird_dns_zone_create.

One of the caller's DNS zones#

GET /dns/zones/{origin} · operation getDnsZone

The caller's zone of the domain in whatever state (pending, active, suspended). A delegate under a domain grant carrying dns reads the owner's zone (delegated true, owner_user_id) when it holds no zone of that domain itself. Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
originpathstringyes

Answer 200 (DnsZone): the result

  • origin, string, required — the domain, lowercased and dotted
  • records, array of objects, required — the apex NS records naming the pair, then the caller's records
    • name, string, required — a name inside the zone, answered lowercased and dotted
    • type, string, required
    • class, string (default "IN")
    • ttl, integer (1 to 2147483647)
    • data, object, required — the data of the type: A/AAAA {address}, CNAME/NS/PTR {name}, MX {preference, exchange}, TXT {texts}, SRV {priority, weight, port, target}, CAA {flags, tag, value}; DS (below the apex only) {key_tag, algorithm, digest_type, digest (hex)}, TLSA {usage, selector, matching_type, certificate (hex)}, SSHFP {algorithm, hash, fingerprint (hex)}, SVCB/HTTPS {priority, target_name, params?}
  • suspended_at, string or null
  • restriction, object — on a resource held after a review: suspended (its account is restricted) or blocked (its content or hostname may not be served); the one reason code is abuse-review
    • state, string, required (one of suspended, blocked)
    • reason, string, required (must be "abuse-review")
    • decision_id, string or null — the decision on your account that put it in place (GET /auth/account/restrictions lists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it is
    • contact, string — the abuse contact address to write to about it
  • unpaid, one of
    • variant 1: object — the zone's hosting hours are not paid: it is served until stops_at, then no DNS server answers for it (its records and keys are kept) until the account has credits again, which serves it again at once; a zone still unpaid at deletes_at is deleted (and the DS of a domain registered here withdrawn)
      • since, string, required — the first hour that could not be charged
      • reminded_at, string or null — when the account was told the serving would stop
      • stops_at, string or null — when the serving stops unless the account pays
      • stopped_at, string or null — when the serving stopped (null while it is still served)
      • deletes_at, string or null — once the serving stopped: when the zone is deleted unless the account pays first, as the account was told (null while it is still served)
    • variant 2: null
  • activated_at, string or null
  • id, string, required
  • check, one of
    • variant 1: object — the last delegation check of the zone; null before the first
      • checked_at, string or null, required
      • next_check_at, string or null, required
      • verdict, string or null, required — what the domain's parent answered: delegated (it names the zone's pair), not-delegated, lame or error
      • outcome, string or null, required — what the last check did: activated, kept, suspended, resumed, inconclusive, pending, charge-refused (top up and the next check retries) ...
    • variant 2: null
  • seed, one of
    • variant 1: object
      • snapshot_id, string
      • at, string
      • mode, string (one of merge, replace)
      • records, integer — the records taken from the copy
    • variant 2: null
  • domain, string, required
  • default_ttl, integer, required
  • state, string, required — pending: kept, no DNS server answers for it yet (it becomes active once the domain's parent names the zone's pair; a pending zone never activated is deleted after a window and leaves the list); active: served and billed; suspended: still served and kept, not billed (the delegation was lost, the hours could not be charged, or another account's zone took the domain over), active again when the delegation check passes and, for a zone suspended for unpaid hours, once the current hour is paid (one of pending, active, suspended)
  • created_at, string, required
  • served_at, string or null — pending zones: since when our DNS servers answer for it before its delegation
  • nameservers, array of strings, required — the zone's own pair: <id>.a1.<domain>. and <id>.a2.<domain>.
  • serving, one of
    • variant 1: object
      • state, string, required — served: our DNS servers answer for the pending zone now, switching the registrar has no dark window; held: another account claims the domain (or a name above or below it), the zone is served from its activation; waiting: the platform cannot serve it yet (one of served, held, waiting)
      • reason, string or null — why it is not served: claimed-elsewhere (another account claims the domain or a name above or below it), starting (served from the next publishing pass, within minutes), unavailable (the platform cannot serve it now); null when served (one of claimed-elsewhere, starting, unavailable, null)
      • since, string or null
    • variant 2: null
  • suspend_reason, string or null — a suspended zone's reason: delegation-lost, billing-refused or superseded

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found (no zone of the caller for the domain; another customer's alike, in any state)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/dns/zones/{origin}' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird dns records, weird dns delete, weird dns delete-zone):

$ weird dns records <domain>$ weird dns delete <domain> <name> [type]$ weird dns delete-zone <domain>

MCP: weird_dns_zone_get.

Delete one of the caller's DNS zones#

DELETE /dns/zones/{origin} · operation deleteDnsZone

The zone and its records are deleted, in whatever state (an active or suspended zone stops being served); the domain may be created again as a new zone. Deleting a pending zone (never activated) refunds its creation charge in full, once; refunded and refund_amount report it. When the refund cannot be made at once the zone is deleted all the same, refunded is false and refund_pending true: the refund follows automatically. Record-write charges are not refunded, and deleting an active or suspended zone refunds nothing. The delete itself is charged under the contract dns.zone-cancel (see GET /credits/charges; it may be zero). Cannot be undone. Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.zone-cancel is taken from the credits before it runs (402 insufficient-funds when they do not cover it: top up, then retry; it is refunded when the operation fails).

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedyes — see the charges below
Retry safetysend the Idempotency-Key header: a repeat with the same key answers the first answer and is not performed or charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.zone-cancelper_requestbefore it runs—see the credit charges

Parameters

NameInTypeRequiredDescription
originpathstringyes
Idempotency-Keyheaderstringno1..255 printable ASCII characters naming this operation. Repeating the request with the same key (on the same route, within 24 hours) answers the first answer again with the header idempotent-replay: true; it is not performed or charged a second time.

Answer 200 (DnsZoneDeleted): the result

  • origin, string, required
  • deleted, boolean, required (must be true)
  • refunded, boolean, required — true when the delete cancelled a pending zone and its creation charge was refunded
  • refund_amount, string or null, required — the refunded amount as a decimal string; null when nothing was refunded
  • refund_pending, boolean — present and true only when the refund could not be made at once: it follows automatically

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field Idempotency-Key: a malformed key, or one used for a different request)
401unauthorizedunauthorized
402insufficient-fundsinsufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry)
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409conflictconflict (the same operation is still in progress: retry shortly)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503charges-not-published, ledger-unavailable, unavailableunavailable (DNS hosting is not available now), ledger-unavailable (the credit account did not answer: try again later) or charges-not-published (try again later)

Example

curl -X DELETE 'https://api.weird.ro/dns/zones/{origin}' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

With the CLI (weird dns delete-zone):

$ weird dns delete-zone <domain>

MCP: weird_dns_zone_delete.

Check the zone's delegation now#

POST /dns/zones/{origin}/check · operation checkDnsZoneNow

After pointing the domain at the zone's pair at its registrar: checks the delegation at once instead of waiting for the next automatic check; a pending zone whose domain now points at its pair becomes active. Not charged. Safe to repeat.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:write
Chargedno

Parameters

NameInTypeRequiredDescription
originpathstringyes

Answer 200 (DnsCheckNow): the result

  • origin, string, required
  • domain, string, required
  • state, string, required — the zone's state before the check
  • verdict, string or null
  • outcome, string or null — activated, kept, pending, inconclusive ...
  • check, one of
    • variant 1: object — the last delegation check of the zone; null before the first
      • checked_at, string or null, required
      • next_check_at, string or null, required
      • verdict, string or null, required — what the domain's parent answered: delegated (it names the zone's pair), not-delegated, lame or error
      • outcome, string or null, required — what the last check did: activated, kept, suspended, resumed, inconclusive, pending, charge-refused (top up and the next check retries) ...
    • variant 2: null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (the check cannot run now: try again later)

Example

curl -X POST 'https://api.weird.ro/dns/zones/{origin}/check' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird dns check):

$ weird dns check <domain>

MCP: weird_dns_zone_check.

The DS record of one of the caller's active DNS zones#

GET /dns/zones/{origin}/dnssec · operation getDnsZoneDnssec

Every hosted zone is DNSSEC-signed once active (algorithm 13, ECDSAP256SHA256); this is the DS record to give the domain's registrar to complete the chain of trust: the key tag, the algorithm, the digest type (2, SHA-256), the digest, and the same as one zone file line. Only an active zone answers. Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
originpathstringyes

Answer 200 (DnsSec): the result

  • origin, string, required
  • domain, string, required
  • enabled, boolean, required
  • ds, one of, required
    • variant 1: object
      • key_tag, integer, required
      • algorithm, integer, required — 13: ECDSAP256SHA256
      • digest_type, integer, required — 2: SHA-256
      • digest, string, required — lowercase hex
    • variant 2: null
  • ds_record, string or null, required — the DS record as a zone file line: <origin> IN DS <key tag> <algorithm> <digest type> <DIGEST>

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found (no zone of the caller for the domain; another customer's alike)
409conflictconflict (the zone is pending or suspended)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/dns/zones/{origin}/dnssec' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird dns dnssec):

$ weird dns dnssec <domain>

MCP: weird_dns_dnssec_get.

One of the caller's DNS zones as a zone file#

GET /dns/zones/{origin}/export · operation exportDnsZone

The caller's zone of the domain, in whatever state, as an RFC 1035 zone file (the apex SOA and NS included). With an Accept header naming text/dns (or text/plain) the answer is the file itself, text/dns; charset=utf-8; otherwise the JSON object below. Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
originpathstringyes

Answer 200 (DnsZoneExport): the result

  • origin, string, required — the zone, dotted (its A-label)
  • domain, string, required
  • zone_file, string, required — the zone as an RFC 1035 zone file, the apex SOA and NS included
  • records, integer, required — how many records the file holds

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found (no zone of the caller for the domain; another customer's alike)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/dns/zones/{origin}/export' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird dns export):

$ weird dns export <domain>

MCP: weird_dns_zone_export.

Replace the records of one of the caller's DNS zones with a zone file#

PUT /dns/zones/{origin}/import · operation importDnsZone

REPLACES the zone's customer records with those of the RFC 1035 zone file (a record the file does not hold is gone; the apex SOA and NS are managed and skipped, as are lines that do not parse and unsupported types, all listed in skipped), in whatever state: the stored records of a pending zone, the served zone of an active or suspended one. The body is the file itself under text/dns or text/plain, or a JSON (or EDN) object {"zone_file"}. Every record passes the same rules as a record write; one refused record refuses the whole file and changes nothing. Charged under the contract dns.manage, like a record write. Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.manage is taken from the credits before it runs (402 insufficient-funds when they do not cover it: top up, then retry; it is refunded when the operation fails).

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedyes — see the charges below
Retry safetysend the Idempotency-Key header: a repeat with the same key answers the first answer and is not performed or charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.manageper_requestbefore it runs—see the credit charges

Parameters

NameInTypeRequiredDescription
originpathstringyes
Idempotency-Keyheaderstringno1..255 printable ASCII characters naming this operation. Repeating the request with the same key (on the same route, within 24 hours) answers the first answer again with the header idempotent-replay: true; it is not performed or charged a second time.

Request body (ImportDnsZone):

  • zone_file, string, required — an RFC 1035 zone file; the same text may be sent as the body itself under text/dns or text/plain

Answer 200 (DnsZoneImported): the result

  • origin, string, required
  • target, string, required — where the records were written: a pending zone's stored records, or an active or suspended zone's served copies (one of pending, served)
  • records, integer, required — the customer records the zone now holds from the file
  • skipped, array of objects, required — what the file held that was not imported: the managed apex SOA and NS, lines that do not parse, unsupported types
    • name, string or null
    • type, string or null
    • line, integer or null
    • reason, string or null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field zone_file: a blank file, or a record refused, with reason invalid-record, cname-conflict or record-cap-exceeded); invalid-params (field Idempotency-Key: a malformed key, or one used for a different request)
401unauthorizedunauthorized
402insufficient-fundsinsufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry)
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409conflictconflict (the zone changed state meanwhile: retry); conflict (the same operation is still in progress: retry shortly)
415unsupported-media-typeunsupported-media-type (send the content type the operation names)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503charges-not-published, ledger-unavailable, unavailableunavailable (try again later), ledger-unavailable (the credit account did not answer: try again later) or charges-not-published (the credit charges are not published yet: try again later)

Example

curl -X PUT 'https://api.weird.ro/dns/zones/{origin}/import' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"zone_file":"<zone_file>"}'

With the CLI (weird dns import):

$ weird dns import <domain> <file|->

MCP: weird_dns_zone_import.

How to move the domain's DNS here without interruption#

GET /dns/zones/{origin}/migration · operation getDnsMigrationAdvice

Read now: the DS record the domain's parent publishes today (an old provider's DS left in place makes validating resolvers fail the moment the nameservers change) and the safe order of steps (remove the old DS at the current registrar, wait for its TTL, lower the TTLs a day before, switch the nameservers to the zone's pair, check now, add our DS), the TTLs of the newest copy's records and the longest one, our DS once the zone is signed, whether our servers already answer for the zone (serving), and registry_managed (whether the platform publishes the DS for the caller; false: publish the DS record at the registrar). The zone's events gain old-ds-present when the parent holds a DS. Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
originpathstringyes

Answer 200 (DnsMigrationAdvice): the result

  • origin, string, required
  • registry_managed, boolean, required
  • steps, array of objects, required
    • step, string
    • text, string
  • domain, string, required
  • our_ds, string or null — our DS record, once the zone is signed here
  • ttl, object or null
    • longest, integer
    • rrsets, array of objects
    • lower_to, integer
    • advice, string
    • snapshot_id, string
  • state, string, required
  • nameservers, array of strings, required
  • serving, one of
    • variant 1: object
      • state, string, required — served: our DNS servers answer for the pending zone now, switching the registrar has no dark window; held: another account claims the domain (or a name above or below it), the zone is served from its activation; waiting: the platform cannot serve it yet (one of served, held, waiting)
      • reason, string or null — why it is not served: claimed-elsewhere (another account claims the domain or a name above or below it), starting (served from the next publishing pass, within minutes), unavailable (the platform cannot serve it now); null when served (one of claimed-elsewhere, starting, unavailable, null)
      • since, string or null
    • variant 2: null
  • ds, object, required
    • present, boolean
    • records, array of objects
    • error, string or null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/dns/zones/{origin}/migration' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird dns move):

$ weird dns move <domain>

MCP: weird_dns_migration_advice.

Set one record set of one of the caller's DNS zones#

POST /dns/zones/{origin}/records · operation upsertDnsRecords

record or records: one RRset (the same name, type and class), replacing the zone's records of that name, type and class wholesale: in the stored records of a pending zone, on the served zone of an active or suspended one. Types A, AAAA, CNAME, MX, TXT, SRV, CAA, NS and DS (below the apex), PTR, HTTPS, SVCB, TLSA and SSHFP; names inside the zone; class IN; ttl 1..2147483647 (default the zone's); a CNAME holds one value and never sits at the apex; the apex NS records are the zone's nameserver pair and cannot be set; @ in a hostname data field names the zone. A record another product of the account manages (a VPS hostname, an IPFS gateway domain or name, a tunnel, a VPS app deployment), while it still holds the value that product wrote, is refused 409 managed-record (managed_by, name, rrtype, deployment_id): change it through that product. A delegate under a domain grant carrying dns writes the owner's zone, charged to the grant's payer (403 delegate-blocked under a sensitive domain). Charged under the contract dns.manage. The records replaced are not kept: send them again to restore them, or remove the set with DELETE /dns/zones/{origin}/records/{name}. Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.manage is taken from the credits before it runs (402 insufficient-funds when they do not cover it: top up, then retry; it is refunded when the operation fails).

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedyes — see the charges below
Retry safetysend the Idempotency-Key header: a repeat with the same key answers the first answer and is not performed or charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.manageper_requestbefore it runs—see the credit charges

Parameters

NameInTypeRequiredDescription
originpathstringyes
Idempotency-Keyheaderstringno1..255 printable ASCII characters naming this operation. Repeating the request with the same key (on the same route, within 24 hours) answers the first answer again with the header idempotent-replay: true; it is not performed or charged a second time.

Request body (UpsertDnsRecords):

  • record, object
    • name, string, required — a name inside the zone, answered lowercased and dotted
    • type, string, required
    • class, string (default "IN")
    • ttl, integer (1 to 2147483647)
    • data, object, required — the data of the type: A/AAAA {address}, CNAME/NS/PTR {name}, MX {preference, exchange}, TXT {texts}, SRV {priority, weight, port, target}, CAA {flags, tag, value}; DS (below the apex only) {key_tag, algorithm, digest_type, digest (hex)}, TLSA {usage, selector, matching_type, certificate (hex)}, SSHFP {algorithm, hash, fingerprint (hex)}, SVCB/HTTPS {priority, target_name, params?}
  • records, array of objects — one RRset: the same name, type and class
    • name, string, required — a name inside the zone, answered lowercased and dotted
    • type, string, required
    • class, string (default "IN")
    • ttl, integer (1 to 2147483647)
    • data, object, required — the data of the type: A/AAAA {address}, CNAME/NS/PTR {name}, MX {preference, exchange}, TXT {texts}, SRV {priority, weight, port, target}, CAA {flags, tag, value}; DS (below the apex only) {key_tag, algorithm, digest_type, digest (hex)}, TLSA {usage, selector, matching_type, certificate (hex)}, SSHFP {algorithm, hash, fingerprint (hex)}, SVCB/HTTPS {priority, target_name, params?}

Answer 200 (DnsRecords): the result

  • origin, string, required
  • records, array of objects, required
    • name, string, required — a name inside the zone, answered lowercased and dotted
    • type, string, required
    • class, string (default "IN")
    • ttl, integer (1 to 2147483647)
    • data, object, required — the data of the type: A/AAAA {address}, CNAME/NS/PTR {name}, MX {preference, exchange}, TXT {texts}, SRV {priority, weight, port, target}, CAA {flags, tag, value}; DS (below the apex only) {key_tag, algorithm, digest_type, digest (hex)}, TLSA {usage, selector, matching_type, certificate (hex)}, SSHFP {algorithm, hash, fingerprint (hex)}, SVCB/HTTPS {priority, target_name, params?}

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (a missing or refused record; reason invalid-record, cname-conflict or record-cap-exceeded, with the field); invalid-params (field Idempotency-Key: a malformed key, or one used for a different request)
401unauthorizedunauthorized
402insufficient-fundsinsufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry)
403account-suspended, delegate-blocked, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it), profile-incomplete (complete the profile first: GET /auth/profile says what is missing) or delegate-blocked (a delegate may not do this: the owner must); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409conflict, managed-recordmanaged-record (another product manages the record), or conflict (the zone changed state meanwhile: retry); conflict (the same operation is still in progress: retry shortly)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503charges-not-published, ledger-unavailable, unavailableunavailable (try again later), ledger-unavailable (the credit account did not answer: try again later) or charges-not-published (the credit charges are not published yet: try again later)

Example

curl -X POST 'https://api.weird.ro/dns/zones/{origin}/records' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

With the CLI (weird dns set):

$ weird dns set <domain> <name> <type> <value...>

MCP: weird_dns_records_set.

Delete the records at a name of one of the caller's DNS zones#

DELETE /dns/zones/{origin}/records/{name} · operation deleteDnsRecord

type narrows to one type, class (with type) to one class, in whatever state the zone is. The apex NS records go with the zone and are refused. A name holding a record another product manages is refused 409 managed-record; a delegate under a grant carrying dns deletes in the owner's zone, charged to the grant's payer. Charged under the contract dns.manage. Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.manage is taken from the credits before it runs (402 insufficient-funds when they do not cover it: top up, then retry; it is refunded when the operation fails).

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedyes — see the charges below
Retry safetysend the Idempotency-Key header: a repeat with the same key answers the first answer and is not performed or charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.manageper_requestbefore it runs—see the credit charges

Parameters

NameInTypeRequiredDescription
originpathstringyes
namepathstringyes
typequerystringnoa record type
classquerystringnoa record class, honored together with type
Idempotency-Keyheaderstringno1..255 printable ASCII characters naming this operation. Repeating the request with the same key (on the same route, within 24 hours) answers the first answer again with the header idempotent-replay: true; it is not performed or charged a second time.

Answer 200 (DnsRecordDeleted): the result

  • deleted, boolean, required (must be true)
  • name, string, required

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (the apex NS records, a malformed name); invalid-params (field Idempotency-Key: a malformed key, or one used for a different request)
401unauthorizedunauthorized
402insufficient-fundsinsufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry)
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409conflict, managed-recordmanaged-record (another product manages a record at the name), or conflict (the zone changed state meanwhile: retry); conflict (the same operation is still in progress: retry shortly)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503charges-not-published, ledger-unavailable, unavailableunavailable (try again later), ledger-unavailable (the credit account did not answer: try again later) or charges-not-published (the credit charges are not published yet: try again later)

Example

curl -X DELETE 'https://api.weird.ro/dns/zones/{origin}/records/{name}' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

With the CLI (weird dns delete):

$ weird dns delete <domain> <name> [type]

MCP: weird_dns_records_delete.

Copy the domain's DNS again and store what changed since the seed#

POST /dns/zones/{origin}/resync · operation resyncDnsZone

For a seeded pending zone: a new copy with its diff against the seed's copy (record sets added, removed, changed). The zone's records do not change until the diff is applied. The platform also re-syncs a pending zone by itself every few hours until the domain points here; the zone's events gain snapshot-changed when something changed. Charged once under the contract dns.manage. Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.manage is taken from the credits before it runs (402 insufficient-funds when they do not cover it: top up, then retry; it is refunded when the operation fails).

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedyes — see the charges below
Retry safetysend the Idempotency-Key header: a repeat with the same key answers the first answer and is not performed or charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.manageper_requestbefore it runs—see the credit charges

Parameters

NameInTypeRequiredDescription
originpathstringyes
Idempotency-Keyheaderstringno1..255 printable ASCII characters naming this operation. Repeating the request with the same key (on the same route, within 24 hours) answers the first answer again with the header idempotent-replay: true; it is not performed or charged a second time.

Answer 201 (DnsSnapshot): the result

  • authoritative, boolean, required
  • origin, string, required
  • records, array of objects
    • name, string, required — a name inside the zone, answered lowercased and dotted
    • type, string, required
    • class, string (default "IN")
    • ttl, integer (1 to 2147483647)
    • data, object, required — the data of the type: A/AAAA {address}, CNAME/NS/PTR {name}, MX {preference, exchange}, TXT {texts}, SRV {priority, weight, port, target}, CAA {flags, tag, value}; DS (below the apex only) {key_tag, algorithm, digest_type, digest (hex)}, TLSA {usage, selector, matching_type, certificate (hex)}, SSHFP {algorithm, hash, fingerprint (hex)}, SVCB/HTTPS {priority, target_name, params?}
  • server, string or null
  • zone_id, string or null
  • id, string, required
  • diff, object or null — re-syncs: {added, removed, changed, against}
  • unusable_reason, string or null — own-nameservers, no-records or capture-failed
  • errors, array of objects, required
    • query, string
    • error, string
  • usable, boolean, required — whether it can seed the zone
  • extra_names, array of strings
  • domain, string, required
  • addresses, array of strings, required — their IPv4 and IPv6 addresses
  • discovered, integer
  • axfr, boolean, required
  • source, string, required (one of customer, resync, registration)
  • taken_at, string, required
  • record_count, integer, required
  • nameservers, array of strings, required — the domain's nameservers the copy was read from
  • ds, array of objects — the DS records the domain's parent publishes
    • key_tag, integer
    • algorithm, integer
    • digest_type, integer

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field Idempotency-Key: a malformed key, or one used for a different request)
401unauthorizedunauthorized
402insufficient-fundsinsufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry)
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409conflictconflict (the zone is not pending; reason not-seeded); conflict (the same operation is still in progress: retry shortly)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503charges-not-published, ledger-unavailable, unavailableunavailable (try again later), ledger-unavailable (the credit account did not answer: try again later) or charges-not-published (the credit charges are not published yet: try again later)

Example

curl -X POST 'https://api.weird.ro/dns/zones/{origin}/resync' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

With the CLI (weird dns resync check):

$ weird dns resync check <domain>

MCP: weird_dns_resync.

The newest re-sync's diff and how it would apply#

GET /dns/zones/{origin}/resync · operation previewDnsResync

A record set applies where the zone still holds what the seed wrote; one the caller edited since the seed is skipped (edited) unless overwrite_edited; one the caller set themselves is never touched (customer-set). Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
originpathstringyes
snapshot_idquerystringnoa re-sync copy (default the newest against the seed)
overwrite_editedquerybooleannotrue to apply record sets edited by hand too

Answer 200 (DnsResync): the result

  • origin, string, required
  • domain, string, required
  • snapshot_id, string, required
  • against, string, required
  • diff, object, required — {added, removed, changed}: record sets
  • counts, object, required
  • applied, array of objects, required
  • skipped, array of objects, required — {name, type, change, rule: edited, customer-set or cname-conflict}

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field overwrite_edited)
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found (no zone, no re-sync)
409conflictconflict (not pending; reason not-seeded or stale-resync)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/dns/zones/{origin}/resync' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird dns resync preview, weird dns resync apply):

$ weird dns resync preview <domain>$ weird dns resync apply <domain>

MCP: weird_dns_resync_preview.

Apply a re-sync's diff to the pending zone#

POST /dns/zones/{origin}/resync/apply · operation applyDnsResync

Writes the preview's plan all at once; what was edited by hand is never overwritten without overwrite_edited. Charged once under the contract dns.manage. Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.manage is taken from the credits before it runs (402 insufficient-funds when they do not cover it: top up, then retry; it is refunded when the operation fails).

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedyes — see the charges below
Retry safetysend the Idempotency-Key header: a repeat with the same key answers the first answer and is not performed or charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.manageper_requestbefore it runs—see the credit charges

Parameters

NameInTypeRequiredDescription
originpathstringyes
Idempotency-Keyheaderstringno1..255 printable ASCII characters naming this operation. Repeating the request with the same key (on the same route, within 24 hours) answers the first answer again with the header idempotent-replay: true; it is not performed or charged a second time.

Request body (DnsResyncApply):

  • snapshot_id, string
  • overwrite_edited, boolean

Answer 200 (DnsResync): the result

  • origin, string, required
  • domain, string, required
  • snapshot_id, string, required
  • against, string, required
  • diff, object, required — {added, removed, changed}: record sets
  • counts, object, required
  • applied, array of objects, required
  • skipped, array of objects, required — {name, type, change, rule: edited, customer-set or cname-conflict}

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field overwrite_edited; reason cname-conflict, record-cap-exceeded or invalid-record); invalid-params (field Idempotency-Key: a malformed key, or one used for a different request)
401unauthorizedunauthorized
402insufficient-fundsinsufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry)
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409conflictconflict (not pending; reason not-seeded or stale-resync: re-sync again); conflict (the same operation is still in progress: retry shortly)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503charges-not-published, ledger-unavailable, unavailableunavailable (try again later), ledger-unavailable (the credit account did not answer: try again later) or charges-not-published (the credit charges are not published yet: try again later)

Example

curl -X POST 'https://api.weird.ro/dns/zones/{origin}/resync/apply' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

With the CLI (weird dns resync apply):

$ weird dns resync apply <domain>

MCP: weird_dns_resync_apply.

Fill a pending zone from a copy of the domain's DNS, in one write#

POST /dns/zones/{origin}/seed · operation seedDnsZone

Writes the preview's plan all at once (body and answer as the preview). A pending zone our DNS servers already serve answers the copied records at once, so switching the registrar to the zone's pair causes no outage. Charged ONCE for the whole seed under the contract dns.manage, whatever the number of records; the zone's events gain seeded ("seeded with N records"). Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.manage is taken from the credits before it runs (402 insufficient-funds when they do not cover it: top up, then retry; it is refunded when the operation fails).

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedyes — see the charges below
Retry safetysend the Idempotency-Key header: a repeat with the same key answers the first answer and is not performed or charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.manageper_requestbefore it runs—see the credit charges

Parameters

NameInTypeRequiredDescription
originpathstringyes
Idempotency-Keyheaderstringno1..255 printable ASCII characters naming this operation. Repeating the request with the same key (on the same route, within 24 hours) answers the first answer again with the header idempotent-replay: true; it is not performed or charged a second time.

Request body (DnsSeed):

  • snapshot_id, string — default: the newest usable copy
  • mode, string (one of merge, replace; default "merge")

Answer 200 (DnsSeedPlan): the result

  • origin, string, required
  • records, array of objects, required — the zone's records after the seed (the apex NS pair aside)
    • name, string, required — a name inside the zone, answered lowercased and dotted
    • type, string, required
    • class, string (default "IN")
    • ttl, integer (1 to 2147483647)
    • data, object, required — the data of the type: A/AAAA {address}, CNAME/NS/PTR {name}, MX {preference, exchange}, TXT {texts}, SRV {priority, weight, port, target}, CAA {flags, tag, value}; DS (below the apex only) {key_tag, algorithm, digest_type, digest (hex)}, TLSA {usage, selector, matching_type, certificate (hex)}, SSHFP {algorithm, hash, fingerprint (hex)}, SVCB/HTTPS {priority, target_name, params?}
  • kept, integer, required
  • clamped, integer, required — TTLs of 0 raised to 1
  • count, integer, required
  • from_snapshot, integer, required
  • mode, string, required
  • domain, string, required
  • snapshot_id, string, required
  • dropped, array of objects, required — copied records that cannot be hosted, with why
    • record, object
      • name, string, required — a name inside the zone, answered lowercased and dotted
      • type, string, required
      • class, string (default "IN")
      • ttl, integer (1 to 2147483647)
      • data, object, required — the data of the type: A/AAAA {address}, CNAME/NS/PTR {name}, MX {preference, exchange}, TXT {texts}, SRV {priority, weight, port, target}, CAA {flags, tag, value}; DS (below the apex only) {key_tag, algorithm, digest_type, digest (hex)}, TLSA {usage, selector, matching_type, certificate (hex)}, SSHFP {algorithm, hash, fingerprint (hex)}, SVCB/HTTPS {priority, target_name, params?}
    • rule, string
    • message, string
  • skipped, array of objects, required — copied records the customer's own won over (customer-set, cname-conflict)
    • record, object
      • name, string, required — a name inside the zone, answered lowercased and dotted
      • type, string, required
      • class, string (default "IN")
      • ttl, integer (1 to 2147483647)
      • data, object, required — the data of the type: A/AAAA {address}, CNAME/NS/PTR {name}, MX {preference, exchange}, TXT {texts}, SRV {priority, weight, port, target}, CAA {flags, tag, value}; DS (below the apex only) {key_tag, algorithm, digest_type, digest (hex)}, TLSA {usage, selector, matching_type, certificate (hex)}, SSHFP {algorithm, hash, fingerprint (hex)}, SVCB/HTTPS {priority, target_name, params?}
    • rule, string
    • message, string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field mode or snapshot_id; reason snapshot-unusable, cname-conflict, record-cap-exceeded or invalid-record); invalid-params (field Idempotency-Key: a malformed key, or one used for a different request)
401unauthorizedunauthorized
402insufficient-fundsinsufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry)
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409conflictconflict (the zone is not pending, or was activated meanwhile); conflict (the same operation is still in progress: retry shortly)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503charges-not-published, ledger-unavailable, unavailableunavailable (try again later), ledger-unavailable (the credit account did not answer: try again later) or charges-not-published (the credit charges are not published yet: try again later)

Example

curl -X POST 'https://api.weird.ro/dns/zones/{origin}/seed' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

With the CLI (weird dns seed):

$ weird dns seed <domain>

MCP: weird_dns_seed.

What a seed of a pending zone from a copy would write#

POST /dns/zones/{origin}/seed/preview · operation previewDnsSeed

Exactly what the seed would write, writing nothing. The copy (snapshot_id, default the newest usable one) is filtered: the apex SOA and NS dropped (the zone's own replace them), delegations and their glue kept, a TTL of 0 raised to 1, records that cannot be hosted dropped with the rule saying why (dropped), duplicates dropped. Mode merge (the default) keeps every record set the caller already set and fills only the rest (skipped lists the copy's records the caller's own won over); replace takes the copy's records instead. The zone's record limit applies last. Not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:read
Chargedno

Parameters

NameInTypeRequiredDescription
originpathstringyes

Request body (DnsSeed):

  • snapshot_id, string — default: the newest usable copy
  • mode, string (one of merge, replace; default "merge")

Answer 200 (DnsSeedPlan): the result

  • origin, string, required
  • records, array of objects, required — the zone's records after the seed (the apex NS pair aside)
    • name, string, required — a name inside the zone, answered lowercased and dotted
    • type, string, required
    • class, string (default "IN")
    • ttl, integer (1 to 2147483647)
    • data, object, required — the data of the type: A/AAAA {address}, CNAME/NS/PTR {name}, MX {preference, exchange}, TXT {texts}, SRV {priority, weight, port, target}, CAA {flags, tag, value}; DS (below the apex only) {key_tag, algorithm, digest_type, digest (hex)}, TLSA {usage, selector, matching_type, certificate (hex)}, SSHFP {algorithm, hash, fingerprint (hex)}, SVCB/HTTPS {priority, target_name, params?}
  • kept, integer, required
  • clamped, integer, required — TTLs of 0 raised to 1
  • count, integer, required
  • from_snapshot, integer, required
  • mode, string, required
  • domain, string, required
  • snapshot_id, string, required
  • dropped, array of objects, required — copied records that cannot be hosted, with why
    • record, object
      • name, string, required — a name inside the zone, answered lowercased and dotted
      • type, string, required
      • class, string (default "IN")
      • ttl, integer (1 to 2147483647)
      • data, object, required — the data of the type: A/AAAA {address}, CNAME/NS/PTR {name}, MX {preference, exchange}, TXT {texts}, SRV {priority, weight, port, target}, CAA {flags, tag, value}; DS (below the apex only) {key_tag, algorithm, digest_type, digest (hex)}, TLSA {usage, selector, matching_type, certificate (hex)}, SSHFP {algorithm, hash, fingerprint (hex)}, SVCB/HTTPS {priority, target_name, params?}
    • rule, string
    • message, string
  • skipped, array of objects, required — copied records the customer's own won over (customer-set, cname-conflict)
    • record, object
      • name, string, required — a name inside the zone, answered lowercased and dotted
      • type, string, required
      • class, string (default "IN")
      • ttl, integer (1 to 2147483647)
      • data, object, required — the data of the type: A/AAAA {address}, CNAME/NS/PTR {name}, MX {preference, exchange}, TXT {texts}, SRV {priority, weight, port, target}, CAA {flags, tag, value}; DS (below the apex only) {key_tag, algorithm, digest_type, digest (hex)}, TLSA {usage, selector, matching_type, certificate (hex)}, SSHFP {algorithm, hash, fingerprint (hex)}, SVCB/HTTPS {priority, target_name, params?}
    • rule, string
    • message, string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field mode or snapshot_id; reason snapshot-unusable)
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found (no zone, no usable copy, another customer's copy)
409conflictconflict (the zone is not pending)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/dns/zones/{origin}/seed/preview' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

With the CLI (weird dns seed):

$ weird dns seed <domain>

MCP: weird_dns_seed_preview.

Copy the domain's existing DNS from its current nameservers#

POST /dns/zones/{origin}/snapshots · operation takeDnsSnapshot

Reads the domain's live DNS from the nameservers it uses today (a zone transfer where the servers allow it, else the apex and the common names, plus names and, with discover, the names public certificate logs know; at most 38 extra names) and keeps the copy: the nameservers and their addresses, the server that answered, authoritative (false: read through a recursive resolver), axfr, errors, the records, and the DS the domain's parent publishes. A copy read from our own nameservers (the domain already points here) or holding no record is kept with usable false (unusable_reason own-nameservers, no-records or capture-failed) and cannot seed the zone. Charged once under the contract dns.manage (discover costs nothing more). Each call keeps another copy; it changes nothing in the zone. Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.manage is taken from the credits before it runs (402 insufficient-funds when they do not cover it: top up, then retry; it is refunded when the operation fails).

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedyes — see the charges below
Retry safetysend the Idempotency-Key header: a repeat with the same key answers the first answer and is not performed or charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.manageper_requestbefore it runs—see the credit charges

Parameters

NameInTypeRequiredDescription
originpathstringyes
Idempotency-Keyheaderstringno1..255 printable ASCII characters naming this operation. Repeating the request with the same key (on the same route, within 24 hours) answers the first answer again with the header idempotent-replay: true; it is not performed or charged a second time.

Request body (TakeDnsSnapshot):

  • names, array of strings — extra names to read: labels or names under the domain (0 to 38 items)
  • discover, boolean — also read the names certificate logs know (slower)

Answer 201 (DnsSnapshot): the result

  • authoritative, boolean, required
  • origin, string, required
  • records, array of objects
    • name, string, required — a name inside the zone, answered lowercased and dotted
    • type, string, required
    • class, string (default "IN")
    • ttl, integer (1 to 2147483647)
    • data, object, required — the data of the type: A/AAAA {address}, CNAME/NS/PTR {name}, MX {preference, exchange}, TXT {texts}, SRV {priority, weight, port, target}, CAA {flags, tag, value}; DS (below the apex only) {key_tag, algorithm, digest_type, digest (hex)}, TLSA {usage, selector, matching_type, certificate (hex)}, SSHFP {algorithm, hash, fingerprint (hex)}, SVCB/HTTPS {priority, target_name, params?}
  • server, string or null
  • zone_id, string or null
  • id, string, required
  • diff, object or null — re-syncs: {added, removed, changed, against}
  • unusable_reason, string or null — own-nameservers, no-records or capture-failed
  • errors, array of objects, required
    • query, string
    • error, string
  • usable, boolean, required — whether it can seed the zone
  • extra_names, array of strings
  • domain, string, required
  • addresses, array of strings, required — their IPv4 and IPv6 addresses
  • discovered, integer
  • axfr, boolean, required
  • source, string, required (one of customer, resync, registration)
  • taken_at, string, required
  • record_count, integer, required
  • nameservers, array of strings, required — the domain's nameservers the copy was read from
  • ds, array of objects — the DS records the domain's parent publishes
    • key_tag, integer
    • algorithm, integer
    • digest_type, integer

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field names or discover); invalid-params (field Idempotency-Key: a malformed key, or one used for a different request)
401unauthorizedunauthorized
402insufficient-fundsinsufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry)
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found (no zone of the caller for the domain)
409conflictconflict (the same operation is still in progress: retry shortly)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503charges-not-published, ledger-unavailable, unavailableunavailable (live DNS cannot be read now), ledger-unavailable (the credit account did not answer: try again later) or charges-not-published (try again later)

Example

curl -X POST 'https://api.weird.ro/dns/zones/{origin}/snapshots' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

With the CLI (weird dns snapshot take):

$ weird dns snapshot take <domain>

MCP: weird_dns_snapshot_take.

The copies of the domain's DNS taken for one of the caller's zones#

GET /dns/zones/{origin}/snapshots · operation listDnsSnapshots

The copies of the domain's existing DNS taken for the zone origin (POST /dns/zones/{origin}/snapshots takes one), newest first, without their records; read one with its records by its id. Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
originpathstringyes

Answer 200 (DnsSnapshotList): the result

  • snapshots, array of objects, required
    • authoritative, boolean, required
    • origin, string, required
    • records, array of objects
      • name, string, required — a name inside the zone, answered lowercased and dotted
      • type, string, required
      • class, string (default "IN")
      • ttl, integer (1 to 2147483647)
      • data, object, required — the data of the type: A/AAAA {address}, CNAME/NS/PTR {name}, MX {preference, exchange}, TXT {texts}, SRV {priority, weight, port, target}, CAA {flags, tag, value}; DS (below the apex only) {key_tag, algorithm, digest_type, digest (hex)}, TLSA {usage, selector, matching_type, certificate (hex)}, SSHFP {algorithm, hash, fingerprint (hex)}, SVCB/HTTPS {priority, target_name, params?}
    • server, string or null
    • zone_id, string or null
    • id, string, required
    • diff, object or null — re-syncs: {added, removed, changed, against}
    • unusable_reason, string or null — own-nameservers, no-records or capture-failed
    • errors, array of objects, required
      • query, string
      • error, string
    • usable, boolean, required — whether it can seed the zone
    • extra_names, array of strings
    • domain, string, required
    • addresses, array of strings, required — their IPv4 and IPv6 addresses
    • discovered, integer
    • axfr, boolean, required
    • source, string, required (one of customer, resync, registration)
    • taken_at, string, required
    • record_count, integer, required
    • nameservers, array of strings, required — the domain's nameservers the copy was read from
    • ds, array of objects — the DS records the domain's parent publishes
      • key_tag, integer
      • algorithm, integer
      • digest_type, integer

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/dns/zones/{origin}/snapshots' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird dns snapshot list):

$ weird dns snapshot list <domain>

MCP: weird_dns_snapshots_list.

One copy of the domain's DNS, with its records#

GET /dns/zones/{origin}/snapshots/{id} · operation getDnsSnapshot

Answers the copy with every record it holds. Another customer's copy, or one of another domain, is 404. Cost (credit charges in GET /credits/charges): the per_request credit charge of dns.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissiondns:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
dns.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
originpathstringyes
idpathstringyes

Answer 200 (DnsSnapshot): the result

  • authoritative, boolean, required
  • origin, string, required
  • records, array of objects
    • name, string, required — a name inside the zone, answered lowercased and dotted
    • type, string, required
    • class, string (default "IN")
    • ttl, integer (1 to 2147483647)
    • data, object, required — the data of the type: A/AAAA {address}, CNAME/NS/PTR {name}, MX {preference, exchange}, TXT {texts}, SRV {priority, weight, port, target}, CAA {flags, tag, value}; DS (below the apex only) {key_tag, algorithm, digest_type, digest (hex)}, TLSA {usage, selector, matching_type, certificate (hex)}, SSHFP {algorithm, hash, fingerprint (hex)}, SVCB/HTTPS {priority, target_name, params?}
  • server, string or null
  • zone_id, string or null
  • id, string, required
  • diff, object or null — re-syncs: {added, removed, changed, against}
  • unusable_reason, string or null — own-nameservers, no-records or capture-failed
  • errors, array of objects, required
    • query, string
    • error, string
  • usable, boolean, required — whether it can seed the zone
  • extra_names, array of strings
  • domain, string, required
  • addresses, array of strings, required — their IPv4 and IPv6 addresses
  • discovered, integer
  • axfr, boolean, required
  • source, string, required (one of customer, resync, registration)
  • taken_at, string, required
  • record_count, integer, required
  • nameservers, array of strings, required — the domain's nameservers the copy was read from
  • ds, array of objects — the DS records the domain's parent publishes
    • key_tag, integer
    • algorithm, integer
    • digest_type, integer

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/dns/zones/{origin}/snapshots/{id}' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird dns snapshot show):

$ weird dns snapshot show <domain> <id>

MCP: weird_dns_snapshot_get.

This page is generated from the API's public document; it changes when the document does.