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

# Submit a new query for the specific agent and retrieve the agent's response for the given feed query

`POST /v1/agent/feed`

Submit a new query for the specific agent and retrieve the agent's response for the given feed query.

## 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

- UserQueryResponse
  - `conversation_details` ConversationDetails
    - `sys_id` string — Unique identifier for the document
    - `created_at` string, date-time — Timestamp when the document was created
    - `updated_at` string, date-time — Timestamp when the document was last updated
    - `chat_id` string — ID of the chat
    - `user_query` string — User query
    - `agent_response` AgentResponse
      - `response` BaseForAgentResponse[] — Response from the agent
        - `__type` string, required — Concrete type used for polymorphic deserialization (discriminator)
      - `status` 'failed' | 'in_progress' | 'success' — Status of the response
    - `rating` integer — Rating of the query
    - `is_interrupted` boolean — Indicates if the conversation was interrupted
    - `is_action_response` boolean — Indicates if the conversation was actionable
  - `suggested_prompts` string[] — List of suggested prompt based on the query

## 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)
