List own domains, including archived
/api/v1/domainsOperates on your account only. Send your API key in the Authorization header. Responses use JSON.
Request
Set BASE_URL to this website’s HTTPS origin and API_KEY to your private key. Replace RESOURCE_ID with the ID returned by the API.
curl --request GET "${BASE_URL}/api/v1/domains" \
--header "Authorization: Bearer $API_KEY"Headers & parameters
AuthorizationrequiredBearer YOUR_API_KEY
limitquery · integerPage size, not a request quota.
1–100
offsetquery · integerNumber of items to skip.
0–100000
Response
request_idstringrequiredIdentifier used to recover an outcome after a network failure.
itemsarrayrequireditems[].idintegerrequireditems[].namestringrequired@ for the apex, * for wildcard, or a record name.
items[].categorystringPricing category: basic or protected.
items[].expires_atstring | nullitems[].autorenewbooleanitems[].archivedbooleanitems[].nameserversarrayNameserver hostnames, not IP addresses.
items[].dns_backendstringitems[].delegationstringitems[].renewal_periodsarrayitems[].cloudflareobjectrequireditems[].cloudflare.connectedbooleanitems[].cloudflare.statusstringCurrent state. An accepted job does not mean completion.
items[].cloudflare.ssl_statusstringCloudflare visitor-facing certificate state.
items[].cloudflare.origin_tls_statusstringSeparate HTTPS state between Cloudflare and the origin server.
items[].cloudflare.nameserversarrayNameserver hostnames, not IP addresses.
items[].cloudflare.checked_atstring | nullitems[].cloudflare.settingsobjectitems[].cloudflare.geo_countriesarrayitems[].cloudflare.available_settingsobjecttotalintegerrequirednext_offsetinteger | nullrequiredNext page offset; null means the end of the list.
Response structure example · illustrative values
{
"request_id": "00000000-0000-4000-8000-000000000001",
"items": [
{
"id": 1,
"name": "example.com",
"category": "string",
"expires_at": "2026-10-02T12:00:00Z",
"autorenew": false,
"archived": false,
"nameservers": [
"string"
],
"dns_backend": "string",
"delegation": "string",
"renewal_periods": [
1
],
"cloudflare": {
"connected": false,
"status": "string",
"ssl_status": "string",
"origin_tls_status": "string",
"nameservers": [
"string"
],
"checked_at": "2026-10-02T12:00:00Z",
"settings": {},
"geo_countries": [
"string"
],
"available_settings": {}
}
}
],
"total": 1,
"next_offset": 1
}Errors & statuses
error.code · error.message · request_id
401Invalid or revoked key.
404Resource not found in your account.
409Idempotency conflict or request in progress.
422Invalid parameters or business rule, including balance.
500Outcome may be uncertain. Poll the request.
503Temporarily unavailable. Respect Retry-After.