Webhooks
Receive real-time events when transcripts and outputs complete.
Webhooks push completion events to your server so you don't have to poll. Subscribe an endpoint to an event, and Castmagic will POST a signed JSON payload each time that event fires.
Events
transcript.completed
A recording's transcript finishes
output.completed
A generated output finishes
One event per webhook — to subscribe to several events, create one webhook per event.
Create a webhook
POST https://app.castmagic.io/v1/webhooks
Request Body
url*
String
Public https URL to deliver to
event*
String
transcript.completed or output.completed
{
"webhook": {
"id": "wh1...",
"url": "https://example.com/hooks/castmagic",
"event": "transcript.completed",
"created_at": "2026-08-21T22:00:00Z",
"secret": "whsec_..."
}
}{ "error": "url must resolve to a public address" }List webhooks
GET https://app.castmagic.io/v1/webhooks
Delete a webhook
DELETE https://app.castmagic.io/v1/webhooks/:id
Delivery payload
Events are delivered as a JSON POST to your URL:
output.completed carries a different data shape:
Deliveries fan out to every space member's subscribed webhooks.
Deduplication & retries
The top-level id identifies the delivery and stays the same across retries — deduplicate on it. The retry attempt number is in the x-castmagic-attempt header.
Non-2xx responses are retried up to 5 times with backoff.
Verifying signatures
Every delivery carries an x-castmagic-signature header: sha256= followed by the hex HMAC-SHA256 of the raw request body, keyed with your webhook secret. Compute the same value and compare before trusting the payload.
Last updated