Domains

Connect a domain

Changed on

Connect a hostname. web routing defaults on (attached to site_id or the storefront); email capabilities are explicit opt-ins. Pass page (a published page's slug) to serve that one public page at the hostname instead of a site, or pages: true to serve every published page at /<slug> (the account's pages domain). The response carries capabilities, records[] with per-record DNS status, and next_step.

post/domains

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
name, string required
site_id, string
page, string

Slug of a public published page to serve at this hostname. A gated page can't be served on a custom domain, and a hostname serves either a site or one page.

pages, boolean

Serve every published page of the account at https://<hostname>/<slug>, members-only ones included: viewers sign in on the hostname and each page keeps its own access. One pages domain per account; it cannot also serve a site or a single page.

capabilities, object

Response

Domain

Domain required
object, string required
id, string required
domain, string required
purchase_status, 'pending_payment' | 'registering' | 'registered' | 'failed' | 'null' nullable required
auto_renew, boolean nullable required

Whether the registration renews itself before expires_at; null for a domain connected rather than bought here. Change it with PATCH auto_renew.

expires_at, string date-time nullable
transfer_out_available_on, string nullable required

First date the registration can move to another registrar (60 days after registration); null for a domain connected rather than bought here.

transfer_out_requested_at, string date-time nullable
transfer_in_status, 'pending_payment' | 'transferring' | 'completed' | 'failed' | 'null' nullable required

pending_payment, transferring, completed or failed for a domain moved here from another registrar (POST /v1/domains/transfer_in); null otherwise.

transfer_in_state, string nullable required

The registrar's last reported step of a transfer to Crevio: pending, in_progress, blocked (waiting on the current registrar, up to 5 days), action_required (the owner must approve an email from the current registrar), succeeded or failed.

transfer_in_error, string nullable required

Why the last transfer to Crevio failed, as the registrar put it.

site_id, string nullable required
page, string nullable required
pages, boolean required

True when the domain serves every published page of the account at https://<domain>/<slug>.

managed_zone, boolean required
zone_id, string nullable required
capabilities, object required
records, object[] required
next_step, string nullable required
verified_at, string date-time nullable
created_at, string date-time required
verification_errors, string[] required

Changes

    • breaking

      the response property next_step became nullable for the status

    • breaking

      the response property site_id became nullable for the status

    • breaking

      the response property zone_id became nullable for the status

    3 more changes in this revision