Activity
Preview

Live updates for the active organization

Server-sent events. Each change recorded in Activity has an `id` (usable as `Last-Event-ID` to resume) and a JSON

GET
/events
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

Last-Event-ID?string

Response Body

An event stream.

text/event-stream
  1. response

Payload of one server-sent event. type names the change, for example role-binding.created. Payloads carry ids and small deltas; clients refetch what they need.

type*string
occurredAt*string
Formatdate-time
resource?
Example Request
curl -X GET 'https://wardn.example.com/api/v1/events'
Example Response
{  "type": "string",  "occurredAt": "2019-08-24T14:15:22Z",  "resource": {    "kind": "string",    "id": "string"  }}