---
title: "Calls Query Stream"
method: POST
path: "/calls/stream_query"
tags: ["Calls"]
---

# Calls Query Stream

`POST /calls/stream_query`

## Headers

- `accept` string

## Request body

- CallsQueryReq
  - `project_id` string, required
  - `filter` CallsFilter
    - `op_names` string[], nullable
    - `input_refs` string[], nullable
    - `output_refs` string[], nullable
    - `parent_ids` string[], nullable
    - `trace_ids` string[], nullable
    - `call_ids` string[], nullable
    - `thread_ids` string[], nullable
    - `turn_ids` string[], nullable
    - `trace_roots_only` boolean, nullable
    - `wb_user_ids` string[], nullable
    - `wb_run_ids` string[], nullable
  - `limit` integer, nullable
  - `offset` integer, nullable
  - `sort_by` SortBy[], nullable
    - `field` string, required
    - `direction` 'asc' | 'desc', required
  - `query` Query
    - `$expr` union, required
      - AndOperation — Logical AND. All conditions must evaluate to true. Example:
        - `$and` union[], required
          - union
            - unknown
            - unknown
            - unknown
            - AndOperation — recursive
            - unknown
            - unknown
            - unknown
            - unknown
            - unknown
            - unknown
            - unknown
            - unknown
            - unknown
      - unknown
      - unknown
      - unknown
      - unknown
      - unknown
      - unknown
      - unknown
      - unknown
      - unknown
  - `include_costs` boolean, nullable — Beta, subject to change. If true, the response will include any model costs for each call.
  - `include_feedback` boolean, nullable — Beta, subject to change. If true, the response will include feedback for each call.
  - `include_storage_size` boolean, nullable — Beta, subject to change. If true, the response will include the storage size for a call.
  - `include_total_storage_size` boolean, nullable — Beta, subject to change. If true, the response will include the total storage size for a trace.
  - `include_usernames` boolean, nullable — If true, the response will attempt to resolve each call's wb_user_id to a username for the duration of this request.
  - `columns` string[], nullable
  - `expand_columns` string[], nullable — Columns to expand, i.e. refs to other objects
  - `return_expanded_column_values` boolean, nullable — If true, the response will include raw values for expanded columns. If false, the response expand_columns will only be used for filtering and ordering. This is useful for clients that want to resolve refs themselves, e.g. for performance reasons.

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/wandb/apis/serverless-training.md) · [All operations](https://skmtc.net/wandb/apis/serverless-training/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wandb/serverless-training/revisions/8d8d96fc0fd3/schema)
