- API Reference·续15
- Check domain transfer eligibility
- RegistrarRegistrations
- RegistrarRegistration Status
- RegistrarUpdate Status
- RegistrarExtensions
- RegistrarTransfer In
- RegistrarTransfer In Status
- Registrar Sandbox
- Prerequisites
- How the Sandbox API differs from the production Registrar API
- Terminology: domain extension
- Supported extensions
- Typical workflow
- Default behavior for mutating operations
- Non-blocking mode
- Polling
- Search for available domains
- Check domain availability
- Registrar SandboxRegistrations
- Registrar SandboxRegistration Status
- Registrar SandboxUpdate Status
- Registrar SandboxExtensions
- Rules Trace
- Rules TraceTraces
- Rules Lists
- Rules ListsLists
- Rules ListsListsBulk Operations
- Rules ListsListsItems
- Stream
- StreamAudio Tracks
- StreamVideos
- StreamClip
- StreamCopy
- StreamDirect Upload
- StreamKeys
- StreamLive Inputs
- StreamLive InputsOutputs
- StreamWatermarks
- StreamWebhooks
API Reference·续15
Check domain transfer eligibility
POST/accounts/{account_id}/registrar/domain-transfer-check
RegistrarRegistrations
Create Registration
POST/accounts/{account_id}/registrar/registrations
List Registrations
GET/accounts/{account_id}/registrar/registrations
Get Registration
GET/accounts/{account_id}/registrar/registrations/{domain_name}
Update Registration
PATCH/accounts/{account_id}/registrar/registrations/{domain_name}
RegistrarRegistration Status
Get Registration Status
GET/accounts/{account_id}/registrar/registrations/{domain_name}/registration-status
RegistrarUpdate Status
Get Update Status
GET/accounts/{account_id}/registrar/registrations/{domain_name}/update-status
RegistrarExtensions
List extensions
GET/accounts/{account_id}/registrar/extensions
Get extension
GET/accounts/{account_id}/registrar/extensions/{extension}
RegistrarTransfer In
Initiate Transfer
POST/accounts/{account_id}/registrar/registrations/{domain_name}/transfer-in
RegistrarTransfer In Status
Get Transfer Status
GET/accounts/{account_id}/registrar/registrations/{domain_name}/transfer-in-status
Registrar Sandbox
Use the Registrar Sandbox API to test domain search, availability checks, registration, and domain management flows without buying real domains.
This API is a test environment for the production Registrar API.
Prerequisites
Before using this API, make sure you have:
- Cloudflare account — the caller must have a valid Cloudflare account.
- API authentication — create an API token with Registrar Sandbox permissions.
How the Sandbox API differs from the production Registrar API
Because the Sandbox API is intended for testing, it behaves differently from the production Registrar API in a few important ways:
- No billing — you will not be charged real money for purchasing a domain.
- No real domains — purchased domains are test records and will not be reachable on the Internet.
- No DNS zones — purchasing a domain does not create a zone resource.
- No Registration Express Mode — you must provide full contact data.
Sandbox purchases are still persisted. If you purchase a domain in the sandbox, that domain will not be available for others to purchase in the sandbox.
Terminology: domain extension
Throughout this API, “extension” refers to the domain extension part of a fully qualified domain name — the portion after the registrable label. For example, in example.co.uk, the extension is co.uk (not just uk). This covers both top-level domains like com and multi-level extensions like co.uk. This is distinct from other uses of the word “extension” (e.g., EPP extensions).
Supported extensions
The Sandbox API currently supports programmatic registration for these extensions:
com, net
The production Registrar API supports 40+ extensions.
Cloudflare Registrar supports 400+ extensions in the dashboard. Extensions not listed above can be registered at https://dash.cloudflare.com/{account_id}/domains/registrations.
Typical workflow
- Search — call
GET /domain-search?q={keyword}to discover available domains. - Check — call
POST /domain-checkwith candidate domains to verify real-time availability and pricing. - Review the response — if
registrable: false, inspectreasonto understand whether the domain is unavailable, the extension is not supported by this API, the extension is not supported by Cloudflare Registrar at all, or the extension’s registry has frozen new registrations. - Handle premium domains — if
tier: premium, premium registration is not currently supported by this API. The Sandbox API currently supports onlycomandnet, which do not have premium registrations, but clients should still handle this response for consistency with the production Registrar API. Surface the premium pricing to the user, but do not proceed toPOST /registrationsfor that domain. - Observe the registration schema — call
GET /extensions/:extension_nameto discover the required values for registering this extension. - Register — call
POST /registrationswith the chosen domain name for supported non-premium registrations. - Confirm completion — if the response is
201 Created, registration completed within the default timeout and no polling is needed. - Poll when needed — if the response is
202 Accepted, polllinks.selffrom the workflow response. - Stop for user action — if
state: action_required, stop polling and surfacecontext.actionto the user. The workflow will not resolve on its own. - Continue when blocked — if
state: blocked, continue polling and inform the user that a third party, such as the extension registry or losing registrar, is delaying progress. - Review failures before retrying — if
state: failed, reviewerror.codeanderror.message, then decide whether user action or a new Check call is needed.
Default behavior for mutating operations
By default, mutating operations such as create and update hold the connection for a bounded, server-defined amount of time while the operation completes. In most cases, the response contains a completed workflow status and no polling is required.
- Completed within the synchronous wait window: Returns
201(create) or200(update) with aworkflow_statuswherestate: succeededandcompleted: true. - Still processing after the synchronous wait window: Returns
202 Acceptedwith aworkflow_statuswherecompleted: false. Use thelinks.selfURL to poll for completion.
Non-blocking mode
To receive an immediate 202 Accepted response without waiting, send the Prefer: respond-async request header (RFC 7240). The server will acknowledge it with a Preference-Applied: respond-async response header.
Polling
When the response is 202, poll the workflow status endpoint indicated by links.self in the response body until the workflow reaches a terminal state or requires user action.
Search for available domains
GET/accounts/{account_id}/registrar-sandbox/domain-search
Check domain availability
POST/accounts/{account_id}/registrar-sandbox/domain-check
Registrar SandboxRegistrations
Create Registration
POST/accounts/{account_id}/registrar-sandbox/registrations
List Registrations
GET/accounts/{account_id}/registrar-sandbox/registrations
Get Registration
GET/accounts/{account_id}/registrar-sandbox/registrations/{domain_name}
Update Registration
PATCH/accounts/{account_id}/registrar-sandbox/registrations/{domain_name}
Registrar SandboxRegistration Status
Get Registration Status
GET/accounts/{account_id}/registrar-sandbox/registrations/{domain_name}/registration-status
Registrar SandboxUpdate Status
Get Update Status
GET/accounts/{account_id}/registrar-sandbox/registrations/{domain_name}/update-status
Registrar SandboxExtensions
List extensions
GET/accounts/{account_id}/registrar-sandbox/extensions
Get extension
GET/accounts/{account_id}/registrar-sandbox/extensions/{extension}
Rules Trace
Rules TraceTraces
Request Trace
POST/accounts/{account_id}/request-tracer/trace
Rules Lists
Rules ListsLists
Get lists
GET/accounts/{account_id}/rules/lists
Get a list
GET/accounts/{account_id}/rules/lists/{list_id}
Create a list
POST/accounts/{account_id}/rules/lists
Update a list
PUT/accounts/{account_id}/rules/lists/{list_id}
Delete a list
DELETE/accounts/{account_id}/rules/lists/{list_id}
Rules ListsListsBulk Operations
Get bulk operation status
GET/accounts/{account_id}/rules/lists/bulk_operations/{operation_id}
Rules ListsListsItems
Get list items
GET/accounts/{account_id}/rules/lists/{list_id}/items
Get a list item
GET/accounts/{account_id}/rules/lists/{list_id}/items/{item_id}
Create list items
POST/accounts/{account_id}/rules/lists/{list_id}/items
Update all list items
PUT/accounts/{account_id}/rules/lists/{list_id}/items
Delete list items
DELETE/accounts/{account_id}/rules/lists/{list_id}/items
Stream
List videos
GET/accounts/{account_id}/stream
Retrieve video details
GET/accounts/{account_id}/stream/{identifier}
Initiate video uploads using TUS
POST/accounts/{account_id}/stream
Edit video details
POST/accounts/{account_id}/stream/{identifier}
Delete video
DELETE/accounts/{account_id}/stream/{identifier}
StreamAudio Tracks
List additional audio tracks on a video
GET/accounts/{account_id}/stream/{identifier}/audio
Edit additional audio tracks on a video
PATCH/accounts/{account_id}/stream/{identifier}/audio/{audio_identifier}
Delete additional audio tracks on a video
DELETE/accounts/{account_id}/stream/{identifier}/audio/{audio_identifier}
Add audio tracks to a video
POST/accounts/{account_id}/stream/{identifier}/audio/copy
StreamVideos
Storage use
GET/accounts/{account_id}/stream/storage-usage
StreamClip
Clip videos given a start and end time
POST/accounts/{account_id}/stream/clip
StreamCopy
Upload videos from a URL
POST/accounts/{account_id}/stream/copy
StreamDirect Upload
Upload videos via direct upload URLs
POST/accounts/{account_id}/stream/direct_upload
StreamKeys
List signing keys
GET/accounts/{account_id}/stream/keys
Create signing keys
POST/accounts/{account_id}/stream/keys
Delete signing keys
DELETE/accounts/{account_id}/stream/keys/{identifier}
StreamLive Inputs
List live inputs
GET/accounts/{account_id}/stream/live_inputs
Retrieve a live input
GET/accounts/{account_id}/stream/live_inputs/{live_input_identifier}
Create a live input
POST/accounts/{account_id}/stream/live_inputs
Update a live input
PUT/accounts/{account_id}/stream/live_inputs/{live_input_identifier}
Delete a live input
DELETE/accounts/{account_id}/stream/live_inputs/{live_input_identifier}
StreamLive InputsOutputs
List all outputs associated with a specified live input
GET/accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs
Create a new output, connected to a live input
POST/accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs
Update an output
PUT/accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs/{output_identifier}
Delete an output
DELETE/accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs/{output_identifier}
StreamWatermarks
List watermark profiles
GET/accounts/{account_id}/stream/watermarks
Watermark profile details
GET/accounts/{account_id}/stream/watermarks/{identifier}
Create watermark profiles via basic upload
POST/accounts/{account_id}/stream/watermarks
Delete watermark profiles
DELETE/accounts/{account_id}/stream/watermarks/{identifier}
StreamWebhooks
View webhook
GET/accounts/{account_id}/stream/webhook
