---
title: "Chat with agent"
method: POST
path: "/v1/agents/{id}/chat"
tags: ["Agents"]
---

# Chat with agent

`POST /v1/agents/{id}/chat`

## Request

- Base URL: `https://api.marketintell.ai`
- URL: `https://api.marketintell.ai/v1/agents/{id}/chat`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Send a message to a specific agent and get its response. The message is threaded through the agent's memory (when `memory_enabled`). Use this for interactive control, debugging, or human-in-the-loop steering of an otherwise autonomous agent.

## Path parameters

- `id` string, required

## Request body

- object
  - `message` string, required

## Response `200`

Agent response

- object
  - `id` string, required: Agent id
  - `response` string, required: Markdown body of the agent's reply
  - `latency_ms` integer
  - `tools_used` string[]

## Other responses

- `400`: Missing message

---

[API](https://skmtc.dev/marketintell/apis/marketintell-api.md) · [All operations](https://skmtc.dev/marketintell/apis/marketintell-api/llms.txt) · [OpenAPI document](https://skmtc.dev/marketintell/apis/marketintell-api/revisions/f3ef87afc41f?raw)
