API reference
List DNS zones
The zones an account's Cloudflare connection can reach, read with the connection's own token: each zone's id, name, Cloudflare status, and whether a verified domain of the account covers it (verified, domain). A plan can be made only for a covered zone.
Needs scope dns:read.
bearerAuthorizationBearer <JWT>An access token from the identity provider: a person's, or a customer's from the client credentials grant with an API key (developers.inorbit.hr). The gateway verifies it; the audience is iohr-api.
org_id*stringThe account's id: org in GET /v1/me.
connection_id*stringThe connection's id, con_ and a ULID, from List connections.
name?stringOnly the zone with this exact name: example.com; empty for every zone.
page_size?integerAt most this many; 0 means 50, above 50 means 50.
int32page_token?stringFrom the previous page's next_page_token.
iohr.dns.v1.ListZonesResponse
application/json- response
iohr.dns.v1.ListZonesResponse
next_page_token*stringzones*array<>import { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try { for await (const zone of api.dns.allListZones("<org_id>", "<connection_id>")) { console.log(zone); }} catch (e) { if (!(e instanceof ApiError)) throw e; console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`); process.exitCode = 1;}npm install @inorbithr/sdk. Calls the package's public surface; an operation newer than your package needs the next release or a client generated for your account. The SDKs.
{ "next_page_token": "string", "zones": [ { "account_name": "string", "domain": "string", "id": "string", "name": "string", "status": "string", "verified": true } ]}