POST
/
v2
/
projects
/
{project_id}
/
traces
/
search
curl --request POST \
  --url https://api.acme.rungalileo.io/v2/projects/{project_id}/traces/search \
  --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": "00000000-0000-0000-0000-000000000000",
  "pagination": {
    "limit": 5,
    "starting_token": 0
  },
  "sort": {
    "ascending": false,
    "name": "updated_at",
    "sort_type": "column"
  }
}'
{
  "next_starting_token": 2,
  "num_rows": 2,
  "paginated": true,
  "records": [
    {
      "created_at": "2025-04-16T18:15:38.919525Z",
      "id": "1a0939d1-8b43-4fe3-a91c-196e2d9847e3",
      "input": "Who is a smart LLM?",
      "metrics": {
        "duration_ns": 4
      },
      "name": "",
      "output": "I am",
      "project_id": "0d4e3799-3861-4759-875f-9ae14c167b0a",
      "run_id": "74aec44e-ec21-4c9f-a3e2-b2ab2b81b4db",
      "tags": [],
      "trace_id": "1a0939d1-8b43-4fe3-a91c-196e2d9847e3",
      "type": "trace",
      "user_metadata": {}
    },
    {
      "created_at": "2025-04-16T18:15:38.919740Z",
      "id": "1edc2401-24b4-448c-a392-b36932293061",
      "input": [
        {
          "content": "Who is a smart LLM?",
          "role": "user"
        }
      ],
      "metrics": {
        "duration_ns": 4,
        "num_input_tokens": 4,
        "num_output_tokens": 2,
        "num_total_tokens": 6
      },
      "name": "",
      "output": {
        "content": "I am",
        "role": "user"
      },
      "parent_id": "1a0939d1-8b43-4fe3-a91c-196e2d9847e3",
      "project_id": "0d4e3799-3861-4759-875f-9ae14c167b0a",
      "run_id": "74aec44e-ec21-4c9f-a3e2-b2ab2b81b4db",
      "tags": [],
      "trace_id": "1a0939d1-8b43-4fe3-a91c-196e2d9847e3",
      "type": "llm",
      "user_metadata": {}
    }
  ]
}

Authorizations

Galileo-API-Key
string
header
required

Path Parameters

project_id
string
required

Body

application/json
starting_token
integer
default:0
limit
integer
default:100
log_stream_id
string | null

Log stream id associated with the traces.

experiment_id
string | null

Experiment id associated with the traces.

filters
object[]
sort
object

Response

200
application/json
Successful Response
num_records
integer
required

number of records

starting_token
integer
default:0
limit
integer
default:100
paginated
boolean
default:false
next_starting_token
integer | null
records
object[]

records matching the query