Domains

Start a domain purchase. Returns a Stripe checkout URL the account owner opens and pays in a browser. Domains are billed yearly and renew automatically. The domain registers only after payment clears, and failed registrations are refunded automatically. Requires an active paid Migma subscription (returns 409 otherwise) and an API key with domain:write permission.

post/v1/domains/purchase

Request

  • Base URL
    https://api.migma.ai
  • URL
    https://api.migma.ai/v1/domains/purchase
  • Auth
    API key in header Authorization

Request body

domainstring required

The domain to purchase, e.g. 'acme.com'

redirectUrlstring uri

Where to send the account owner after checkout completes

Response

Domain purchase started

successboolean required
errorstring nullable

Changes