Events
Create a webhook
confirm_token. Send it again with confirm_token to create the webhook. The confirmed answer holds the signing secret. It shows once: store it in your secret manager.
- The URL must be public https. Private, loopback and local addresses are refused.
- An account can have up to 10 webhooks.
- Leave out
eventsto get all four.
The request
AgentCDN-Signature header:
v1 is the hex HMAC-SHA256 of <t>.<raw body>, keyed with your webhook secret.
data names the video by its AgentCDN video_id. Each page block holds both ids, so save the pair when you render the page. Then fetch the page block again by your own id.
Delivery
- Each event is delivered at least once, within about 30 seconds.
- A failed POST is retried with backoff, for up to 12 attempts over about 20 hours. The body and its
idare the same on every attempt, so drop a repeat byid. - Answer with any
2xxto accept an event. - A webhook that fails 10 delivery rounds in a row is turned off. Create it again once your endpoint is back.
Manage webhooks
GET /v1/webhooks lists them, without secrets. DELETE /v1/webhooks/{webhook_id} removes one. The account MCP has the same tools.