Skip to content

Create webhook

POST/admin/v1/stores/{store_id}/webhooks
  • webhooks:manage
  • Idempotency-Key supported

Register a webhook endpoint. The response holds the signing secret — the only time it is shown.

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

  • urlstringrequired

    HTTPS endpoint on a public address.

  • topicsarray of stringsrequired

    1–50 entries from GET /webhooks/topics, or <aggregate>.*.

  • descriptionstring · or null

    Up to 255 characters, for your own reference.

  • sourcestring · or null

    Who's making it, if it's a no-code tool (zapier, make), so the admin can say so.

Returns

201 Webhook created, with its signing secret.

Errors

  • 403forbiddenMissing permission.
  • 409The store already has 50 webhooks.
  • 422validation_failedInvalid URL (not HTTPS, private address…) or topics.