Domains

Registers a domain through the built-in registrar in the owner's name: registrant becomes the legal registrant on record with the registry, so ask the business owner for these details rather than inventing them. If the account has a card on file the purchase is charged immediately (charged: true, no redirect); otherwise the response includes a Stripe Checkout URL (checkout_url) to complete payment. The domain is created in pending_payment and becomes active once payment completes and registration succeeds. Poll GET /domains/{id} for status. Buying accepts the domain registration terms at https://crevio.co/legal/terms-of-service#7a-domain-names.

post/domains/purchase

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

object required
domain, string required

The domain to buy (check availability first).

registrant, object required

The legal owner of the domain, recorded with the registry. Must be real, current contact details: the registry may email email to confirm it, and inaccurate details can get the domain suspended.

Response

Checkout created

object required
object, string
id, string
domain, string
status, string
checkout_url, string
hint, string

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    1 more change in this revision