Create a webhook
To create a new webhook, you need to make an API call with the events you want to listen for and the URL that will be called when those events occur.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
"test_webhook"
"https://my-service.com/webhook"
The ID of the project
"aac12556-4d65-4d34-9fb6-d1f0985eb0a9"
stream.started
, stream.detection
, stream.idle
, recording.ready
, recording.started
, recording.waiting
, multistream.connected
, multistream.error
, multistream.disconnected
, playback.user.new
, playback.accessControl
, asset.created
, asset.updated
, asset.failed
, asset.ready
, asset.deleted
, task.spawned
, task.updated
, task.completed
, task.failed
["stream.started", "stream.idle"]
shared secret used to sign the webhook payload
"my-secret"
streamId of the stream on which the webhook is applied
"de7818e7-610a-4057-8f6f-b785dc1e6f88"
Response
"test_webhook"
"https://my-service.com/webhook"
"de7818e7-610a-4057-8f6f-b785dc1e6f88"
"webhook"
The ID of the project
"aac12556-4d65-4d34-9fb6-d1f0985eb0a9"
Timestamp (in milliseconds) at which stream object was created
1587667174725
stream.started
, stream.detection
, stream.idle
, recording.ready
, recording.started
, recording.waiting
, multistream.connected
, multistream.error
, multistream.disconnected
, playback.user.new
, playback.accessControl
, asset.created
, asset.updated
, asset.failed
, asset.ready
, asset.deleted
, task.spawned
, task.updated
, task.completed
, task.failed
["stream.started", "stream.idle"]
streamId of the stream on which the webhook is applied
"de7818e7-610a-4057-8f6f-b785dc1e6f88"
status of webhook
Was this page helpful?