Timeline
POST/api/v1/timeline/events
Authorization
bearer_token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request to create a single event
Response Body
application/json
curl -X POST "https://example.com/api/v1/timeline/events" \ -H "Content-Type: application/json" \ -d '{ "data": null, "stream": "string", "type": "string" }'{ "event_id": "string", "sequence": 0, "stream": "string", "timestamp": 0}GET/api/v1/timeline/events/aggregate
Authorization
bearer_token In: header
Query Parameters
Response Body
application/json
curl -X GET "https://example.com/api/v1/timeline/events/aggregate?stream=string&start=string&end=string&aggregation=string&field=string"{ "aggregation": "string", "field": "string", "groups": [ { "key": "string", "value": 0.1 } ], "result": 0.1}POST/api/v1/timeline/events/batch
Authorization
bearer_token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request to create multiple events
Response Body
application/json
curl -X POST "https://example.com/api/v1/timeline/events/batch" \ -H "Content-Type: application/json" \ -d '{ "events": [ { "data": null, "type": "string" } ], "stream": "string" }'{ "events": [ { "event_id": "string", "sequence": 0 } ], "stored": 0}GET/api/v1/timeline/events/count
Authorization
bearer_token In: header
Query Parameters
Response Body
application/json
curl -X GET "https://example.com/api/v1/timeline/events/count?stream=string&start=string&end=string&interval=string"{ "counts": [ { "count": 0, "end": "string", "start": "string", "timestamp": 0 } ], "interval": "string", "total": 0}GET/api/v1/timeline/events/latest
Authorization
bearer_token In: header
Query Parameters
0 <= valueResponse Body
application/json
curl -X GET "https://example.com/api/v1/timeline/events/latest?stream=string"[ { "data": null, "id": "string", "sequence": 0, "stream": "string", "tags": [ "string" ], "timestamp": 0, "type": "string" }]GET/api/v1/timeline/events/query
Authorization
bearer_token In: header
Query Parameters
0 <= valueResponse Body
application/json
curl -X GET "https://example.com/api/v1/timeline/events/query?stream=string"{ "events": [ { "data": null, "id": "string", "sequence": 0, "stream": "string", "tags": [ "string" ], "timestamp": 0, "type": "string" } ], "pagination": { "cursor": "string", "has_more": true, "total_in_range": 0 }, "time_range": { "end": 0, "start": 0 }}POST/api/v1/timeline/events/search
Authorization
bearer_token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Advanced search request
Response Body
application/json
curl -X POST "https://example.com/api/v1/timeline/events/search" \ -H "Content-Type: application/json" \ -d '{ "filters": [ { "field": "string", "operator": "equals", "value": null } ], "stream": "string", "time_range": { "end": 0, "start": 0 } }'{ "events": [ { "data": null, "id": "string", "sequence": 0, "stream": "string", "tags": [ "string" ], "timestamp": 0, "type": "string" } ], "pagination": { "cursor": "string", "has_more": true, "total_in_range": 0 }, "time_range": { "end": 0, "start": 0 }}GET/api/v1/timeline/streams
Authorization
bearer_token In: header
Query Parameters
Page number (1-based)
int640 <= valueNumber of streams per page
int640 <= valueResponse Body
application/json
curl -X GET "https://example.com/api/v1/timeline/streams"{ "pagination": { "has_more": true, "page": 0, "page_size": 0, "total": 0 }, "streams": [ { "event_count": 0, "name": "string", "newest_event": 0, "oldest_event": 0, "retention_days": 0, "size_bytes": 0, "tags": [ "string" ] } ]}POST/api/v1/timeline/streams
Authorization
bearer_token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Create stream request
Response Body
curl -X POST "https://example.com/api/v1/timeline/streams" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'DELETE/api/v1/timeline/streams/{name}
Authorization
bearer_token In: header
Path Parameters
Stream name to delete
Response Body
curl -X DELETE "https://example.com/api/v1/timeline/streams/string"GET/api/v1/timeline/streams/{name}/stats
Authorization
bearer_token In: header
Path Parameters
Stream name
Response Body
application/json
curl -X GET "https://example.com/api/v1/timeline/streams/string/stats"nullGET/api/v1/timeline/streams/{stream}/follow
After a successful upgrade the server pushes a [TimelineWebSocketMessage::Event]
for every event appended to the stream from the moment of subscription. The
client may send an unsubscribe control message or close the socket to stop.
Authorization
bearer_token In: header
Path Parameters
Stream name to follow
Query Parameters
JWT token (alternative to the Authorization header for browser clients)
Response Body
curl -X GET "https://example.com/api/v1/timeline/streams/string/follow"