Webhooks
Signed POSTs to your URL when a post is published, fails, or its first comment settles: register, verify with Standard Webhooks, retries and the delivery log.
Register an https URL and ShapelessAI POSTs to it when one of the account's posts settles. No polling, and every request is signed so your server knows it came from us.
Register
Needs write. events defaults to all four. Keep the secret: it verifies every request. At
most 10 endpoints per account; the URL must be https on a public address (a private, loopback or
cloud-metadata address is refused, on every redirect too).
| Event | When |
|---|---|
post.published | A post went live (or you marked it posted). data.post.publishedLocation is its URL. |
post.failed | A post will not go out without a person: out of retries, refused by the platform, or by a plan limit. data.post.error says why. A transient failure we retry sends nothing. |
post.comment | One item of the post's comment chain settled (the first comment is index 0): data.comment is {index, status: sent|failed|skipped, url, error}. |
post.plug | One of the post's plugs settled: data.plug is {id, action, status: fired|failed|expired, url, error}. |
The request
It follows Standard Webhooks: the signature is HMAC-SHA256
over <webhook-id>.<webhook-timestamp>.<raw body> with the base64-decoded part of the secret after
whsec_. Any of their libraries verifies it in one call:
Verify against the raw body (re-serialized JSON will not match) and reject a timestamp far from now.
Retries and the log
Events go out seconds after they happen, through a task of their own: a slow or dead URL never holds a post, a comment chain or a plug. Answer any 2xx within 5 seconds. Anything else is retried 5 minutes, 30 minutes, 2, 5, 10, 14, 20
and 24 hours later, then marked failed. GET /api/webhooks/{id} is the delivery log (newest 50:
event, status, attempts, last answer, the body sent); POST /api/webhooks/{id}/deliveries/{deliveryId} sends one again now, with the same webhook-id.
POST /api/webhooks/{id}/test sends one signed webhook.test event and answers what your URL
said. PATCH /api/webhooks/{id} takes url, events, description, disabled, and
rotateSecret: true (a new secret; the old one stops verifying at once). DELETE removes it and
drops whatever was still owed.
From an agent: webhooks_save (MCP), shapeless webhooks create <url> (CLI).
