staqlydocs
REST APIAPI referenceEvents

Export the activity log as NDJSON or CSV, oldest first

Export the activity log as NDJSON or CSV, oldest first (events:read)

Every request sends Authorization: Bearer ...: the access token in local mode, an API key stk_... in cloud mode. Use Send to try it against your cloud instance with your API key.

GET
/v1/events/export

Streams every matching event (chunked; no page size). CSV columns: created_at,id,type,actor_type,actor_id,actor_name,collection_id,post_id,data where data is the event's JSON. CSV cells starting with =, +, -, @, tab or CR are prefixed with ' (spreadsheet formula injection).

Authorization

headerAuthorizationBearer <token>

API key (stk_...), or in the Community Edition the access token (stk_local_...)

Query Parameters

format?string
Default"ndjson"
Value in"ndjson""csv"
from?string

created_at >= (RFC3339 or YYYY-MM-DD)

to?string

created_at < (RFC3339 or YYYY-MM-DD)

type?string

Exact event type

type_prefix?string

Literal prefix, e.g. post.

actor_type?string
Value in"session""api_key""local""system"
actor_id?string
collection_id?string
post_id?string

Response Body

Event stream (attachment)

  1. response
id*string
seq*integer
type*string
collection_id*string|null
post_id*string|null
channel_id?|

Channel events

schedule_id?|

Schedule events

actor*
data*
created_at*string
curl -X GET 'https://staqly.example.com/v1/events/export'
{  "id": "string",  "seq": 0,  "type": "post.created",  "collection_id": "string",  "post_id": "string",  "channel_id": "string",  "schedule_id": "string",  "actor": {    "type": "local",    "id": "string",    "name": "string",    "agent": "string"  },  "data": {},  "created_at": "string"}