Skip to main content
GET
/
api
/
sessions
/
{session_id}
/
cost-breakdown
Get Session Cost Breakdown
curl --request GET \
  --url http://localhost:8000/api/sessions/{session_id}/cost-breakdown
{
  "session_id": "<string>",
  "total_cost": "<string>",
  "events": [
    {
      "id": "<string>",
      "session_id": "<string>",
      "user_id": "<string>",
      "provider": "<string>",
      "event_type": "stt_minutes",
      "quantity": "<string>",
      "unit_cost": "<string>",
      "total_cost": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "agent_id": "<string>"
    }
  ],
  "cost_by_type": {}
}

Path Parameters

session_id
string
required

Response

Successful Response

session_id
string
required
total_cost
string
required
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
events
UsageEventResponse · object[]
required
cost_by_type
Cost By Type · object
required