---
title: "Query"
method: POST
path: "/api/assistant/query"
tags: ["assistant"]
---

# Query

`POST /api/assistant/query`

Process a user query against documents in a workspace.
Performs retrieval augmented generation with streaming response.

Requires active subscription (paid/trial/dev) if Stripe is configured.

## Headers

- `workspace-key` string

## Request body

- MessageInput
  - `content` string, required
  - `tools` object
  - `workspace_ext_id` string, required
  - `parent_message_ext_id` string, nullable
  - `config_ext_id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2025-10-28** `849d5e8732f6` — 3 info
  - added the new optional `header` request parameter `workspace-key`
  - added `trace` discriminator mapping keys to the `tools/additionalProperties/` request property
  - added `#/components/schemas/TraceTool` to the `tools/additionalProperties/` request property `oneOf` list
- **2025-10-06** `8d3e894e6c0b` — 6 breaking
  - added the new required request property `tools/additionalProperties/oneOf[subschema #1: ModelCitationTool]/tool_responses/additionalProperties/chunk_ids`
  - added the new required request property `tools/additionalProperties/oneOf[subschema #1: ModelCitationTool]/tool_responses/additionalProperties/offset_end`
  - added the new required request property `tools/additionalProperties/oneOf[subschema #1: ModelCitationTool]/tool_responses/additionalProperties/offset_start`
  - added the new required request property `tools/additionalProperties/oneOf[subschema #1: ModelCitationTool]/tool_responses/additionalProperties/statement`
  - …2 more
- **2025-08-21** `84efd317dcde` — 1 breaking
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
- **2025-08-19** `5287337ab0fe` — 1 info
  - added the new optional request property `config_ext_id`
- …earlier changes not shown

[Full history](https://skmtc.dev/arbicity/apis/arbi/changes/api/assistant/query/post.md)

---

[API](https://skmtc.dev/arbicity/apis/arbi.md) · [All operations](https://skmtc.dev/arbicity/apis/arbi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/arbicity/arbi/revisions/b9aa4615da16/schema)
