Create Domain
Adds a domain to your account with the capabilities you want.
Pass registration to buy the domain through Whop; it’s the default when you pass no capability. Pay its amount_due at purchase_url, or pass registration.payment_method_id to charge a saved card. Whop then registers it, runs its DNS, and renews it every year while auto_renew is on.
Pass registration.auth_code to transfer in a domain you own at another registrar. The transfer starts once its amount_due is paid, or at once when amount_due is null. While registration.phase is transferring, its issues say what the transfer needs from you.
Pass verification to connect a domain you registered elsewhere: its issues list the TXT and routing records to publish. A subdomain of a domain this account bought through Whop takes subdomain by default, and Whop publishes its DNS records itself. Pass website with an app_id to serve that app on the domain.
To change a domain you already have, update it instead. Adding a domain this account deleted revives it under its original ID.
Authorizations
An account-scoped user token or a user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.
Headers
A unique key that makes this request safe to retry. See Idempotent requests.
255"d9105228-4a08-46b1-8b91-42fed586d383"
Body
Accept Apple Pay at checkout on the domain. It needs no other capability. Whop registers the domain with Apple: it stays pending until Apple answers, then turns ready, or action_required when Apple couldn't fetch the domain association file. Serve the file, then check the domain to register it again. Pass null to turn Apple Pay off: Whop removes the domain from Apple, and the domain stays, like releasing any other capability.
Send and receive email on the domain. It needs registration or subdomain, so only a domain bought through Whop, or a subdomain of one in the same account, can have it. Whop publishes the DNS records and stays pending until its email provider verifies them, then turns ready. Pass null to remove email.
Use a subdomain of a domain this account bought through Whop, such as shop.example.com under example.com. It's the default when you add such a subdomain without a capability. Whop publishes its DNS records in the root domain's zone, so it needs nothing from you: it stays pending until the root domain is set up, then turns ready. Whop releases it, and its website, when the account no longer holds the root domain, and deletes it when the root domain leaves the account. Pass null to release it. Can't be combined with verification or registration.
Move a domain registered through Whop to another Whop account. Turning it on returns a code in transfer.code; the receiving account enters it as registration.auth_code on its own copy of the domain. Whop then removes the domain's email, email addresses and Apple Pay from this account, moves the registration with its expiry, stops charging this account to renew it, and removes the domain from this account. Pass null to turn it off and invalidate the code, until another account has entered it.
Response
Domain created

