Renew or register a held domain
renew (and purchase, a one-name purchaseDomain) returns data.checkout.url for a person to open; nothing is charged until they pay there, and the registrar is asked only after payment. Poll getDomainRegistration for the outcome. Transfers aren’t available yet: transfer_in and transfer_out refuse with domain_transfer_unavailable and change nothing.
/v1/domains/{domainId}/registrationAuthorizationBearer token · headerrequiredBetter Auth session, OAuth access token, OAuth client-credentials token, or sfm_ Space machine credential.
AuthorizationOAuth2 access token · headerrequiredOAuth 2.0 with explicit Spacefast capability scopes. Use the authorization-code flow for people and client credentials for machines.
domains:writedomainIdstringrequiredapplication/jsonactionstringrequiredanalyticsobjectShow propertiesHide properties
sessionIdstring<uuid>requiredtraceIdstring<uuid>requiredanonymousIdstringrequiredpathstringrequiredperiodintegerRegistration period in years.
contactIdstringRegistrant contact record to use.
actionstringrequiredanalyticsobjectShow propertiesHide properties
sessionIdstring<uuid>requiredtraceIdstring<uuid>requiredanonymousIdstringrequiredpathstringrequiredperiodnumberYears. Only 1 is offered today.
actionstringrequiredauthCodestringrequiredTransfer authorization code from the current registrar.
contactIdstringRegistrant contact record to use.
actionstringrequiredResponse for status 200
$schemastring<uri>Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.
dataobjectrequiredShow propertiesHide properties
registrationobjectrequiredShow propertiesHide properties
idstring | nullrequiredRegistration or transfer record id; null when unregistered.
domainIdstringrequiredDomain inventory record (dom_...).
hostnamestringrequiredRegistered hostname.
providerstring | nullrequiredWrapped registrar bridge where the registration lives.
Show propertiesHide properties
stringnullstatusstringrequiredRegistration lifecycle status. pending_payment means checkout is open and nothing is registered yet.
expiresAtstring<date-time> | nullrequiredInstant when the registration expires.
Show propertiesHide properties
string<date-time>nullredemptionEndsAtstring<date-time> | nullrequiredInstant when the redemption window ends after expiry.
Show propertiesHide properties
string<date-time>nullautoRenewbooleanrequiredSaved auto-renew preference. Nothing renews on its own yet; renew by hand.
transferLockbooleanrequiredWhether outbound transfers are locked.
privacySettingstring | nullrequiredWHOIS privacy behavior.
Show propertiesHide properties
stringnullcontactIdstring | nullrequiredRegistrant contact record.
failureReasonstring | nullrequiredProvider failure detail when status is failed.
purchaseobject | nullrequiredMoney state of the current purchase or renewal line; null when none is in flight.
Show propertiesHide properties
intentIdstringrequiredPurchase intent that paid for this line.
lineStatusstringrequiredawaiting_paymentsubmittingsettledrefundingrefundedcancelledcheckoutobject | nullThe open payment link, when you request includeCheckout. You get it only when you may purchase this domain and, when the checkout was opened with billing authority over the paying team, hold that authority too. Null when you cannot get an open link; check checkoutUnavailable for lookup failures. Omitted when you do not request it or may not purchase this domain.
Show propertiesHide properties
idstringrequiredExisting Stripe Checkout session id.
urlstring<uri>requiredOpen this existing checkout to complete payment.
expiresAtstring<date-time>requiredWhen this checkout expires.
nullcheckoutUnavailablebooleanTrue when the requested payment link could not be retrieved or verified. Registration status remains available. Retry the read to recover the existing checkout; do not start another purchase.
quotedFeeAmountCentsinteger | nullrequiredRegistrar fee before tax, in cents.
Show propertiesHide properties
integernullpaidAmountCentsinteger | nullrequiredWhat the customer paid for this line, tax included, in cents.
Show propertiesHide properties
integernullrefundobject | nullrequiredShow propertiesHide properties
referencestringrequiredStripe refund id.
amountCentsintegerrequiredrefundedAtstring<date-time>requirednullnullcreatedAtstring<date-time> | nullrequiredShow propertiesHide properties
string<date-time>nullupdatedAtstring<date-time> | nullrequiredShow propertiesHide properties
string<date-time>nullcheckoutobject | nullrequiredPayment step for renew and purchase; null when nothing is due.
Show propertiesHide properties
idstringrequiredStripe Checkout session id.
urlstring<uri>requiredOpen this to pay. Nothing is charged until payment completes here.
expiresAtstring<date-time>requiredsubtotalCentsintegerrequiredcurrencystringrequiredlinesobject[]requiredShow propertiesHide properties
objectdomainIdstringrequiredregistrationIdstringrequirednamestringrequiredamountCentsintegerrequiredPrice before tax, in cents: the registrar fee plus any ICANN fee.
nulloperationobject | nullrequiredBackground operation handle when asynchronous work remains after this mutation; null when it completed synchronously.
Show propertiesHide properties
idstringrequiredkindstringrequiredstatusstringrequiredqueuedrunningsucceededfailedcanceledresourcesobject[]requiredShow propertiesHide properties
objecttypestringrequiredidstringrequiredprogressobjectShow propertiesHide properties
totalintegerrequiredcompletedintegerrequiredfailedintegerrequireddiagnosticsobject[]Show propertiesHide properties
objectcodestringrequiredStable snake_case diagnostic code naming the public contract that produced it.
severitystringrequiredHow actionable the diagnostic is.
infowarningerrormessagestringrequiredHuman-readable explanation with enough detail to act on.
pathstring | nullArtifact path the diagnostic points at, for example "_headers:12", when one exists.
providerstring | nullUpstream system the diagnostic originated from, when not Spacefast itself.
Show propertiesHide properties
stringnulldetailsobject | nullMachine-readable context for the diagnostic code.
Show propertiesHide properties
objectnullfixstring | nullConcrete, agent-actionable remediation hint, when one can be derived.
retryableboolean | nullWhether retrying the same operation can resolve this diagnostic without the caller changing anything.
createdAtstring<date-time>requiredfinishedAtstring<date-time>nullProblem details (RFC 9457). Any 4xx/5xx response is one application/problem+json document.
$schemastring<uri>Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.
typestringrequiredProblem type URI resolving to the error docs page. The server derives it mechanically from code against the docs origin.
titlestringrequiredShort human-readable summary of the problem type. The server derives it mechanically from code.
statusintegerrequiredHTTP status code of this response, repeated in the body.
detailstringrequiredHuman-readable failure explanation for this occurrence.
codestringrequiredStable snake_case error code naming the failed public contract.
pointerstringRFC 6901 JSON Pointer into the failing request field, for example "/files/37/path", on validation failures.
detailsobjectMachine-readable context for the error code.
fixstringOne sentence on what to do about this error code, the same text as the type page. Read it before retrying.
suggestionsstring[]Actionable recovery steps safe to show in dashboards, SDKs, and CLI output.
nextstring[]Copy-pasteable commands or API requests an agent can run next.
requestIdstringrequiredThe request id to quote when contacting support.