Follow the Tenant's runs
Server-sent events, one event: run per run of any Agent's triggers, with its cursor as id, from the cursor on (?cursor= or Last-Event-ID; none reads from the oldest run the stream keeps, 7 days). The data is {cursor, run}: the run as the Agent's runs list it, with its Agent and its trigger's origin and title. A run may arrive twice: drop a runId you have seen. A cursor from before the Tenant's reset is refused (cursor_expired): read again without one. A : keepalive comment every 15 seconds.
applicationKeyAuthorizationBearer <token>An application key of the Tenant (PUT /v1/tenant/keys/{keyId}), or Studio's key, derived from the admin key. With Nylorun-Subject and Nylorun-Scopes, it acts for that person, narrowed to those scopes. Never accepted from a browser (Origin).
cursor?stringThe cursor of the last run read: the stream goes on after it
Nylorun-Protocol*stringThe protocol version, 18
The runs
text/event-streamcurl -X GET "https://example.com/v1/runs/stream" \ -H "Nylorun-Protocol: string"List an Agent's runs GET
Each time one of its triggers fired or was run by hand, newest first: when it was due, whether it was late, and what came of it (`started`, `queued`, `skipped` or `failed`, with a reason), with the session and turn.
Make a webhook trigger's signing secret POST
A new Standard Webhooks secret (`whsec_…`) for a webhook trigger, shown this once; the one before stops working at once. Give it to the sender with the trigger's `webhookUrl`.