Skip to main content

Threads Query Stream

POST 

/threads/stream_query

Threads Query Stream

Request

Body

required

    project_id Project Id (string)required

    The ID of the project

    filter

    object

    Filter criteria for the threads query

    anyOf

    after_datetime

    object

    Only include threads with start_time after this timestamp

    anyOf

    string

    before_datetime

    object

    Only include threads with last_updated before this timestamp

    anyOf

    string

    thread_ids

    object

    Only include threads with thread_ids in this list

    anyOf

  • Array [

  • string

  • ]

  • limit

    object

    Maximum number of threads to return

    anyOf

    integer

    offset

    object

    Number of threads to skip

    anyOf

    integer

    sort_by

    object

    Sorting criteria for the threads. Supported fields: 'thread_id', 'turn_count', 'start_time', 'last_updated', 'p50_turn_duration_ms', 'p99_turn_duration_ms'.

    anyOf

  • Array [

  • field Field (string)required
    direction Direction (string)required

    Possible values: [asc, desc]

  • ]

Responses

Successful Response

Schema

    any

Loading...