Menu
DNS
Zones, records, copying a domain's live DNS, DNSSEC, moving a domain.
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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
after | query | integer | no | the cursor: the last event id seen (default 0, from the start) (default 0; at least 0) |
limit | query | integer | no | the page size, 1..500 (default 100) (default 100; 1 to 500) |
Answer 200 (DnsEventList): the result
events, array of objects, requiredid, integer, required — the event's cursor: pass the last one seen asafterat, string, requiredorigin, string, requireddomain, string, requiredzone_id, string, requiredkind, string, required — activated, suspended, resumed, expired, deleted, pending-reminder, seeded, snapshot-changed or old-ds-presentdetail, 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):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (field after or limit) |
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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 eventsMCP: 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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.reads | per_request | after a successful answer | — | see the credit charges |
Answer 200 (DnsZoneList): the result
zones, array of objects, requiredorigin, string, required — the domain, lowercased and dottedrecords, array of objects, required — the apex NS records naming the pair, then the caller's recordsname, string, required — a name inside the zone, answered lowercased and dottedtype, string, requiredclass, 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 nullrestriction, object — on a resource held after a review:suspended(its account is restricted) orblocked(its content or hostname may not be served); the one reason code isabuse-reviewstate, string, required (one ofsuspended,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/restrictionslists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it iscontact, 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 atdeletes_atis deleted (and the DS of a domain registered here withdrawn)since, string, required — the first hour that could not be chargedreminded_at, string or null — when the account was told the serving would stopstops_at, string or null — when the serving stops unless the account paysstopped_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
- variant 1: object — the zone's hosting hours are not paid: it is served until
activated_at, string or nullid, string, requiredcheck, one of- variant 1: object — the last delegation check of the zone; null before the first
checked_at, string or null, requirednext_check_at, string or null, requiredverdict, string or null, required — what the domain's parent answered: delegated (it names the zone's pair), not-delegated, lame or erroroutcome, 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
- variant 1: object — the last delegation check of the zone; null before the first
seed, one of- variant 1: object
snapshot_id, stringat, stringmode, string (one ofmerge,replace)records, integer — the records taken from the copy
- variant 2: null
- variant 1: object
domain, string, requireddefault_ttl, integer, requiredstate, 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 ofpending,active,suspended)created_at, string, requiredserved_at, string or null — pending zones: since when our DNS servers answer for it before its delegationnameservers, 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 ofserved,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 ofclaimed-elsewhere,starting,unavailable,null)since, string or null
- variant 2: null
- variant 1: object
suspend_reason, string or null — a suspended zone's reason: delegation-lost, billing-refused or superseded
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (DNS hosting did not answer: try again later) |
| 503 | unavailable | unavailable (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 listMCP: 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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:write |
| Strong authentication | a 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 |
| Charged | yes — see the charges below |
| Retry safety | send 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.manage | per_request | before it runs | — | see the credit charges |
recurring.dns-entry-hourly | per_entry_hour | every hour while it exists | records | see the credit charges |
dns.traffic-hourly | per_answer | per use | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | no | 1..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 dottedrecords, array of objects, required — the apex NS records naming the pair, then the caller's recordsname, string, required — a name inside the zone, answered lowercased and dottedtype, string, requiredclass, 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 nullrestriction, object — on a resource held after a review:suspended(its account is restricted) orblocked(its content or hostname may not be served); the one reason code isabuse-reviewstate, string, required (one ofsuspended,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/restrictionslists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it iscontact, 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 atdeletes_atis deleted (and the DS of a domain registered here withdrawn)since, string, required — the first hour that could not be chargedreminded_at, string or null — when the account was told the serving would stopstops_at, string or null — when the serving stops unless the account paysstopped_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
- variant 1: object — the zone's hosting hours are not paid: it is served until
activated_at, string or nullid, string, requiredcheck, one of- variant 1: object — the last delegation check of the zone; null before the first
checked_at, string or null, requirednext_check_at, string or null, requiredverdict, string or null, required — what the domain's parent answered: delegated (it names the zone's pair), not-delegated, lame or erroroutcome, 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
- variant 1: object — the last delegation check of the zone; null before the first
seed, one of- variant 1: object
snapshot_id, stringat, stringmode, string (one ofmerge,replace)records, integer — the records taken from the copy
- variant 2: null
- variant 1: object
domain, string, requireddefault_ttl, integer, requiredstate, 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 ofpending,active,suspended)created_at, string, requiredserved_at, string or null — pending zones: since when our DNS servers answer for it before its delegationnameservers, 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 ofserved,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 ofclaimed-elsewhere,starting,unavailable,null)since, string or null
- variant 2: null
- variant 1: object
suspend_reason, string or null — a suspended zone's reason: delegation-lost, billing-refused or superseded
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-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) |
| 401 | unauthorized | unauthorized |
| 402 | insufficient-funds | insufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry) |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 409 | conflict | conflict (the caller already holds a zone for the domain); conflict (the same operation is still in progress: retry shortly) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 451 | hostname-blocked | hostname-blocked (the hostname or content was blocked after a review: reason abuse-review; contest it through a support ticket or contact) |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | charges-not-published, ledger-unavailable, unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
origin | path | string | yes |
Answer 200 (DnsZone): the result
origin, string, required — the domain, lowercased and dottedrecords, array of objects, required — the apex NS records naming the pair, then the caller's recordsname, string, required — a name inside the zone, answered lowercased and dottedtype, string, requiredclass, 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 nullrestriction, object — on a resource held after a review:suspended(its account is restricted) orblocked(its content or hostname may not be served); the one reason code isabuse-reviewstate, string, required (one ofsuspended,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/restrictionslists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it iscontact, 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 atdeletes_atis deleted (and the DS of a domain registered here withdrawn)since, string, required — the first hour that could not be chargedreminded_at, string or null — when the account was told the serving would stopstops_at, string or null — when the serving stops unless the account paysstopped_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
- variant 1: object — the zone's hosting hours are not paid: it is served until
activated_at, string or nullid, string, requiredcheck, one of- variant 1: object — the last delegation check of the zone; null before the first
checked_at, string or null, requirednext_check_at, string or null, requiredverdict, string or null, required — what the domain's parent answered: delegated (it names the zone's pair), not-delegated, lame or erroroutcome, 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
- variant 1: object — the last delegation check of the zone; null before the first
seed, one of- variant 1: object
snapshot_id, stringat, stringmode, string (one ofmerge,replace)records, integer — the records taken from the copy
- variant 2: null
- variant 1: object
domain, string, requireddefault_ttl, integer, requiredstate, 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 ofpending,active,suspended)created_at, string, requiredserved_at, string or null — pending zones: since when our DNS servers answer for it before its delegationnameservers, 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 ofserved,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 ofclaimed-elsewhere,starting,unavailable,null)since, string or null
- variant 2: null
- variant 1: object
suspend_reason, string or null — a suspended zone's reason: delegation-lost, billing-refused or superseded
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found (no zone of the caller for the domain; another customer's alike, in any state) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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).
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:write |
| Strong authentication | a 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 |
| Charged | yes — see the charges below |
| Retry safety | send 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.zone-cancel | per_request | before it runs | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
origin | path | string | yes | |
Idempotency-Key | header | string | no | 1..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, requireddeleted, boolean, required (must betrue)refunded, boolean, required — true when the delete cancelled a pending zone and its creation charge was refundedrefund_amount, string or null, required — the refunded amount as a decimal string; null when nothing was refundedrefund_pending, boolean — present and true only when the refund could not be made at once: it follows automatically
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (field Idempotency-Key: a malformed key, or one used for a different request) |
| 401 | unauthorized | unauthorized |
| 402 | insufficient-funds | insufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry) |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | conflict | conflict (the same operation is still in progress: retry shortly) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | charges-not-published, ledger-unavailable, unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:write |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
origin | path | string | yes |
Answer 200 (DnsCheckNow): the result
origin, string, requireddomain, string, requiredstate, string, required — the zone's state before the checkverdict, string or nulloutcome, 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, requirednext_check_at, string or null, requiredverdict, string or null, required — what the domain's parent answered: delegated (it names the zone's pair), not-delegated, lame or erroroutcome, 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
- variant 1: object — the last delegation check of the zone; null before the first
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
origin | path | string | yes |
Answer 200 (DnsSec): the result
origin, string, requireddomain, string, requiredenabled, boolean, requiredds, one of, required- variant 1: object
key_tag, integer, requiredalgorithm, integer, required — 13: ECDSAP256SHA256digest_type, integer, required — 2: SHA-256digest, string, required — lowercase hex
- variant 2: null
- variant 1: object
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):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found (no zone of the caller for the domain; another customer's alike) |
| 409 | conflict | conflict (the zone is pending or suspended) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
origin | path | string | yes |
Answer 200 (DnsZoneExport): the result
origin, string, required — the zone, dotted (its A-label)domain, string, requiredzone_file, string, required — the zone as an RFC 1035 zone file, the apex SOA and NS includedrecords, integer, required — how many records the file holds
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found (no zone of the caller for the domain; another customer's alike) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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).
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:write |
| Strong authentication | a 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 |
| Charged | yes — see the charges below |
| Retry safety | send 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.manage | per_request | before it runs | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
origin | path | string | yes | |
Idempotency-Key | header | string | no | 1..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 undertext/dnsortext/plain
Answer 200 (DnsZoneImported): the result
origin, string, requiredtarget, string, required — where the records were written: a pending zone's stored records, or an active or suspended zone's served copies (one ofpending,served)records, integer, required — the customer records the zone now holds from the fileskipped, array of objects, required — what the file held that was not imported: the managed apex SOA and NS, lines that do not parse, unsupported typesname, string or nulltype, string or nullline, integer or nullreason, string or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-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) |
| 401 | unauthorized | unauthorized |
| 402 | insufficient-funds | insufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry) |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | conflict | conflict (the zone changed state meanwhile: retry); conflict (the same operation is still in progress: retry shortly) |
| 415 | unsupported-media-type | unsupported-media-type (send the content type the operation names) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | charges-not-published, ledger-unavailable, unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
origin | path | string | yes |
Answer 200 (DnsMigrationAdvice): the result
origin, string, requiredregistry_managed, boolean, requiredsteps, array of objects, requiredstep, stringtext, string
domain, string, requiredour_ds, string or null — our DS record, once the zone is signed herettl, object or nulllongest, integerrrsets, array of objectslower_to, integeradvice, stringsnapshot_id, string
state, string, requirednameservers, array of strings, requiredserving, 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 ofserved,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 ofclaimed-elsewhere,starting,unavailable,null)since, string or null
- variant 2: null
- variant 1: object
ds, object, requiredpresent, booleanrecords, array of objectserror, string or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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).
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:write |
| Strong authentication | a 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 |
| Charged | yes — see the charges below |
| Retry safety | send 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.manage | per_request | before it runs | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
origin | path | string | yes | |
Idempotency-Key | header | string | no | 1..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, objectname, string, required — a name inside the zone, answered lowercased and dottedtype, string, requiredclass, 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 classname, string, required — a name inside the zone, answered lowercased and dottedtype, string, requiredclass, 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, requiredrecords, array of objects, requiredname, string, required — a name inside the zone, answered lowercased and dottedtype, string, requiredclass, 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):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-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) |
| 401 | unauthorized | unauthorized |
| 402 | insufficient-funds | insufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry) |
| 403 | account-suspended, delegate-blocked, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | conflict, managed-record | managed-record (another product manages the record), or conflict (the zone changed state meanwhile: retry); conflict (the same operation is still in progress: retry shortly) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | charges-not-published, ledger-unavailable, unavailable | unavailable (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).
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:write |
| Strong authentication | a 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 |
| Charged | yes — see the charges below |
| Retry safety | send 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.manage | per_request | before it runs | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
origin | path | string | yes | |
name | path | string | yes | |
type | query | string | no | a record type |
class | query | string | no | a record class, honored together with type |
Idempotency-Key | header | string | no | 1..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 betrue)name, string, required
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (the apex NS records, a malformed name); invalid-params (field Idempotency-Key: a malformed key, or one used for a different request) |
| 401 | unauthorized | unauthorized |
| 402 | insufficient-funds | insufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry) |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | conflict, managed-record | managed-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) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | charges-not-published, ledger-unavailable, unavailable | unavailable (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).
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:write |
| Strong authentication | a 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 |
| Charged | yes — see the charges below |
| Retry safety | send 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.manage | per_request | before it runs | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
origin | path | string | yes | |
Idempotency-Key | header | string | no | 1..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, requiredorigin, string, requiredrecords, array of objectsname, string, required — a name inside the zone, answered lowercased and dottedtype, string, requiredclass, 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 nullzone_id, string or nullid, string, requireddiff, object or null — re-syncs: {added, removed, changed, against}unusable_reason, string or null — own-nameservers, no-records or capture-failederrors, array of objects, requiredquery, stringerror, string
usable, boolean, required — whether it can seed the zoneextra_names, array of stringsdomain, string, requiredaddresses, array of strings, required — their IPv4 and IPv6 addressesdiscovered, integeraxfr, boolean, requiredsource, string, required (one ofcustomer,resync,registration)taken_at, string, requiredrecord_count, integer, requirednameservers, array of strings, required — the domain's nameservers the copy was read fromds, array of objects — the DS records the domain's parent publisheskey_tag, integeralgorithm, integerdigest_type, integer
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (field Idempotency-Key: a malformed key, or one used for a different request) |
| 401 | unauthorized | unauthorized |
| 402 | insufficient-funds | insufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry) |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | conflict | conflict (the zone is not pending; reason not-seeded); conflict (the same operation is still in progress: retry shortly) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | charges-not-published, ledger-unavailable, unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
origin | path | string | yes | |
snapshot_id | query | string | no | a re-sync copy (default the newest against the seed) |
overwrite_edited | query | boolean | no | true to apply record sets edited by hand too |
Answer 200 (DnsResync): the result
origin, string, requireddomain, string, requiredsnapshot_id, string, requiredagainst, string, requireddiff, object, required — {added, removed, changed}: record setscounts, object, requiredapplied, array of objects, requiredskipped, array of objects, required — {name, type, change, rule: edited, customer-set or cname-conflict}
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (field overwrite_edited) |
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found (no zone, no re-sync) |
| 409 | conflict | conflict (not pending; reason not-seeded or stale-resync) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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).
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:write |
| Strong authentication | a 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 |
| Charged | yes — see the charges below |
| Retry safety | send 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.manage | per_request | before it runs | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
origin | path | string | yes | |
Idempotency-Key | header | string | no | 1..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, stringoverwrite_edited, boolean
Answer 200 (DnsResync): the result
origin, string, requireddomain, string, requiredsnapshot_id, string, requiredagainst, string, requireddiff, object, required — {added, removed, changed}: record setscounts, object, requiredapplied, array of objects, requiredskipped, array of objects, required — {name, type, change, rule: edited, customer-set or cname-conflict}
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-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) |
| 401 | unauthorized | unauthorized |
| 402 | insufficient-funds | insufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry) |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | conflict | conflict (not pending; reason not-seeded or stale-resync: re-sync again); conflict (the same operation is still in progress: retry shortly) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | charges-not-published, ledger-unavailable, unavailable | unavailable (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).
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:write |
| Strong authentication | a 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 |
| Charged | yes — see the charges below |
| Retry safety | send 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.manage | per_request | before it runs | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
origin | path | string | yes | |
Idempotency-Key | header | string | no | 1..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 copymode, string (one ofmerge,replace; default"merge")
Answer 200 (DnsSeedPlan): the result
origin, string, requiredrecords, 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 dottedtype, string, requiredclass, 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, requiredclamped, integer, required — TTLs of 0 raised to 1count, integer, requiredfrom_snapshot, integer, requiredmode, string, requireddomain, string, requiredsnapshot_id, string, requireddropped, array of objects, required — copied records that cannot be hosted, with whyrecord, objectname, string, required — a name inside the zone, answered lowercased and dottedtype, string, requiredclass, 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, stringmessage, string
skipped, array of objects, required — copied records the customer's own won over (customer-set, cname-conflict)record, objectname, string, required — a name inside the zone, answered lowercased and dottedtype, string, requiredclass, 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, stringmessage, string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-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) |
| 401 | unauthorized | unauthorized |
| 402 | insufficient-funds | insufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry) |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | conflict | conflict (the zone is not pending, or was activated meanwhile); conflict (the same operation is still in progress: retry shortly) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | charges-not-published, ledger-unavailable, unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:read |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
origin | path | string | yes |
Request body (DnsSeed):
snapshot_id, string — default: the newest usable copymode, string (one ofmerge,replace; default"merge")
Answer 200 (DnsSeedPlan): the result
origin, string, requiredrecords, 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 dottedtype, string, requiredclass, 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, requiredclamped, integer, required — TTLs of 0 raised to 1count, integer, requiredfrom_snapshot, integer, requiredmode, string, requireddomain, string, requiredsnapshot_id, string, requireddropped, array of objects, required — copied records that cannot be hosted, with whyrecord, objectname, string, required — a name inside the zone, answered lowercased and dottedtype, string, requiredclass, 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, stringmessage, string
skipped, array of objects, required — copied records the customer's own won over (customer-set, cname-conflict)record, objectname, string, required — a name inside the zone, answered lowercased and dottedtype, string, requiredclass, 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, stringmessage, string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (field mode or snapshot_id; reason snapshot-unusable) |
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found (no zone, no usable copy, another customer's copy) |
| 409 | conflict | conflict (the zone is not pending) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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).
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:write |
| Strong authentication | a 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 |
| Charged | yes — see the charges below |
| Retry safety | send 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.manage | per_request | before it runs | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
origin | path | string | yes | |
Idempotency-Key | header | string | no | 1..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, requiredorigin, string, requiredrecords, array of objectsname, string, required — a name inside the zone, answered lowercased and dottedtype, string, requiredclass, 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 nullzone_id, string or nullid, string, requireddiff, object or null — re-syncs: {added, removed, changed, against}unusable_reason, string or null — own-nameservers, no-records or capture-failederrors, array of objects, requiredquery, stringerror, string
usable, boolean, required — whether it can seed the zoneextra_names, array of stringsdomain, string, requiredaddresses, array of strings, required — their IPv4 and IPv6 addressesdiscovered, integeraxfr, boolean, requiredsource, string, required (one ofcustomer,resync,registration)taken_at, string, requiredrecord_count, integer, requirednameservers, array of strings, required — the domain's nameservers the copy was read fromds, array of objects — the DS records the domain's parent publisheskey_tag, integeralgorithm, integerdigest_type, integer
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (field names or discover); invalid-params (field Idempotency-Key: a malformed key, or one used for a different request) |
| 401 | unauthorized | unauthorized |
| 402 | insufficient-funds | insufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry) |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found (no zone of the caller for the domain) |
| 409 | conflict | conflict (the same operation is still in progress: retry shortly) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | charges-not-published, ledger-unavailable, unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
origin | path | string | yes |
Answer 200 (DnsSnapshotList): the result
snapshots, array of objects, requiredauthoritative, boolean, requiredorigin, string, requiredrecords, array of objectsname, string, required — a name inside the zone, answered lowercased and dottedtype, string, requiredclass, 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 nullzone_id, string or nullid, string, requireddiff, object or null — re-syncs: {added, removed, changed, against}unusable_reason, string or null — own-nameservers, no-records or capture-failederrors, array of objects, requiredquery, stringerror, string
usable, boolean, required — whether it can seed the zoneextra_names, array of stringsdomain, string, requiredaddresses, array of strings, required — their IPv4 and IPv6 addressesdiscovered, integeraxfr, boolean, requiredsource, string, required (one ofcustomer,resync,registration)taken_at, string, requiredrecord_count, integer, requirednameservers, array of strings, required — the domain's nameservers the copy was read fromds, array of objects — the DS records the domain's parent publisheskey_tag, integeralgorithm, integerdigest_type, integer
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | dns:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
dns.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
origin | path | string | yes | |
id | path | string | yes |
Answer 200 (DnsSnapshot): the result
authoritative, boolean, requiredorigin, string, requiredrecords, array of objectsname, string, required — a name inside the zone, answered lowercased and dottedtype, string, requiredclass, 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 nullzone_id, string or nullid, string, requireddiff, object or null — re-syncs: {added, removed, changed, against}unusable_reason, string or null — own-nameservers, no-records or capture-failederrors, array of objects, requiredquery, stringerror, string
usable, boolean, required — whether it can seed the zoneextra_names, array of stringsdomain, string, requiredaddresses, array of strings, required — their IPv4 and IPv6 addressesdiscovered, integeraxfr, boolean, requiredsource, string, required (one ofcustomer,resync,registration)taken_at, string, requiredrecord_count, integer, requirednameservers, array of strings, required — the domain's nameservers the copy was read fromds, array of objects — the DS records the domain's parent publisheskey_tag, integeralgorithm, integerdigest_type, integer
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.