Get a domain's registration
Returns the registration or transfer state of an apex domain by id or hostname, or an unregistered record when Spacefast holds no registration for it. Pass teamId to restrict live registrations and retained failed purchases to that team. Pass includeCheckout=true to get the open Stripe payment link in purchase.checkout. You get the link only when you may purchase the domain and, when the checkout was opened with billing authority over the paying team, hold that authority too; otherwise purchase.checkout is null. A payment-link lookup failure sets purchase.checkoutUnavailable without hiding registration status. This read never opens another checkout. After payment a purchase moves pending_payment → pending_registration → active; a failed one carries failureReason and its refund in purchase, and stays readable after the failed purchase releases its domain.
/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:readdomainIdstringrequiredteamIdstringReturn only this team's registration, including retained failed purchases. Use this when a hostname may have purchase history in more than one team.
includeCheckoutstringRequest the open payment link. 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. Omit for registration status without a payment-provider lookup.
Response 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
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>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.