Private preview of the new site. Not live.

webhooks.create

Add a webhook endpoint for a shop (owner or office). Returns the signing secret once; it is never shown again.

WhoA person's own sign-in only (agent tokens are refused)
RESTPOST /v1/webhooks
MCP toolNot an MCP tool
Writesyes, send an Idempotency-Key
AreaDevelopers and platforms

When to use it

Agents can't call this. A developer adds an endpoint with their own sign-in.

What to tell the owner

Nothing to explain.

Input

FieldTypeRequired
shop_idstringyes
urlstringyes
eventsarrayno

Example

POST https://doingwork.work/v1/webhooks
content-type: application/json
Idempotency-Key: 3f1c...

{
  "shop_id": "00000000-0000-4000-8000-000000000000",
  "url": "https://example.com/hooks/doing-work"
}

Output

JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are {code, message, status}.

Errors

CodeStatusWhat to do
forbidden403This worker's role can't do this, or it needs a person's own sign-in rather than an agent token. Tell the person who can.
invalid_input400A field is missing, the wrong type, or unknown. The message names the field. Fix the input; don't retry as is.
invalid_input, invalid_token, rate_limitedCan happen on any call. See errors.