Skip to main content
AgentTV can POST a signed JSON event to your https URL when one of your videos changes. Use it to rebuild a page when its metadata changes, instead of waiting for a cache to expire.

Events

Create a webhook

The first call returns a preview and a 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 events to get all four.

The request

Each request carries an AgentCDN-Signature header:
v1 is the hex HMAC-SHA256 of <t>.<raw body>, keyed with your webhook secret.
Check the signature over the raw body, before you parse it. 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 id are the same on every attempt, so drop a repeat by id.
  • Answer with any 2xx to 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.