Activity
Preview

Stream activity as JSON lines

Bounded to 730 days, 100,000 rows or 64 MiB, whichever comes first.

GET
/activity/export
cookiebetter-auth.session_token<token>

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

resourceType?array<string>

Resource types to include, repeated or comma-separated.

action?string
userId?string
from?string
Formatdate-time
to?string

Exclusive upper bound.

Formatdate-time

Response Body

One activity entry per line.

application/x-ndjson
  1. response
id*string
Formatuuid
userId?|

Better Auth user id. Null for system actions.

action*string
resourceType*string
resourceName*string
details?|null
summary?string

One-line description rendered by the server.

detail?string

A longer sentence for the highlighted card, when the summary is not enough.

timestamp*string
Formatdate-time
chainHash?string

Hex hash linking this entry to the previous one in the organization's chain.

Example Request
curl -X GET 'https://wardn.example.com/api/v1/activity/export'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "userId": "string",  "action": "deployment.sync",  "resourceType": "deployment",  "resourceName": "string",  "details": {},  "summary": "string",  "detail": "string",  "timestamp": "2019-08-24T14:15:22Z",  "chainHash": "string"}