Activity
Preview

List activity, newest first

GET
/activity
cookiebetter-auth.session_token<token>

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

limit?integer

Page size. Defaults to 50, at most 200.

Range1 <= value <= 200
Default50
cursor?string

Opaque cursor from a previous page's nextCursor.

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
q?string

Text to find in an entry's action, kind of thing, name or details, ignoring case. A search with no from looks back 90 days, so a search over a long history stays quick; give from to look further.

Length1 <= length <= 80

Response Body

A page of activity.

application/json
  1. response
items*array<>
nextCursor?string
Example Request
curl -X GET 'https://wardn.example.com/api/v1/activity'
Example Response
{  "items": [    {      "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"    }  ],  "nextCursor": "string"}