List custom domains
The site's custom domains, with verification and HTTPS state and the DNS records each one needs.
https://studiobuddy.radioworkflow.com/api/v1/domainssite:readRead-only: calling it changes nothing on the site. Also available to AI assistants as the list-domains tool on the MCP server.
Every custom domain connected to the site, oldest first, with what its DNS has to contain. Use it to follow a domain while it is being connected. Nothing verifies a domain on its own: verified turns true when a member of the site clicks Verify & connect on the site's Domains tab and the console finds the verification record, so a domain whose records are already published stays verified: false until someone clicks it. After that, https moves from none through provisioning to active once the certificate is issued.
records lists the DNS records a domain needs, as the site's Domains tab shows them: the routing record (an A record for a root domain such as example.com, a CNAME for a subdomain such as news.example.com), then the verification TXT record, then, for a CNAME only, the routing-fallback A record the tab offers for a DNS provider that will not take a CNAME there. Publish the routing record or its fallback, not both. They are returned for verified domains too, so a monitor can confirm nothing has been removed.
The routing record is worked out from the hostname alone, and a name with exactly two labels counts as a root domain. A root domain under a two-part suffix, such as example.co.uk, is therefore listed as if it were a subdomain: for one of those, use the routing-fallback A record with @ as its host.
This endpoint only reads. Connecting a domain, verifying it, checking its DNS again and choosing the primary domain stay in the console.
Authentication
| Header | Required | Value |
|---|---|---|
| Authorization | Required | Bearer wb_live_your_key_here The site API key as a bearer token: Bearer wb_live_…. It is the only credential. There are no cookies, no session and no CSRF token in this API. |
The key must also carry the site:read scope. Scopes are ticked when a key is created (under Developers, API keys or on the site's API tab) and cannot be added afterwards. A key without this one answers insufficient_scope to this endpoint however many times it is retried, so the fix is a new key. What each scope unlocks.
Parameters
This endpoint takes no query parameters and no request body.
Request
curl 'https://studiobuddy.radioworkflow.com/api/v1/domains' \ -H "Authorization: Bearer wb_live_your_key_here"
Try it
This form calls /api/v1/domains from your browser, straight to the API, on this same origin. The key you paste below is put into an Authorization header on that one request. It is not sent to the documentation, not written to storage on this device, and not kept once you close the tab.
It is a real request against a real key: it counts against the same limit as any other call (120 per minute per key), and it appears in your site's API log like anything else you send.
A live key for the site, carrying the site:read scope.
GET /api/v1/domains Authorization: Bearer wb_live_your_key_here
The placeholder above is what the docs print. Your key is never shown back to you here, in the preview or in the response.
Response
application/jsonA JSON array. The fields below describe one element.| Field | Type | Description |
|---|---|---|
| hostname | string | The hostname, without a scheme. |
| verified | boolean | Whether the domain is verified, which is what routes it to the site. It becomes true only when a member clicks Verify & connect on the Domains tab and the console finds the verification record; nothing checks on its own. |
| is_primary | boolean | Whether this is the canonical domain. At most one domain is primary. |
| https | enum | Managed-certificate state. active is serving; provisioning is issuing; failed needs attention in the console; none means no certificate exists yet, which is always the answer for an unverified domain; unconfigured means certificate automation is off in this environment (local development).activeprovisioningfailednoneunconfiguredValues come from CertStatus in src/lib/certs.ts (server-only, restated here). |
| added_at | string | When the domain was added, as an ISO 8601 timestamp in UTC. |
| verified_at | stringor null | When the domain was verified, as an ISO 8601 timestamp in UTC, or null while it is still pending. |
| records | object[] | The DNS records for this domain at its DNS provider, always in this order: routing, verification, then routing-fallback for a CNAME only. |
| records.purpose | enum | routing points the domain at the site; verification proves you control the domain; routing-fallback is the A record to use instead of a CNAME routing record when the DNS provider will not take a CNAME for that name.routingverificationrouting-fallback |
| records.type | enum | The record type: A for a root domain's routing record and for every routing-fallback, CNAME for a subdomain's routing record, TXT for verification.ACNAMETXT |
| records.host | string | What to enter in the provider's name field: @ for a root domain's A record, the left-most label for a CNAME and for its routing-fallback, and the full _webbuddy. name for the TXT record. |
| records.value | string | What the record must contain: the address or hostname to point at, or the verification text. |
Ordered by when each domain was added, oldest first. Empty until a domain is connected. HTTPS status is read live for each verified domain.
[
{
"hostname": "news.example.com",
"verified": true,
"is_primary": true,
"https": "active",
"added_at": "2026-07-02T14:11:09.000Z",
"verified_at": "2026-07-02T14:26:40.000Z",
"records": [
{
"purpose": "routing",
"type": "CNAME",
"host": "news",
"value": "riverside.webbuddy.radioworkflow.com"
},
{
"purpose": "verification",
"type": "TXT",
"host": "_webbuddy.news.example.com",
"value": "wb-verify-3f9c2a7e1b4d8c6f0a5e2d9b7c4a1f38"
},
{
"purpose": "routing-fallback",
"type": "A",
"host": "news",
"value": "8.232.189.60"
}
]
}
]Every response also carries the headers listed under what every response carries.
Errors
| HTTP | code | Retry? | What to do |
|---|---|---|---|
| 401 | unauthorized | Do not | Check the header is exactly Authorization: Bearer wb_live_…. If it is, the key was probably revoked: mint a new one under Developers, API keys in the console. Do not retry, because nothing about this request will succeed on a second attempt. |
| 403 | insufficient_scope | Do not | Mint a new key with the required scope ticked (Developers, API keys in the console, or the site's API tab), then revoke the old one. Do not retry: the same key answers 403 forever. The message names the scope that was missing. |
| 429 | rate_limited | Retry | Back off and retry. The window is at most 60 seconds long, so an exponential backoff starting around a second will clear it. If you hit this steadily, cache the responses you poll rather than raising your request rate. If the message mentions failed authentications, fix the key first: retrying the same bad token is what filled that bucket. |
| 500 | internal_error | Retry | Retry once after a short delay. If it persists for a given endpoint, it is a bug on our side rather than something your request can fix; report it with the endpoint and the time. |
What each code means, and the envelope they arrive in, are on the errors page.