Agent SwarmAgent Swarm

Session Data

Session Data API endpoints

GET
/api/session-costs

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
Range1 <= value

Response Body

curl -X GET "http://localhost:3013/api/session-costs"
Empty
POST
/api/session-costs

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
GET
/api/session-costs/dashboard

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
GET
/api/session-costs/summary

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
POST
/api/session-logs

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
GET
/api/tasks/{taskId}/session-logs

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