Skip to main content
POST
/
v2
/
projects
/
{project_id}
/
sessions
/
count
Count Sessions
curl --request POST \
  --url https://api.galileo.ai/v2/projects/{project_id}/sessions/count \
  --header 'Content-Type: application/json' \
  --header 'Galileo-API-Key: <api-key>' \
  --data '{
  "filters": [
    {
      "case_sensitive": true,
      "name": "input",
      "operator": "eq",
      "type": "text",
      "value": "example input"
    }
  ],
  "log_stream_id": "74aec44e-ec21-4c9f-a3e2-b2ab2b81b4db"
}'
{
  "total_count": 123
}

Authorizations

Galileo-API-Key
string
header
required

Path Parameters

project_id
string<uuid4>
required

Body

application/json
log_stream_id
string<uuid4> | null

Log stream id associated with the traces.

experiment_id
string<uuid4> | null

Experiment id associated with the traces.

metrics_testing_id
string<uuid4> | null

Metrics testing id associated with the traces.

filters
Filters · array
  • LogRecordsIDFilter
  • LogRecordsDateFilter
  • LogRecordsNumberFilter
  • LogRecordsBooleanFilter
  • LogRecordsTextFilter
filter_tree
object | null
  • FilterLeaf
  • AndNode
  • OrNode
  • NotNode

Response

Successful Response

total_count
integer
required

Total number of records matching the query

I