POST
/
v2
/
projects
/
{project_id}
/
log_streams
/
{log_stream_id}
/
logstream_insights
/
token_usage
Get Logstream Insights Token Usages
curl --request POST \
  --url https://api.galileo.ai/v2/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/token_usage \
  --header 'Content-Type: application/json' \
  --header 'Galileo-API-Key: <api-key>' \
  --data '{
  "starting_token": 0,
  "limit": 100,
  "filters": [],
  "sort": {
    "name": "created_at",
    "ascending": false,
    "sort_type": "column"
  }
}'
{
  "starting_token": 0,
  "limit": 100,
  "paginated": false,
  "next_starting_token": 123,
  "token_usages": [
    {
      "id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "project_id": "<string>",
      "log_stream_id": "<string>",
      "token_usage": {
        "input_tokens": 0,
        "output_tokens": 0
      }
    }
  ]
}

Authorizations

Galileo-API-Key
string
header
required

Path Parameters

project_id
string
required
log_stream_id
string
required

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.