SessionSession_idEvents
Get events for session
Get events for a session with cursor-based pagination.
Authorization
BearerAuth Authorization<token>
Project Bearer token (e.g., "Bearer sk-ac-xxxx")
In: header
Path Parameters
session_id*string
Session ID
Format
uuidQuery Parameters
limit?integer
Limit of events to return, default 50. Max 200.
cursor?string
Cursor for pagination.
time_desc?boolean
Order by created_at descending if true, ascending if false (default false)
Response Body
application/json
curl -X GET "https://loading/api/v1/session/497f6eca-6276-4993-bfeb-53cbbbba6f08/events"{
"code": 0,
"error": "string",
"msg": "string",
"data": {
"has_more": true,
"items": [
{
"created_at": "string",
"data": {},
"id": "string",
"project_id": "string",
"session_id": "string",
"type": "string",
"updated_at": "string"
}
],
"next_cursor": "string"
}
}Copy session POST
Create a complete copy of a session with all its messages and tasks. The copied session will be independent and can be modified without affecting the original.
Add event to session POST
Add a structured event to a session. Events are stored alongside messages and can be retrieved chronologically.