Skip to main content
POST
Buy a domain

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Body

application/json

A domain purchase.

name
string
required
years
integer
required
Required range: 1 <= x <= 10
registrant
object
required

The registrant of a domain: the customer's own, accurate details.

accept_registration_agreement
boolean
required
use_as_ankra_domain
boolean

Make the domain the organisation's Ankra root domain once it is registered. Defaults to false.

Response

Created

The purchase a POST /api/v1/org/domains/purchase made.

purchase
object
required

A domain bought through Ankra. status, expires_at and auto_renew come from the registration and are null when it could not be read. root_status is not_requested, pending, adopted or failed; root_failure says why it failed.