Copilot Sessions
List copilot sessions and inspect a session’s transcript and live plan.
Copilot conversations are grouped into sessions. Each ask_copilot call
belongs to a session (new or continued via sessionId) and accumulates a
message transcript plus a live todo plan. These read endpoints let you list and
inspect them. All are scoped to the API-key owner.
List sessions
/api/v1/copilot/sessionslimitintegerOptional20Max sessions to return (1–50), newest first.
Response Example
Get a session
/api/v1/copilot/sessions/{id}Returns the session metadata, its message transcript, and the current plan. Returns 404 if the session does not exist or belongs to another user.
data.sessionobjectSession metadata (id, title, status, estimatedCostUsd, timestamps).
data.messagesarrayThe transcript, oldest first — each item has role, content, and createdAt.
data.todosarrayThe live plan — position, text, status.
Get the live plan
/api/v1/copilot/sessions/{id}/todosA focused view of just the ordered todo/plan items for a session — handy for polling the plan as it progresses. Returns 404 if the session is not owned by the key.