Developer Tools
Mux Webhooks
Video infrastructure API. Receive asset, track, upload and live stream lifecycle events, such as an asset becoming ready to play.
Connecting Mux to Hookbase
Create a source in Hookbase first — it gives you an ingest URL to paste into Mux. Then:
- 1In the Mux dashboard, choose the environment, open Settings → Webhooks and create a webhook with your Hookbase ingest URL
- 2Copy the webhook's signing secret into this Hookbase source
- 3Hookbase verifies Mux-Signature and its timestamp (5 minute window), deduplicates by the event id, and uses type as the event type
- 4Mux waits 5 seconds per attempt and retries for 24 hours
Signature verification
Set the source's provider to mux and paste the signing secret. Every request is checked before the event is stored, and anything that fails is rejected rather than quietly recorded.
- Algorithm
- HMAC-SHA256 of "{t}.{body}", hex-encoded, sent as "t=<unix seconds>,v1=<hex>"
- Header
- Mux-Signature
- Where to find the secret
- Each webhook endpoint has its own signing secret: Settings → Webhooks in the Mux dashboard, or signing_secret in the Webhooks API create response. Webhooks are per environment.
Mux event types
10 of the events people route most often. Hookbase accepts every event Mux sends, whether or not it is listed here.
video.asset.created
An asset was created
video.asset.ready
An asset is ready to play
video.asset.errored
An asset failed to process
video.asset.deleted
An asset was deleted
video.asset.track.created
A text or audio track was added to an asset
video.asset.track.ready
An asset's track is ready
video.upload.asset_created
A direct upload created an asset
video.live_stream.active
A live stream started broadcasting
video.live_stream.idle
A live stream stopped broadcasting
video.live_stream.updated
A live stream was updated
What a Mux webhook looks like
A video.asset.ready payload. Hookbase stores the raw body exactly as it arrived, so this is also what you get back on a replay.
{
"type": "video.asset.ready",
"object": {
"type": "asset",
"id": "0201p02fGKPE7MrbC269XRD7LpcHhrmbu0002"
},
"id": "3a56ac3d-33da-4366-855b-f592d898409d",
"environment": {
"name": "Demo pages",
"id": "j0863n"
},
"data": {
"status": "ready",
"id": "0201p02fGKPE7MrbC269XRD7LpcHhrmbu0002",
"duration": 153.361542
},
"created_at": "2018-02-15T01:04:45.000Z",
"accessor_source": null,
"accessor": null,
"request_id": null
}Start receiving Mux webhooks
Create a source, paste the URL into Mux, and watch the first event arrive. The free tier includes 1,000 events a month.
Get Started Free