Skip to main content
POST
Genai Search

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Full-text search across message content and span metadata.

Scans the messages table (one row per message occurrence, populated by an MV from spans) and returns matching span-level hits. The caller groups by conversation for the response shape.

project_id
string
required
query
string
required
roles
enum<string>[] | null
Available options:
,
user,
assistant,
system,
tool,
tool_call,
tool_result
conversation_id
string | null
agent_name
string | null
provider_name
string | null
request_model
string | null
started_after
string<date-time> | null
started_before
string<date-time> | null
limit
integer
default:20
Required range: 0 <= x <= 1000
offset
integer
default:0
Required range: x >= 0

Response

Successful Response

Response from a full-text search across agent messages.

results
AgentSearchConversationResult · object[]
required
total_conversations
integer
default:0