API referenceWebhooks
Create a webhook
POST
Add a webhook. The answer has the signing secret, shown once (and again to a repeat of its Idempotency-Key). Needs a key that can edit. Send an Idempotency-Key to make a retry safe: a repeat within 24 hours gets the first answer back instead of running again.
storeKeyheader
AuthorizationBearer <vtk_...>A store API and MCP key
storeId*stringThe store id
Idempotency-Key?stringMakes a retry safe: the first call with this key runs, and a repeat within 24 hours (same path and body) gets the same answer back without running again. Per store. A call that failed keeps nothing, so its repeat runs again. The same key with another path or body is refused with 422.
Match
^[!-~]+$Length
1 <= length <= 255application/json- body
url*stringhttps, reaching a public address. Up to 2000 characters
events*array<>description?stringCreated
application/json- response
data*curl -X POST 'https://starsell.app/api/v1/stores/string/webhooks' \ -H 'Content-Type: application/json' \ -d '{ "url": "string", "events": [ "*" ]}'Example Response
{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "url": "string", "events": [ "string" ], "description": "string", "active": true, "failing_since": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "secret": "string" }}