Skip to main content
The events feed (GET /events) lists every event your organization had in the last 30 days, oldest first and in the order Brussle recorded them, so a receiver that missed events (a change to an answer, for example) can catch up. An event records something that happened: a document entered a subscription, a job finished, or judging paused at a budget. Webhooks push each event to your endpoints, and the feed reads the same log. Use the feed when:
  • Your receiver cannot accept requests from outside (a batch job, or a service behind a firewall). A subscription with no endpoint sends its events only to the feed.
  • Your receiver was down. You read the feed from the last event you handled, without waiting for retries.
  • You want the events in order. Webhooks can arrive out of order, and the feed cannot.
iterate follows next_cursor until a page is empty. To get the events that arrived since then, run it again later from the last event you handled.

Page through the feed

  • Order. Events come in the order Brussle recorded them for your organization. An event is never visible before one that Brussle recorded earlier, so a poller that continues from its cursor misses nothing.
  • next_cursor is on each page, an empty page included, so a poller continues exactly where it stopped. Without a cursor, the feed starts at the oldest event it keeps.
  • An event’s id is also a cursor. You can continue after the last event you handled from any source (a webhook’s webhook-id works as a cursor, for example).
  • limit is 1 to 1,000 events in each page, and the default is 100.
  • Expired cursors. A cursor or an event older than 30 days has expired and fails with invalid_request and details.reason: "cursor_expired". To recover:
    1. Read the current state again (for a subscription, with the subscription’s query).
    2. Start again without a cursor.
  • Unknown ids. A newer event id that your organization never had fails with invalid_request and no reason. A typing error or an id from a different environment can cause it. You lost nothing, so check the id and do not start again.

Filter the feed

  • types takes event types and patterns, separated by commas (subscription.*,job.completed).
  • namespace_prefix keeps the events of namespaces whose names start with it (acme/prod/, for example).
  • Your key’s scope always applies, so a key scoped to a prefix or a namespace reads only the events of the namespaces inside its scope.
  • Test sends are never in the feed. A test send goes only to the endpoint you tested and to its delivery log.
A filter never slows the cursor. Each page reads past the events the filter leaves out, so next_cursor still moves forward on every page, even with a narrow filter.

Read one event and its deliveries

GET /events/{id} returns an event with its deliveries to the endpoints your key can see, and shows for each delivery:
  • the status
  • the attempts
  • the status code, latency and error of the last attempt
POST /events/{id}/redeliver with an endpoint sends the event again, with the same webhook-id (see retries).

Event types

Brussle can add new types, so ignore the types you do not know. The API reference gives the payload of each type, and the SDKs type each event by its type (see SDKs). The dashboard’s Events page shows the feed, filtered by type and by namespace prefix if you like, and opens the JSON of each event and its deliveries.