Skip to Content
Unmissed Cloud is coming soon.Join the waitlistJoin
Unmissed

Stream a source's webhooks

Get each webhook a source receives as it arrives.

GET
/api/v1/sources/{source}/stream

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:

  • ready comes first. Its data is the id the stream starts after, as text: after when you give it, otherwise the source's newest webhook, or 0 if it has none.
  • webhook is one webhook. Its id field is the webhook's id, and its data is a StreamedWebhook as JSON (see the schema below). Webhooks come oldest first, including ones Unmissed rejected or marked as duplicates.
  • ping comes 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.

Authorization

apiToken
headerAuthorizationBearer <unm_ followed by 40 letters and digits>

A token from the CLI page in Unmissed. Revoke it there to stop it working.

Path Parameters

source*integer

The source's id, from List sources.

Formatint64

Query Parameters

after?integer

Start 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.

Formatint64

Response Body

An endless stream of events.

response?stringtext/event-stream

Server-sent events named ready, webhook and ping.

Example Request
curl -X GET 'http://localhost:8080/api/v1/sources/0/stream' \
  -H 'Authorization: Bearer '
Example Responsetext/event-stream200
event: 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: