Add domain
POST
/ admin/ v1/ stores/ {store_id}/ domains- settings:write
- Idempotency-Key supported
Connect a domain. It stays pending until the TXT record in verification_record is published; the platform checks periodically and on "verify".
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
hostnamestringrequiredA domain you control, e.g.
shop.example.com(nohttps://).
Returns
201 Domain added, pending verification.
Errors
- 409Already added, connected to another store, or 10 domains reached.
- 422
validation_failedNot a valid public domain name.