POST
/
webhook
Authorization
curl --request POST \
  --url https://livepeer.studio/api/webhook \
  --header 'Authorization: <authorization>'
{
  "createdAt": 1587667174725,
  "events": [
    "stream.started",
    "recording.ready"
  ],
  "id": "de7818e7-610a-4057-8f6f-b785dc1e6f88",
  "name": "My webhook",
  "status": {
    "lastFailure": {
      "error": "Error message",
      "response": "Response body",
      "statusCode": 500,
      "timestamp": 1587667174725
    },
    "lastTriggeredAt": 1587667174725
  },
  "streamId": "de7818e7-610a-4057-8f6f-b785dc1e6f88",
  "url": "https://webhook.example.com"
}

Authorizations

Authorization
string
headerrequired

Bearer api-key

Response

200 - application/json
createdAt
number

Timestamp (in milliseconds) at which stream object was created

events
enum<string>[]
Available options:
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
id
string
name
string
required
status
object

status of webhook

streamId
string

streamId of the stream on which the webhook is applied

url
string
required