Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • hostnamestringrequired

    A domain you control, e.g. shop.example.com (no https://).

Returns

201 Domain added, pending verification.

Errors

  • 409Already added, connected to another store, or 10 domains reached.
  • 422validation_failedNot a valid public domain name.