Search message anchors

Searches message content with keyword, semantic, or hybrid retrieval and returns anchors for opening trace context.

get/api/v1/data/search

Request

  • Base URL
    https://moda.dev
  • Auth
    API key in header x-api-key

Query parameters

qstring required

Message search query.

mode'keyword' | 'semantic' | 'hybrid'

Retrieval mode.

user_idstring

Limit results to one user.

time_range'all' | '1h' | '24h' | '3d' | '7d' | '30d' | '90d'
sincestring

Absolute start, inclusive: ISO 8601 date or datetime, UTC unless an offset is given. Intersects time_range.

untilstring

Absolute end, inclusive; a date-only value covers that whole UTC day. At most 366 days after since.

limitinteger

Maximum matches to return.

include_tool_io'true' | 'false'

true: always include tool-use and tool-result units (call arguments and results); false: never. Omitted: included when the query names a tool or tool output, or to fill a page that message hits under-fill (coverage.tool_io reports which).

Response

Successful response.

object required

Message search matches with trace/message anchors, snippets, scores, and optional tool I/O.

Changes

No recorded changes to this operation across all 1 revision of this API.