Session Data
Session Data API endpoints
Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
agentId?string
taskId?string
startDate?string
endDate?string
limit?integer
Range
1 <= valueResponse Body
curl -X GET "http://localhost:3013/api/session-costs"Empty
Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "http://localhost:3013/api/session-costs" \ -H "Content-Type: application/json" \ -d '{ "sessionId": "string", "agentId": "string", "totalCostUsd": 0 }'Empty
Empty
Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Response Body
curl -X GET "http://localhost:3013/api/session-costs/dashboard"Empty
Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
groupBy?string
Value in
"day" | "agent" | "both"startDate?string
endDate?string
agentId?string
Response Body
curl -X GET "http://localhost:3013/api/session-costs/summary"Empty
Empty
Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "http://localhost:3013/api/session-logs" \ -H "Content-Type: application/json" \ -d '{ "sessionId": "string", "iteration": 1, "lines": [ "string" ] }'Empty
Empty
Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
taskId*string
Response Body
curl -X GET "http://localhost:3013/api/tasks/string/session-logs"Empty
Empty