Stream a source's webhooks
Get each webhook a source receives as it arrives.
Sends each webhook the source receives as it arrives, as
server-sent events.
unmissed listen uses it to send live webhooks to the app on your laptop. The source's
other destinations still get theirs.
The stream sends each webhook as it was received, with every header and the whole body, so your app can check its signature. To read a webhook, use Show a webhook, which hides credentials and keeps the body short.
The stream has three kinds of event:
readycomes first. Its data is the id the stream starts after, as text:afterwhen you give it, otherwise the source's newest webhook, or0if it has none.webhookis one webhook. Itsidfield is the webhook's id, and its data is aStreamedWebhookas JSON (see the schema below). Webhooks come oldest first, including ones Unmissed rejected or marked as duplicates.pingcomes about every 15 seconds, so a client can tell a quiet source from a dead connection. Ignore its data, which is a single line break.
The server may also send comment lines (starting with :) to keep the connection open.
The stream never sends a final event. The server closes it when the token is revoked or its owner becomes a viewer, when the server restarts or when something goes wrong, so treat any close as a dropped connection and reconnect. Either is noticed within about 15 seconds.
To pick up after a dropped connection, pass the highest webhook id you've received as
after, or the ready id if you haven't received any. The stream then first sends the
source's webhooks from the last 30 seconds again, up to and including after, since one
can be saved after a webhook with a higher id. Skip the ones you already have. A webhook
can also arrive out of id order for the same reason, so keep the highest id, not the
latest.
apiTokenAuthorizationBearer <unm_ followed by 40 letters and digits>A token from the CLI page in Unmissed. Revoke it there to stop it working.
source*integerThe source's id, from List sources.
int64after?integerStart after this webhook id, to pick up where a dropped stream left off. Without it,
or if it isn't a whole number, the stream starts with the next new webhook. 0 sends
everything the source still has.
int64An endless stream of events.
response?stringtext/event-streamServer-sent events named ready, webhook and ping.
curl -X GET 'http://localhost:8080/api/v1/sources/0/stream' \
-H 'Authorization: Bearer 'text/event-stream200event: ready
data: 41
event: webhook
data: {"id":42,"method":"POST","headers":[["content-type","application/json"],["stripe-signature","t=1764936000,v1=5257a8..."]],"body":"eyJpZCI6ImV2XzEifQ==","rejection":null,"duplicate_of":null,"created_at":"2026-12-05T12:00:00Z"}
id: 42
event: ping
data:
data: