---
title: "Submit a new query for the specified chat and retrieve the agent's response"
method: POST
path: "/v1/agent/query"
tags: ["AI Agent"]
---

# Submit a new query for the specified chat and retrieve the agent's response

`POST /v1/agent/query`

Submit a new query for the specified chat and retrieve the agent's response.

## Request body

- UserQueryRequest
  - `chat_id` string — ID of the chat
  - `agent_id` string — ID of the agent
  - `tenant_id` string — ID of the tenant
  - `query` string, required — User query

## Response `200`

Success

- string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.dev/corestack/apis/corestack-external-api.md) · [All operations](https://skmtc.dev/corestack/apis/corestack-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corestack/corestack-external-api/revisions/bf2cdf20826d/schema)
