Xuda Domains API Reference
Xuda Domains API Reference
This reference covers the full method surface of Xuda Domains: the 52 methods behind domain search and purchase, the Cloudflare DNS editor, SSL/TLS and edge settings, traffic and DNS analytics, transfer in and transfer out, Xuda-to-Xuda handover, connecting an externally registered domain, and attaching a domain to a project or VPS. It is written for developers who want to know exactly what each screen calls, what each method accepts, and which parts of the surface an account API key can reach today. Every method key, parameter name, type and required flag below is taken from the shipped method contract.
How To Call These Methods
Every method here is a CPI method. CPI methods are dispatched by name over the Xuda API and MCP layer, and the normal credential for that layer is the account API key. For the transport-level detail, including how requests are framed and how the MCP layer exposes methods, see /api-mcp-integration.
Read the availability line on a method before you build against it. Domains is a heavily dashboard-weighted product, and you should know the shape of that before you write any code:
- Two methods are reachable with an API key,
agent_domain_listandagent_domain_connect. Both are also exposed as MCP tools, and they are what the in-app AI agent uses to list your domains and point one at the project it is working on. They are the only programmatic surface an external caller has today. - Forty six methods require a signed-in dashboard session. They are flagged private, and in this codebase a private method is not reachable with a developer API key. That includes every DNS method, so scripted DNS editing over an API key is not available today regardless of what any marketing page implies.
- Four methods are operator only. They are private and additionally reject any caller who is not a Xuda superuser. They are listed here for completeness so the surface is fully described.
Every domain method carries clearance: "user". None of them declares a min_plan, so nothing in this product is plan gated at the API layer.
What The Availability Labels Mean
Every method below carries exactly one availability line. Read it first, because it tells you whether you can call the method from your own code today.
- Availability: API key means an external developer API key or the MCP layer can call it. Two Domains methods carry this label.
- Availability: Dashboard session means a signed-in user in the Xuda dashboard can call it, and an API key cannot. The account identity comes from the session, never from a parameter.
- Availability: Public endpoint means no authentication at all. No Domains method carries this label.
- Availability: Operator only means Xuda staff, listed for completeness. Four Domains methods carry this label.
Method Index
Methods are grouped below by the job they do: agent tools first, then registrar contact, search and purchase, domain inventory and settings, zone settings, analytics, DNS, transfer in, transfer out, Xuda-to-Xuda handover, project attachment, external domains, and finally the operator queue.
| Method | What It Does |
|---|---|
| agent_domain_list | Lists the calling account's domains as compact rows for the AI agent. |
| agent_domain_connect | Points one of the account's domains at the project bound to the agent session. |
| get_registrar_account_state | Reads the Cloudflare registrar setup checklist for this Xuda instance. |
| get_registrar_contact | Reads the registrant contact saved on the account, or a profile based pre-fill. |
| save_registrar_contact | Normalizes, validates and stores the registrant contact for future purchases. |
| domain_search | Searches live registry availability and prices with Cloudflare suggestions. |
| domain_quote | Prices a term and returns the signed ack token that purchase requires. |
| domain_purchase | Charges Stripe, registers with Cloudflare asynchronously, returns a job id. |
| domain_purchase_status | Polls a purchase job and returns the finished domain on success. |
| list_domains | Lists the user's domains, sweeping stuck purchases and refreshing stale ones. |
| get_domain | Returns full detail for one domain, including transfer eligibility and drafts. |
| update_domain | Changes auto-renew, registrar lock and WHOIS privacy, mirroring Stripe. |
| update_domain_nameservers | Queues a nameserver change for manual operations. |
| update_domain_contacts | Queues a registrant, admin or tech contact change. |
| renew_domain | Queues a one-off renewal request. |
| get_domain_registrar_status | Reads where a domain is really registered and what blocks a transfer. |
| get_domain_quick_actions | Reads the eight toggleable zone settings shown in the Overview sidebar. |
| update_domain_quick_action | Sets one Quick Action zone setting from the server side allowlist. |
| get_domain_ssl_settings | Reads the nine SSL/TLS zone settings in one parallel round trip. |
| update_domain_ssl_settings | Patches SSL/TLS settings one key at a time against the allowlist. |
| get_domain_analytics | Cloudflare edge traffic analytics: timeseries, totals and thirteen breakdowns. |
| get_domain_dns_analytics | DNS query counts, response time and per data center breakdown. |
| list_dns_records | Lists up to 500 DNS records from the domain's Cloudflare zone. |
| create_dns_record | Creates a DNS record on the zone, passed through to Cloudflare unmodified. |
| update_dns_record | Patches an existing DNS record on the zone. |
| delete_dns_record | Deletes a DNS record from the zone. |
| import_dns_records | Uploads a BIND zone file and reports imported and skipped counts. |
| export_dns_records | Exports the zone as BIND zone file text. |
| transfer_in_initiate | The older single step transfer-in intent recorder, superseded by the paid flow. |
| transfer_in_create_zone | Step 1 of the paid transfer-in: free zone, DNS import, nameservers and a quote. |
| transfer_in_purchase | Step 2 of the paid transfer-in: charges Stripe and queues the transfer. |
| cancel_transfer_in | Cancels an unpaid transfer-in draft and tears down its zone. |
| get_transfer_in_progress | Returns paid transfers and drafts with a computed customer facing stage. |
| transfer_in_status | Returns the current stage of one in-flight transfer-in. |
| list_my_transfer_ins | Lists every in-flight and recently finished transfer-in for the caller. |
| transfer_out_initiate | Records intent to move a domain to another registrar, enforcing the 60-day hold. |
| find_xuda_recipient | Privacy respecting exact-match lookup of a transfer recipient. |
| initiate_xuda_transfer | Starts a handover to another Xuda account or an invited email. |
| list_xuda_transfers | Lists incoming or outgoing Xuda-to-Xuda transfer requests. |
| accept_xuda_transfer | Accepts a handover, flipping ownership and scheduling the billing switch. |
| decline_xuda_transfer | Declines an incoming handover with an optional note. |
| cancel_xuda_transfer | Lets the sender pull back a pending handover. |
| attach_domain_to_project | Writes the right Cloudflare record and attaches the domain to a project. |
| detach_domain_from_project | Removes the auto-created records and reverts the project to its free subdomain. |
| connect_external_domain | Creates a zone for a domain registered elsewhere and returns nameservers. |
| check_external_domain | Polls zone activation for a connected domain and wires apex and www. |
| disconnect_external_domain | Full teardown of a connected domain, zone and document included. |
| detach_external_domain_from_site | Unwires a connected domain from its site but keeps the zone. |
| list_all_domains | Operator view of every domain on the platform, enriched with owner detail. |
| list_transfer_in_queue | Operator view of the transfer-in work queue. |
| update_transfer_in_queue_item | Moves a queue item between states and notifies the customer live. |
| mark_transfer_epp_submitted | Stamps that the EPP code has been submitted at Cloudflare. |
agent_domain_list
Domains: list
Lists the calling account's registered domains as a compact set of { domain, status, connection_type, attached_app_id } rows plus a count. Identity comes from the scoped API key that the AI module mints per agent session, never from the model's own arguments, and the account is resolved from the key document before the query runs. The method contract instructs the agent to call this before ever asking a user to type a domain name.
Availability: API key
Parameters
This method takes no parameters.
Notes
- Clearance
user. Not private, so it is reachable with an API key that grants it, and it is exposed as an MCP tool. - No
min_plan. Nothing about this method is plan gated. - The rows are deliberately compact. Use
list_domainsfrom a dashboard session when you need expiry, nameservers, billing handles or the full per-hostname attachment array.
agent_domain_connect
Domains: connect to this VPS
Points one of the account's own domains at the project bound to the current agent session, by delegating to attach_domain_to_project, which re-checks ownership of both the domain and the app. Omitting the subdomain uses the apex. The subdomain is lowercased and stripped to [a-z0-9-]. Attaching replaces any existing A, AAAA or CNAME on that exact hostname.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | A domain the account owns, exactly as returned by agent_domain_list, for example example.com. |
subdomain |
string | No | Optional subdomain label to point instead of the apex, for example app for app.example.com. |
Notes
- Clearance
user. Not private, so it is reachable with an API key that grants it, and it is exposed as an MCP tool. - No
min_plan. - Buying a domain is deliberately not exposed to the agent. Purchase stays behind an explicit in-platform confirmation.
- Because it delegates to
attach_domain_to_project, it inherits that method's behavior in full: record type chosen from the app type, an origin TLS probe for proxied A records, and Always Use HTTPS turned on afterwards.
get_registrar_account_state
Get Registrar Account State
Returns the Cloudflare registrar account setup checklist for this Xuda instance (email verified, default contact set, payment method set, DRA accepted) plus deep-link URLs into the Cloudflare dashboard for each item. When no Cloudflare account id is configured it returns all false with configured: false and the message "Cloudflare registrar account is not configured on this Xuda instance."
Availability: Dashboard session
Parameters
This method takes no parameters.
Notes
- Clearance
user,private: true. Nomin_plan. - This describes the Xuda instance's own registrar account, not the caller's domains.
get_registrar_contact
Get Registrar Contact
Returns the registrant contact saved on the user's account document. If none is saved yet, it returns a partial pre-fill built from the account's profile fields (first name, last name, email, phone, company, address, city, state, zip, country) so the checkout form is never blank.
Availability: Dashboard session
Parameters
This method takes no parameters.
Notes
- Clearance
user,private: true. Nomin_plan. - A pre-fill is not a saved contact. Until
save_registrar_contacthas run, or a purchase has written one back, the account has no registrant on file.
save_registrar_contact
Save Registrar Contact
Normalizes and validates a registrant contact, then persists it on the account document as registrar_contact with a registrar_contact_updated_at timestamp so future purchases pre-fill.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
registrant |
object | Yes | Registrant contact object to persist on the account for pre-filling future domain purchases. Shape: { first_name, last_name, email, phone, organization?, address: { line_1, line_2?, city, state, postal_code, country } }. |
Notes
- Clearance
user,private: true. Nomin_plan. - Validation rejects names under 2 characters, malformed emails, phone numbers with fewer than 7 or more than 15 digits, a missing address line 1, city or postal code, a country that is not a 2-letter ISO code, and any non-ASCII character anywhere in the object.
- Normalization to ICANN and EPP rules happens before validation: accented characters are folded to plain ASCII, the phone number is converted to the literal
+CC.NUMBEREPP format, and the country is forced to a 2-letter ISO code.
domain_search
Domain Search
Searches available domain names with Cloudflare registrar suggestions and prices. Each result carries name, available, tld, premium, premium_fee_usd, max_registration_years, requires_us_nexus (true for .us), requires_uk_special_case (true for .uk), currency, wholesale_usd_yr, display_usd_yr, markup_usd_yr, renewal_wholesale_usd_yr and renewal_display_usd_yr.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query |
string | Yes | The search term or domain name to look up availability and suggestions for. |
Notes
- Clearance
user,private: true. Nomin_plan. - Unicode and internationalized domain names are not supported. Anything outside
[a-z0-9.-]is refused with "IDN/Unicode domains are not supported." - Display prices are Cloudflare's wholesale price plus the platform markup: 20 percent on the initial registration and 60 percent on renewal, both with a 0 USD floor. The renewal figure is returned alongside the registration figure so a caller can show both.
- Premium names carry a separate premium fee, reported as
premium_fee_usd.
domain_quote
Domain Quote
Re-checks availability at Cloudflare, computes the marked-up total for the requested term, and returns a signed ack_token that domain_purchase requires. Returns wholesale_per_year, wholesale_total, markup, display_total, display_per_year_usd, renewal_display_usd_yr, privacy_per_year_usd, premium, tier, premium_fee_usd and max_registration_years.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | The fully-qualified domain name to price. |
years |
number | Yes | Number of registration years to quote (1 to 10). Values outside that range are rejected. |
privacy |
boolean | No | Whether WHOIS privacy is requested. Defaults to true. Baked into the ack token. (accepted by the backend, not declared in the method catalog) |
auto_renew |
boolean | No | Whether the domain should auto-renew. Defaults to true. Baked into the ack token. (accepted by the backend, not declared in the method catalog) |
Notes
- Clearance
user,private: true. Nomin_plan. - The token is HMAC signed and embeds uid, name, years, privacy, auto-renew, wholesale total, markup, display total, premium flag and premium fee, so the amount charged at purchase is the amount the caller was quoted.
- The token expires 5 minutes after issue. Re-quote rather than caching one.
- Terms run 1 to 10 years, hard validated, and are further capped by that TLD's Cloudflare
maximum_registration_years, which the response returns. privacy_per_year_usdis returned but nothing charges for it. WHOIS privacy, SSL, DDoS protection and DNS management are bundled at no extra charge, and the Stripe subscription is built from a single line item of registration plus the amortized premium fee. Treat this field as informational only.
domain_purchase
Domain Purchase
Charges Stripe, then registers the domain with Cloudflare asynchronously, and returns a job_id for polling. The registrant contact is required: it is taken from the request if supplied, otherwise from the account's saved contact, and validated before anything is charged. On success it persists a domain_purchase job document and writes the contact back to the account.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | The fully-qualified domain name to register. |
years |
number | Yes | Number of registration years to purchase. |
ack_token |
string | Yes | Signed price-acknowledgement token returned by domain_quote. |
payment_method_id |
string | Yes | Stripe payment method ID to charge for the registration. |
registrant |
object | No | Registrant contact to use for this registration. Falls back to the account's saved contact when omitted; the call fails if neither exists. (accepted by the backend, not declared in the method catalog) |
Notes
- Clearance
user,private: true. Nomin_plan. - The ack token must be valid, unexpired and belong to the calling user.
- Every registered domain gets its own annual Stripe subscription, created against a per-domain Stripe product named
Domain registration - <domain>. - A declined card cannot create a half-made domain. The subscription is created with
payment_behavior: 'error_if_incomplete', and the subscription and payment intent status are re-checked afterwards, with the subscription deleted if either is not clean. - If Cloudflare rejects the registration after payment, the Stripe subscription is cancelled and the first invoice refunded automatically, and the refund id is surfaced in the error the caller reads.
- A Xuda Verify gate is consulted before charging, but the policy is in shadow mode today: it records what it would do and always allows.
- This call returns as soon as the job is written. Registration itself completes asynchronously, so follow it with
domain_purchase_status.
domain_purchase_status
Domain Purchase Status
Polls the registration status of a previously initiated purchase. While the job is pending it asks Cloudflare's registration-status workflow endpoint, accepts any of completed, active, success, succeeded, registered, finished or done (or a completed: true flag) as success, and falls back to reading the registrar domain and registration endpoints directly when the workflow answer is unhelpful. On success it writes the domain_registration document and returns the full client-shaped domain so the caller needs no second round trip.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
job_id |
string | Yes | ID of the purchase job document to poll for registration status. |
Notes
- Clearance
user,private: true. Nomin_plan. Owner or superuser only. - Job status moves through
pending,in_progress,registered,failedoraction_required. - Failures are flattened from Cloudflare's nested error chain into a single readable string, with the refund id appended when the automatic rollback succeeded.
- A purchase is never lost because the caller stopped polling. Three separate mechanisms finalize a stuck job: this poller, a sweep that runs whenever
list_domainsis called, and a cron that runs every minute.
list_domains
List Domains
Lists the user's domains with status, expiry, auto-renew, privacy mode, lock state, nameservers, attached project, the full per-hostname attachments array, connection type (registered or connected), zone id and Stripe handles.
Availability: Dashboard session
Parameters
This method takes no parameters. The result is scoped to the calling user.
Notes
- Clearance
user,private: true. Nomin_plan. - Before listing, it sweeps any purchase jobs still stuck in
pendingorin_progressand finalizes them, so opening the list is itself a repair pass. - It then refreshes registrar-authoritative fields from Cloudflare for any owned domain not synced in the last 6 hours. Fresher domains are served from the stored document.
- Capped at 9999 documents.
get_domain
Get Domain
Returns the full registration detail for a single domain, merged live from Cloudflare and augmented with transfer_eligibility, which is { eligible, days_remaining } against the 60-day hold.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain name to fetch registration details for. |
Notes
- Clearance
user,private: true. Nomin_plan. Owner or superuser only. - When no registration document exists yet it falls back to the caller's transfer-in state. An unpaid draft returns
status: 'draft'with a_pending_draftblock (draft id, whether an auth code is present, nameservers, imported records, zone status, price, expiry). A paid in-flight transfer returnsstatus: 'transferring_in'with a_pending_transfer_inblock (queue id, stage, stage label and description, nameservers, zone status, EPP submission timestamp, note). - It self-heals missing Stripe handles by reading them back off the original transfer queue document.
update_domain
Update Domain
Updates auto_renew, locked and privacy or privacy_mode on a registered domain via the Cloudflare Registrar API. Anything else in the patch is dropped.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain name to update. |
patch |
object | Yes | Partial settings to apply. Recognized keys: auto_renew (boolean), locked (boolean), privacy (boolean) and privacy_mode (redaction or off). |
Notes
- Clearance
user,private: true. Nomin_plan. Owner or superuser only. - A boolean
privacyis translated to aprivacy_modeofredactionoroff. - When
auto_renewchanges and the domain has a Stripe subscription, the subscription'scancel_at_period_endis mirrored, so the registrar and billing never drift apart. lockedis the registrar transfer lock. Leaving it on is what stops an unauthorized transfer away.
update_domain_nameservers
Update Domain Nameservers
Queues a nameserver change for manual operations and returns a Cloudflare dashboard deep link.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain name whose nameservers should change. |
nameservers |
array | Yes | List of nameserver hostnames to set on the domain. |
Notes
- Clearance
user,private: true. Nomin_plan. Owner or superuser only. - There is a live Cloudflare code path behind the
domains.feature_flags.nameservers_apiflag, but that flag is false, so today every call writes a manual-queue document withkind: 'nameservers'and returns{ status: 'queued', dashboard_url }. Do not treat a success here as the change having been applied. - Custom apex nameservers are not a shipped capability. The dashboard's Nameservers tab exposes a button for it that has no backing method at any plan.
update_domain_contacts
Update Domain Contacts
Queues a registrant, admin or tech contact change and returns a dashboard deep link.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain name whose contacts should change. |
registrant |
object | No | New registrant contact. (accepted by the backend, not declared in the method catalog) |
admin |
object | No | New administrative contact. (accepted by the backend, not declared in the method catalog) |
tech |
object | No | New technical contact. (accepted by the backend, not declared in the method catalog) |
Notes
- Clearance
user,private: true. Nomin_plan. Owner or superuser only. - Same pattern as nameservers. The direct Cloudflare path sits behind
domains.feature_flags.contacts_api, which is false, so calls land in the manual queue withkind: 'contacts'. The Contacts screen tells the user "Contact changes are queued and applied within a few hours." - A contact update restarts the ICANN 60-day transfer hold once it is applied at the registry.
renew_domain
Renew Domain
Queues a one-off renewal request and returns a dashboard deep link.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain name to renew. |
years |
number | Yes | Number of years to renew the domain for. |
Notes
- Clearance
user,private: true. Nomin_plan. Owner or superuser only. - On-demand renewal is not built. The
domains.feature_flags.renewals_apiflag is false, and when it is true the code returns "renewal via API not yet implemented", so neither branch renews a domain. - Renewal in practice happens through the annual Stripe subscription plus the manual queue, not through this method.
get_domain_registrar_status
Get Domain Registrar Status
Reads where a domain is actually registered and whether its registration could be moved to Xuda. Returns registrar, registered_with_us, locked (derived from the EPP clientTransferProhibited status), pending_transfer, expires_at, supported_tld, the parsed registry_statuses array, a computed transferable boolean and a human-readable blockers array.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain name to look up. Declared via the method's top-level mandatory: ["domain"] rather than a fields object. |
Notes
- Clearance
user,private: true. Nomin_plan. - It works for domains held anywhere, not only Xuda's, which is why it is the method behind the "check before you transfer" surfaces.
- If a domain record does exist locally, only its owner or a superuser may read it.
get_domain_quick_actions
Get Domain Quick Actions
Fetches the eight toggleable zone settings shown in the Overview sidebar, in parallel, returning { zone_id, settings } where each entry carries value, modified_on and editable.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain whose zone settings to read. Declared via mandatory: ["domain"]. |
Notes
- Clearance
user,private: true. Nomin_plan. Owner or superuser read gate. - Cached 60 seconds per zone. A cached response is flagged with
cached: true. - The eight keys are
security_level,development_mode,always_online,browser_check,hotlink_protection,email_obfuscation,server_side_excludeandip_geolocation.
update_domain_quick_action
Update Domain Quick Action
Sets a single zone setting from the Quick Actions allowlist and invalidates the read cache for that zone.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain whose zone setting to change. Declared via mandatory. |
key |
string | Yes | One of the eight Quick Action keys. Declared via mandatory. |
value |
string | Yes | New value for that setting. security_level takes off, essentially_off, low, medium, high or under_attack; the rest take on or off. Declared via mandatory. |
Notes
- Clearance
user,private: true. Nomin_plan. Owner or superuser write gate. - Any key outside the allowlist is refused by name rather than silently ignored.
- One key per call. To change several, call it several times.
- The write invalidates the 60 second read cache for that zone, so a following
get_domain_quick_actionsreflects the change immediately.
get_domain_ssl_settings
Get Domain SSL Settings
Returns the domain's full SSL/TLS settings from Cloudflare in one parallel round trip: ssl, always_use_https, min_tls_version, tls_1_3, automatic_https_rewrites, opportunistic_encryption, http3, security_header (the HSTS object) and ciphers. Each is { key, value, modified_on, editable }, or { key, error } if that one read failed.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | Domain name whose Cloudflare SSL/TLS settings should be returned. |
Notes
- Clearance
user,private: true. Nomin_plan. Owner or superuser read gate. - A single failed read does not fail the call. That key comes back with an
errorand the rest are still usable.
update_domain_ssl_settings
Update Domain SSL Settings
Patches one or more SSL/TLS settings. Returns { results: { key: { value, modified_on } | { error } } }.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | Domain name whose Cloudflare zone SSL/TLS settings should be updated. |
patch |
object | Yes | Object of SSL/TLS setting keys to new values, filtered against the server-side allowlist. ssl accepts off, flexible, full or strict; min_tls_version accepts 1.0, 1.1, 1.2 or 1.3; tls_1_3 accepts on, off or zrt; the remaining boolean-style keys accept on or off. |
Notes
- Clearance
user,private: true. Nomin_plan. Owner or superuser only. - The patch is filtered against the same nine-key allowlist as the read, and unknown keys are silently dropped. Check the
resultsobject rather than assuming everything you sent was applied. - Each recognized key is patched individually, so a failure names exactly which setting failed and the others still land.
- Attaching a domain to a project also writes
sslandalways_use_https. If you manage SSL mode yourself, expect an attach to move it.
get_domain_analytics
Get Domain Analytics
Cloudflare zone analytics via GraphQL: a bucket-aligned traffic timeseries plus totals plus breakdowns by country, HTTP status, cache status, content type, path, referer, device, browser, OS, HTTP protocol, TLS protocol and request method.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain whose zone analytics to return. Declared via mandatory: ["domain"]. |
range |
string | No | 24h, 3d, 7d or 30d. Defaults to 24h. An unrecognized value is rejected. (accepted by the backend, not declared in the method catalog) |
Notes
- Clearance
user,private: true. Nomin_plan. Owner or superuser read gate. - Bucketing follows the range:
24hgives 24 hourly buckets,3dgives 72 hourly buckets,7dgives 7 daily buckets and30dgives 30 daily buckets. 30dfalls back on a Cloudflare Free zone, because the retention is not there to answer it.- Responses are cached 5 minutes per zone and range, and a cache hit is flagged
cached: true. Polling faster than that returns the same payload.
get_domain_dns_analytics
Get Domain DNS Analytics
DNS-level analytics from Cloudflare: total query count, average response time, a query timeseries and a per-colo (data center) breakdown, which is what places the markers on the dashboard's globe.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain whose DNS analytics to return. Declared via mandatory: ["domain"]. |
range |
string | No | 24h, 7d or 30d. Defaults to 24h. (accepted by the backend, not declared in the method catalog) |
Notes
- Clearance
user,private: true. Nomin_plan. Owner or superuser read gate. - Same 5 minute cache per zone and range as traffic analytics.
- A 30-day request is transparently capped to 7 days on Cloudflare Free, and the response carries a
dns_fallbackobject explaining the cap. Read that field rather than assuming you got 30 days.
list_dns_records
List DNS Records
Lists up to 500 DNS records from the domain's Cloudflare zone, returned as Cloudflare's raw record objects (id, type, name, content, ttl, proxied, priority and so on).
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain name whose Cloudflare zone DNS records to list. |
Notes
- Clearance
user,private: true. Nomin_plan. - Capped at 500 records per zone read.
- The zone is resolved from the domain document, or from the caller's own transfer-in draft or paid queue document when the registration does not exist yet, so records can be pre-staged before a transfer completes.
- Superusers may read any zone's records for support.
- Despite what an "API and CLI" claim elsewhere might suggest, this method is private, so an account API key cannot list DNS records.
create_dns_record
Create DNS Record
Creates a DNS record on the domain's Cloudflare zone. The record object is passed through to Cloudflare unmodified, so any record type and field Cloudflare accepts is accepted here.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain name whose Cloudflare zone the record is created in. |
record |
object | Yes | The DNS record payload to create, for example { type: 'A', name: 'www', content: '203.0.113.10', ttl: 1, proxied: true }. |
Notes
- Clearance
user,private: true. Nomin_plan. Owner only; a superuser drill-in is read-only for zones it does not own. - A
ttlof 1 means automatic and is what the dashboard displays as "Auto". - Cloudflare's own validation is the validation. A rejected record comes back with Cloudflare's message.
update_dns_record
Update DNS Record
Patches an existing DNS record on the domain's Cloudflare zone.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain name whose Cloudflare zone holds the record. |
record_id |
string | Yes | Cloudflare DNS record ID to update. |
patch |
object | Yes | Partial DNS record fields to apply to the record. |
Notes
- Clearance
user,private: true. Nomin_plan. Owner only. - Get the
record_idfromlist_dns_records. Record ids are Cloudflare's, not Xuda's.
delete_dns_record
Delete DNS Record
Deletes a DNS record from the domain's Cloudflare zone. Returns { ok: true }.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain name whose Cloudflare zone holds the record. |
record_id |
string | Yes | Cloudflare DNS record ID to delete. |
Notes
- Clearance
user,private: true. Nomin_plan. Owner only. - Deleting the record that a project attachment created will take that project's hostname offline. Use
detach_domain_from_projectwhen you mean to disconnect a project.
import_dns_records
Import DNS Records
Uploads a BIND zone file to Cloudflare's zone import endpoint as multipart form data and returns { imported, skipped } counts.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain name whose Cloudflare zone receives the imported records. |
bind_zone_file |
string | Yes | BIND zone file contents to import as DNS records. |
proxied |
boolean | No | When true, leave imported records proxied through Cloudflare. When false or omitted, everything is un-proxied after import. (accepted by the backend, not declared in the method catalog) |
Notes
- Clearance
user,private: true. Nomin_plan. Owner only. - Unless
proxiedis explicitly true, every record Cloudflare flipped to the orange cloud during import is patched back to DNS only, so nothing silently changes behavior and integration records such as_domainconnectkeep working. - Import adds to the zone. It does not replace it, so run an export first if you want a rollback point.
export_dns_records
Export DNS Records
Exports the domain's Cloudflare zone as BIND zone-file text. The response body is the raw file contents as a string; the dashboard turns it into a <domain>.txt download.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain name whose Cloudflare zone to export as a BIND zone file. |
Notes
- Clearance
user,private: true. Nomin_plan. Owner only. - The export is the natural backup to take before an import or a bulk edit.
transfer_in_initiate
Transfer In Initiate
The older, single-step transfer-in intent recorder. It writes a manual-queue document with kind: 'transfer_in', emails the admin team with the domain, the requesting user, the auth code and a link to Cloudflare's transfer page, and returns { status: 'queued', queue_id, stage: 'submitted', message, dashboard_url }. The message reads "Transfer received, we usually process within a few hours."
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain name the user wants to transfer in. |
auth_code |
string | Yes | Transfer authorization (EPP) code from the losing registrar. |
years |
number | No | Years to add on transfer, carried into the admin email. (accepted by the backend, not declared in the method catalog) |
contact |
object | No | Contact to use for the transferred domain. (accepted by the backend, not declared in the method catalog) |
Notes
- Clearance
user,private: true. Nomin_plan. - The live Cloudflare path sits behind
domains.feature_flags.transfers_api, which is false, and returns "transfer-in via API not yet implemented" when true. This method records intent, it does not start a registry transfer. - Superseded. The dashboard uses the paid two-step flow,
transfer_in_create_zonethentransfer_in_purchase. Build against those.
transfer_in_create_zone
Transfer-in: create zone
Step 1 of the paid transfer-in flow. Creates the Cloudflare zone free of charge, imports the domain's existing DNS, applies the AI-crawler and robots.txt preferences, computes a price quote and persists a draft, returning { draft_id, zone_id, ns_records, imported_records, imported_count, domain, price }.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain to transfer in. Loosely validated against ^[a-z0-9][a-z0-9.-]*\.[a-z]{2,}$ before anything is created. |
import_mode |
string | No | auto (default), manual or zone_file. auto imports the existing DNS; the other two skip the import so the user adds records themselves. (accepted by the backend, not declared in the method catalog) |
ai_crawler |
string | No | block_all (default), block_ads or allow. Maps to Cloudflare's ai_bots_protection values block, only_on_ad_pages and disabled. (accepted by the backend, not declared in the method catalog) |
robots_txt |
boolean | No | Whether Cloudflare should manage robots.txt for the zone. Defaults to true. (accepted by the backend, not declared in the method catalog) |
auth_code |
string | No | EPP code captured up front, used by the bulk CSV import so it does not have to be re-entered at pay time. (accepted by the backend, not declared in the method catalog) |
Notes
- Clearance
user,private: true. Nomin_plan. - Nothing is charged here. The card is only charged at step 2, after the caller has seen the nameservers and the price.
- Existing-state handling is explicit: an already-registered Xuda domain is refused; the caller's own paid queue item returns
already_in_progress: true; another user's paid claim is refused; the caller's own fresh draft is resumed and re-reconciled if the import mode or AI preference changed; another user's draft under 5 days old blocks; anything else is cleaned up and recreated. - A zone that already lives on a different Cloudflare account is detected before the create call, using a DNS-over-HTTPS nameserver probe, and again afterwards via Cloudflare error 1061. Both produce the same message naming the two ways out: remove the zone from that Cloudflare account, or move the Cloudflare Registrar registration to Xuda's account id, which the message includes.
- DNS import runs Cloudflare's own zone scan first and falls back to a DNS-over-HTTPS probe of about 23 common subdomains and 7 well-known TXT names. Everything is imported as DNS only, so nothing changes behavior at the nameserver switch.
- This is the method the bulk CSV import calls, once per row.
transfer_in_purchase
Transfer-in: pay and queue
Step 2 of the paid transfer-in flow. Validates the draft, charges Stripe for one year, creates the paid queue document carrying the zone id, nameservers, auth code, auto-renew choice and Stripe handles, deletes the draft and emails the admin team.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
draft_id |
string | Yes | ID returned by transfer_in_create_zone. |
auth_code |
string | Yes | The EPP / authorization code from the losing registrar. Falls back to the code stored on the draft if omitted. |
payment_method_id |
string | Yes | Stripe payment_method_id to charge. |
auto_renew |
boolean | No | Whether the domain should auto-renew annually. Defaults to true. |
Notes
- Clearance
user,private: true. Nomin_plan. - The draft must exist, be a transfer-in draft, belong to the caller and not have expired. Drafts expire 24 hours after creation.
- Billed as one year, because ICANN credits a transferred domain with an extra year.
- If Stripe fails, the draft and the Cloudflare zone are deliberately left intact so the caller can retry with another card.
- Completion is human in the loop by design. A Xuda operator submits the auth code at Cloudflare and moves the queue item, which is what finally writes the owned domain document.
cancel_transfer_in
Transfer-in: cancel (pre-payment)
Cancels an unpaid transfer-in. It deletes the draft's Cloudflare zone and the draft document, so the domain leaves the user's list.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain whose unpaid transfer-in draft should be cancelled. (accepted by the backend; the method catalog declares no fields for this method) |
Notes
- Clearance
user,private: true. Nomin_plan. - It refuses outright if any paid queue item exists for that domain in
queued,in_progress,action_requiredorcompletedstate, with the message "This transfer is already paid and in progress, contact support to cancel it." - Cancelling destroys the imported DNS along with the zone. Export first if you want to keep it.
get_transfer_in_progress
Get Transfer-in Progress
Returns { paid, drafts }. Each paid item is enriched with a live Cloudflare zone-status lookup and a computed stage. Drafts carry the synthetic stage awaiting_payment. This drives both the Domains list's pending rows and the multi-stage timeline on the Overview page.
Availability: Dashboard session
Parameters
This method takes no parameters. The result is scoped to the calling user.
Notes
- Clearance
user,private: true. Nomin_plan. - The computed stages are
paid_queued,ns_propagating,ready_for_admin,awaiting_email_approval,action_required,completedandfailed, each with a customer-facing label and description you can render directly. - Capped at 50 paid items and 20 drafts.
transfer_in_status
Transfer In Status
Returns the current stage of an in-flight transfer-in for a single domain, mapped to submitted, in_progress, completed or failed with a label and description.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain name whose in-flight transfer-in status to return. The backend tolerates its absence and returns the user's whole list. |
Notes
- Clearance
user,private: true. Nomin_plan. - For a list rather than one domain, call
list_my_transfer_ins. That is what it was split out for.
list_my_transfer_ins
List My Transfer-Ins
Returns every in-flight and recently finished transfer-in belonging to the calling user, sorted newest first.
Availability: Dashboard session
Parameters
This method takes no parameters. The result is scoped to the calling user.
Notes
- Clearance
user,private: true. Nomin_plan. - Sorting happens in application code rather than with a Mango sort, because an unindexed sort returns an empty result set in CouchDB.
transfer_out_initiate
Transfer Out Initiate
Records the user's intent to transfer a domain out to another registrar. It queues a manual-queue item with kind: 'transfer_out' and returns three instructions (unlock at Cloudflare, retrieve the EPP code, initiate at the new registrar), a recent_renewal_warning boolean and a dashboard deep link.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain name the user wants to transfer out. |
Notes
- Clearance
user,private: true. Nomin_plan. Owner or superuser only. - The ICANN 60-day hold is enforced, not just displayed. Inside it the call refuses with "transfer-out blocked: N days remain on 60-day hold". The countdown is computed from the latest of registration, previous transfer and contact update.
recent_renewal_warningis true when the domain was renewed within the last 45 days. That is a warning, not a block: transferring anyway forfeits the extra year at the new registrar and the renewal is not refundable.- The auth code is emailed by a person, typically within a few hours. This method does not return one.
find_xuda_recipient
Find Xuda Recipient
Privacy-respecting recipient lookup for domain transfers. Returns at most one row containing contact_uid, a masked email (first two characters of the local part, then asterisks) and the username.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query |
string | Yes | Full email address or @username to look up a domain-transfer recipient. |
Notes
- Clearance
user,private: true. Nomin_plan. - It matches only on an exact full email address or an exact
@username, with or without the leading@. Anything else is refused with "enter a full email address or @username", so it cannot be used to enumerate users. - It never returns names, avatars, countries or bios.
- A non-match on a valid email still succeeds, answering
{ found: false, will_invite: true }so the caller can offer the invite path instead.
initiate_xuda_transfer
Initiate Xuda Transfer
Starts a domain handover to another Xuda account, or to a new user invited by email. It writes a transfer request expiring in 7 days, marks the domain with pending_transfer_request_id, emails the recipient and pushes a real-time socket event if they are already signed in.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | Domain name to transfer to another Xuda account or invited recipient. |
recipient_email |
string | No | Recipient's email address. One of this or recipient_contact_uid is required. (accepted by the backend, not declared in the method catalog) |
recipient_contact_uid |
string | No | Recipient's Xuda account id, as returned by find_xuda_recipient. (accepted by the backend, not declared in the method catalog) |
Notes
- Clearance
user,private: true. Nomin_plan. Owner or superuser only. - Transferring to your own account is refused, and so is a second pending transfer for the same domain.
- If the domain was attached to one of the sender's projects it is detached at this moment, so the recipient does not inherit a half-attached state. Warn the user before you call it.
- The recipient's email differs by whether they already have a Xuda account: an existing user gets an inbox link, a new one gets a signup link pre-filled with their email.
- The invitation expires after 7 days.
- No Cloudflare transfer happens here. This is an ownership change inside Xuda, so there is no registry hold and no auth code.
list_xuda_transfers
List Xuda Transfers
Lists Xuda-to-Xuda transfer requests for the current user.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
direction |
string | No | incoming (default) or outgoing. (accepted by the backend, not declared in the method catalog) |
status |
string | No | Filter to one status: pending, accepted, declined, cancelled or expired. (accepted by the backend, not declared in the method catalog) |
Notes
- Clearance
user,private: true. Nomin_plan. - Incoming matches on either the recipient uid or the recipient email, so a request created before the recipient signed up still resolves once they do. Results are deduplicated by document id.
- Capped at 100 per direction. Sorting is done in application code, not with a Mango sort.
accept_xuda_transfer
Accept Xuda Transfer
Accepts an incoming Xuda transfer. It flips owner_uid on the domain, records transferred_from_uid, transferred_at and pending_handover_at, severs the sender's project attachment and DNS record, saves the recipient's registrant contact to their account, queues the WHOIS update, and emails and socket-notifies the sender.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
transfer_id |
string | Yes | Id of the incoming Xuda transfer request being accepted. |
payment_method_id |
string | Yes | Stripe payment method id used to fund the recipient's renewal subscription. |
registrant_contact |
object | Yes | Recipient's registrant contact object applied to the domain after transfer. Validated with the same ICANN/ASCII rules as a purchase. |
Notes
- Clearance
user,private: true. Nomin_plan. - The request must still be pending and unexpired, and the caller must match either the recipient uid or the recipient email.
- The recipient must already have a Stripe customer.
- Nobody is double billed. The sender's subscription is set to cancel at period end and the recipient gets a Stripe Subscription Schedule that starts at that same moment, derived from the domain's expiry, so the recipient pays nothing on the day they accept.
- Until the handover date, the recipient sees a billing-handover state and no invoices, because the current term was already paid by the sender.
decline_xuda_transfer
Decline Xuda Transfer
Declines an incoming Xuda transfer and clears the pending flag on the domain.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
transfer_id |
string | Yes | Id of the incoming Xuda transfer request being declined. |
note |
string | No | Optional reason shown to the sender. (accepted by the backend, not declared in the method catalog) |
Notes
- Clearance
user,private: true. Nomin_plan. - The note is included in the notification email the sender receives.
- Declining does not restore a project attachment that was severed when the transfer was initiated. Re-attach it with
attach_domain_to_project.
cancel_xuda_transfer
Cancel Xuda Transfer
The sender pulls back a pending transfer before the recipient acts on it. Clears the pending flag on the domain and notifies the recipient by socket if they are a Xuda user.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
transfer_id |
string | Yes | Id of the pending outgoing transfer request the sender wants to cancel. |
Notes
- Clearance
user,private: true. Nomin_plan. - Only the original sender may cancel, and only while the request is still pending.
attach_domain_to_project
Attach Domain To Project
Creates the correct Cloudflare record for the app type and attaches the domain, or a subdomain of it, to the project. It records the attachment in the domain's attachments array, one entry per hostname, and updates the app's domain_setup so the project UI shows the connected, secured state.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain name to attach to the project. |
app_id |
string | Yes | ID of the app/project to attach the domain to. |
subdomain |
string | No | Subdomain label to attach instead of the apex, for example app. (accepted by the backend, not declared in the method catalog) |
Notes
- Clearance
user,private: true. Nomin_plan. The caller must own the domain, and the app must belong to the caller. - Record type is chosen from the app type: a Proxmox farm VM gets a proxied
AAAAto the VM's routed IPv6, another VPS type gets a proxiedAto the public IP, and everything else gets a proxiedCNAMEto the app's access URL, falling back to the configured default target CNAME. - Before creating, it deletes any existing A, AAAA or CNAME on the target hostname and on whatever hostname this app previously held on the domain.
- For a proxied
Arecord it probes the origin's TLS once and sets the zone SSL mode tostrict,fullorflexibleaccordingly. For a proxiedAAAAit setsfullwithout probing. It then turns on Always Use HTTPS. You get working HTTPS without touching the server. - One domain can serve several projects, because attachments are per hostname. The apex and any number of subdomains can each point at a different project.
- This is the method
agent_domain_connectdelegates to, which is how the AI agent reaches the same behavior.
detach_domain_from_project
Detach Domain From Project
Removes the auto-created DNS records for the attached hostname, reverts the app to its default free subdomain, and clears the attachment fields on the domain document.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain name to detach from the project. |
app_id |
string | No | Optional. Detach is domain-scoped, so the domain disconnects from whatever it is attached to and app_id is not required. |
Notes
- Clearance
user,private: true. Nomin_plan. Owner or superuser only. - Deliberately domain-scoped: it detaches from whatever the domain is attached to and does not require a matching
app_id. - When the domain still serves other projects on other hostnames, the legacy single
attached_*fields are re-pointed at the most recent remaining attachment rather than blanked. - The project reverts to its free
*.xuda.appsubdomain.
connect_external_domain
Connect External Domain
Creates a Cloudflare zone for a domain registered at a third-party registrar, asks Cloudflare to auto-import the existing records, waits briefly and reads back what was imported, then stores the domain with connection_type: 'connected' and connect_status: 'pending_nameservers'. Returns the domain, zone id, the nameservers the customer must set at their registrar, the imported records and the status.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The external domain to connect. Protocol, path and a leading www. are stripped before use. |
app_id |
string | No | Static-site app to wire the apex and www to once the zone goes active. |
Notes
- Clearance
user,private: true,security: true. Nomin_plan. - Idempotent. A domain Xuda already controls for your account returns the same information with
already_ours: true. A domain whose DNS zone on Xuda belongs to another account, or to no account you hold, is refused. - A zone that already lives on someone else's Cloudflare account is refused with a plain-English message.
- Connecting costs nothing. A connected domain has no Stripe price and is skipped when the account's subscription list is built, because renewal and WHOIS stay with the original registrar.
- Connected domains appear in the same Domains list but with the registrar surfaces hidden: no expiry, no auto-renew, and no Contacts, Billing or Transfer tabs.
check_external_domain
Check External Domain
Polls a connected external domain's zone activation, that is, whether the customer's nameserver change has propagated. Returns the domain, status, zone status, an active boolean, nameservers, current records, a wired boolean and the attached app id.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The connected domain whose zone activation to poll. |
Notes
- Clearance
user,private: true,security: true. Nomin_plan. Owner or superuser only. - When Cloudflare reports the zone active it marks the domain active and, if a site was specified, wires the apex and
www. The wiring is idempotent and re-runs on every active check, so a half-wired domain self-heals. - The dashboard polls this every 15 seconds for up to about 30 minutes while waiting on a nameserver change, and also offers a manual check.
disconnect_external_domain
Disconnect External Domain
Full teardown for a connected domain: it detaches the domain from its site by removing the apex and www host mappings, deletes the Cloudflare zone Xuda hosts for it, and removes the domain document so it leaves the Domains list.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The connected domain to disconnect. |
Notes
- Clearance
user,private: true,security: true,broadcast: true. Nomin_plan. Owner or superuser only. - Refused for anything that is not
connection_type: 'connected', with "Only connected (external) domains can be disconnected here." - The domain stops resolving until its owner points the nameservers back to their registrar's defaults. Say so before you call it.
- Use
detach_external_domain_from_sitewhen you only want to unwire the site and keep the zone.
detach_external_domain_from_site
Detach External Domain From Site
The softer counterpart to disconnect: it removes the apex and www routing records, the Cloudflare Worker routes and the site hostname entries, and clears the site attachment on the domain document, but keeps the Cloudflare zone and the domain document.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | The domain to detach from its site. A leading www. is stripped. |
Notes
- Clearance
user,private: true,security: true. Nomin_plan. Owner or superuser only. - The domain stays in the user's Domains list, still delegated to Xuda's nameservers, ready to re-attach.
list_all_domains
List All Domains (Admin)
Returns every domain registration on the platform, enriched with the owner's email, username, account name, signup date, purchase total and Stripe subscription id, sorted most-recently-registered first.
Availability: Operator only
Parameters
This method takes no parameters.
Notes
- Clearance
user,private: true, and it additionally rejects any caller not in the configured superuser account ids with "not authorized". Nomin_plan. - Owner account documents are bulk-loaded in parallel and deduplicated, so a customer owning 50 domains costs one lookup, not 50.
list_transfer_in_queue
List Transfer-In Queue
Lists pending, in-progress and completed transfer-in requests with the requesting user's email and name resolved inline, sorted newest first.
Availability: Operator only
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
status |
string | No | Optional filter. The real queue statuses are queued, in_progress, completed and failed. (accepted by the backend, not declared in the method catalog) |
Notes
- Clearance
user,private: true, superuser only. Nomin_plan. - Capped at 200 items. Sorting is done in application code.
update_transfer_in_queue_item
Update Transfer-In Queue Item
Moves a transfer-in queue item between queued, in_progress, completed and failed, and pushes a live transfer_in_updated socket event to the requesting customer so their status timeline advances without a refresh.
Availability: Operator only
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
queue_id |
string | Yes | CouchDB id of the transfer-in queue item to update. |
status |
string | Yes | New queue status, one of queued, in_progress, completed or failed. |
note |
string | No | Free-text note shown to the customer. Required when status is failed. (accepted by the backend, not declared in the method catalog) |
Notes
- Clearance
user,private: true, superuser only. Nomin_plan. - Setting
in_progressalso stampsepp_submitted_at, because the customer timeline advances off that timestamp rather than off the queue status. - Setting
completedwrites, or flips, the owned domain registration document, carrying over the auto-renew choice and the Stripe handles, so the domain appears in the customer's list instead of vanishing. - A
failedtransition requires a note.
mark_transfer_epp_submitted
Mark EPP Submitted
Records that the EPP or auth code has been submitted at Cloudflare, stamping epp_submitted_at and moving a queued item to in_progress.
Availability: Operator only
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
queue_id |
string | Yes | The domain_manual_queue document id. |
Notes
- Clearance
user,private: true, superuser only. Nomin_plan. - This locks the queue item out of the refund-eligible window. Post-EPP failures are support tickets only.
- No shipped screen calls this method.
update_transfer_in_queue_itemperforms the same stamping as a side effect.
Errors
Domain methods return readable sentences rather than a numbered error catalog. These are the refusals worth handling explicitly.
| Message you get back | What caused it |
|---|---|
| IDN/Unicode domains are not supported. | domain_search received a query containing characters outside [a-z0-9.-]. |
| Cloudflare registrar account is not configured on this Xuda instance. | get_registrar_account_state found no Cloudflare account id in config. It answers configured: false with every checklist item false. |
| transfer-out blocked: N days remain on 60-day hold | transfer_out_initiate was called inside the ICANN 60-day hold, counted from the latest of registration, previous transfer and contact update. |
| This transfer is already paid and in progress, contact support to cancel it. | cancel_transfer_in found a paid queue item in queued, in_progress, action_required or completed. |
| Only connected (external) domains can be disconnected here. | disconnect_external_domain was called on a domain that is not connection_type: 'connected'. |
| enter a full email address or @username | find_xuda_recipient received a partial or fuzzy query. Only exact matches are accepted. |
| renewal via API not yet implemented | renew_domain with domains.feature_flags.renewals_api set true. With the flag false it queues instead. Either way no domain is renewed. |
| transfer-in via API not yet implemented | transfer_in_initiate with domains.feature_flags.transfers_api set true. Use the paid two-step flow. |
| not authorized | An operator-only method was called by a caller who is not a configured superuser. |
Other refusal families, returned in the same readable form:
- Registrant validation. A name under 2 characters, a malformed email, a phone with fewer than 7 or more than 15 digits, a missing address line 1, city or postal code, a country that is not a 2-letter ISO code, or any non-ASCII character. Applies to
save_registrar_contact,domain_purchaseandaccept_xuda_transfer. - Quote and term validation. A
yearsvalue outside 1 to 10, a value above that TLD'smaximum_registration_years, an ack token that is expired, tampered with or belongs to a different user. - Ownership. Most methods are owner-only, with a superuser exception on the read paths. Write paths on DNS are owner-only, and a superuser drilling into a zone they do not own gets read access only.
- Foreign Cloudflare zone.
transfer_in_create_zoneandconnect_external_domainboth refuse a domain whose zone lives on another Cloudflare account, and the transfer-in message names both ways out and includes Xuda's Cloudflare account id. - Cloudflare failures on purchase. These are flattened from Cloudflare's nested error chain into one readable string, with the refund id appended when the automatic Stripe rollback succeeded.
Every Cloudflare call has a 20 second abort timeout, so an upstream stall surfaces as a timeout rather than hanging your request.
Webhooks
Domains registers no inbound webhooks. Purchase completion is discovered by polling, not by a Cloudflare callback. If you are waiting on a registration, poll domain_purchase_status or read list_domains, both of which finalize a stuck job as a side effect.
What the product does emit is real-time events on the dashboard socket, for signed-in sessions:
| Event | Emitted when |
|---|---|
domain_purchase_updated |
A purchase job resolves, from both the inline registration callback and the cron poller. |
transfer_in_updated |
An operator moves a transfer-in queue item. |
xuda_transfer_incoming |
A Xuda-to-Xuda transfer is initiated toward a signed-in recipient. |
xuda_transfer_updated |
A Xuda-to-Xuda transfer is accepted, declined or cancelled. |
Two scheduled jobs run behind the product, on the active primary node only so they do not double-fire across the fleet: a purchase poller every minute, and a full registrar reconcile at 03:00 daily. Neither is callable from the API.
Emails are sent asynchronously and never block a request: an admin notification on a new transfer-in, a recipient invitation for a Xuda-to-Xuda transfer, and a sender notification when one is accepted, declined or cancelled.
Rate Limits, Caching And Timeouts
There are no per-caller rate limits on domain methods. What shapes your call pattern instead is caching and a set of hard result caps.
| Scope | Behavior |
|---|---|
get_domain_analytics and get_domain_dns_analytics |
Cached 5 minutes per zone and range. A hit is flagged cached: true. |
get_domain_quick_actions |
Cached 60 seconds per zone, invalidated on a matching write. |
list_domains registrar refresh |
Cloudflare is only re-read for an owned domain not synced in the last 6 hours. |
| Every Cloudflare call | 20 second abort timeout. |
| Result cap | Limit |
|---|---|
| DNS records per zone read | 500 |
list_domains |
9999 documents |
list_transfer_in_queue |
200 items |
list_xuda_transfers |
100 per direction |
get_transfer_in_progress |
50 paid items and 20 drafts |
find_xuda_recipient |
1 row, exact match only |
Idempotency And Lifetimes
- A quote is single use and short lived. The
ack_tokenis HMAC signed with the uid, name, years, privacy, auto-renew and totals baked in, and expires 5 minutes after issue. Re-quote rather than caching one. - A purchase cannot leave a customer charged for nothing. Stripe uses
payment_behavior: 'error_if_incomplete', the subscription and payment intent are re-checked afterwards, and a Cloudflare rejection cancels the subscription and refunds the first invoice. - Purchase finalization is safe to repeat. Three mechanisms converge on the same job: your own polling of
domain_purchase_status, the sweep insidelist_domains, and the every-minute cron. - Transfer-in step 1 is resumable. Calling
transfer_in_create_zoneagain for the same domain resumes the caller's own fresh draft, and re-reconciles it if the import mode or AI crawler preference changed, rather than creating a duplicate. - Connect is idempotent.
connect_external_domainon a domain Xuda already controls for your account returns the same payload withalready_ours: true. It never takes over a DNS zone your account does not already hold. - Zone wiring self-heals.
check_external_domainre-wires apex andwwwon every active check, so a partially wired domain repairs itself. - Attach replaces rather than stacks.
attach_domain_to_projectdeletes any existing A, AAAA or CNAME on the target hostname, and on whatever hostname this app previously held, before creating the new record.
| Lifetime | Value |
|---|---|
Price quote (ack_token) |
5 minutes |
| Transfer-in draft, resumable by the same user | 24 hours |
| Transfer-in draft, claimable by a different user | 5 days |
| Xuda-to-Xuda transfer invitation | 7 days |
| ICANN transfer-out hold after registration, transfer or contact change | 60 days, enforced |
| Post-renewal transfer warning | 45 days, warned not enforced |
| Registration term | 1 to 10 years, further capped per TLD |
Plan Gates And Pricing
No domain method is plan gated. Every entry carries clearance: "user" and none declares a min_plan, so the platform plan check passes on every plan, free included. There is no domain quota, no credit cost and no free tier concept in this product.
What you pay is registry pricing plus a platform markup, computed live per TLD rather than from a tier ladder:
| Charge | How it is priced |
|---|---|
| Registration | Cloudflare wholesale plus a 20 percent markup, floor 0 USD. |
| Renewal | Cloudflare wholesale renewal plus a 60 percent markup, floor 0 USD. Both figures are returned by domain_search and domain_quote so a caller can show them side by side. |
| Premium names | Cloudflare's premium fee on top, amortized across the term as part of the annual Stripe line item. |
| Transfer in | The initial markup tier applied to Cloudflare's transfer cost, billed as one year, because ICANN credits a transferred domain with an extra year. |
| Connecting an external domain | Nothing. A connected domain has no price and is skipped when the account's subscription list is built. |
| WHOIS privacy, SSL, DDoS protection, DNS management | Bundled at no extra charge. The Stripe subscription is a single line item of registration plus the amortized premium fee. |
Billing mechanics worth knowing before you automate against this:
- Every registered domain gets its own annual Stripe subscription, against a per-domain Stripe product named
Domain registration - <domain>. - Turning auto-renew off via
update_domainsetscancel_at_period_endon that subscription. Turning it back on clears it. - A Xuda-to-Xuda handover never double bills: the sender's subscription cancels at period end and the recipient's Subscription Schedule starts on that same date.
domain_quotereturns aprivacy_per_year_usdfield, but nothing charges for privacy. Do not surface that number as a price.
Capabilities That Are Not Built
Stated plainly so you do not design around them:
- On-demand renewal.
renew_domainqueues; the flag-on branch returns "renewal via API not yet implemented". Renewal happens through the annual subscription plus the manual queue. - Custom apex nameservers. No backing method at any plan.
update_domain_nameserversqueues a change for an operator. - Direct contact updates at the registry.
update_domain_contactsqueues. Changes are applied by hand, typically within a few hours. - API-key access to DNS. Every DNS method is private, so an account API key cannot list, create, edit, delete, import or export records.
- Email forwarding and catch-all on the domain. No such method exists in this product.
- Transfer-in completion. Payment, zone creation, DNS import and the customer timeline are automated, but a Xuda operator submits the auth code at Cloudflare and moves the queue item.
- Transfer-out auth codes.
transfer_out_initiatequeues intent and returns instructions. The code arrives by email from a person. - Internationalized domain names. Refused at search time.
A Note On The Rest Of The Surface
Beyond the 52 methods above, the module exports three functions that are callable only over the internal broker. They have no method-catalog entry, so neither an API key nor a dashboard session can reach them, and they are not a supported surface.
| Function | What it does |
|---|---|
get_registered_domains_for_user |
Returns { domain, attached_app_id, expires_at, status } per domain for a user. The app module consumes it to populate a project's domain picker. |
domain_poll_pending_purchases |
The every-minute cron entry point. Sweeps up to 100 pending or in-progress purchase jobs, resolves them at Cloudflare and emits a domain_purchase_updated socket event per user. |
domain_reconcile |
The nightly cron entry point. Pages through every domain in the Cloudflare Registrar account, 50 at a time, and refreshes the matching local document for any domain with a known owner. |