---
title: "Chat with agent"
method: POST
path: "/v1/agents/{agent_id}/chat"
tags: ["Agent Chat & Monitoring"]
---

# Chat with agent

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

Send a message to an agent and get a response. Requires credits. With `stream: false` (default), returns a JSON object. With `stream: true`, returns an SSE stream of events.

## Path parameters

- `agent_id` string, uuid, required

## Request body

- AgentChatRequest
  - `message` string, required — Message to send to the agent
  - `session_id` string — Omit to start a new session
  - `stream` boolean — Set to true for SSE streaming response

## Response `200`

Agent response (non-streaming)

- AgentChatResponse — Non-streaming response. For streaming, set stream: true to receive SSE events.
  - `content` string
  - `session_id` string

## Other responses

- `401` — Invalid or revoked API key
- `404` — Resource not found

---

[API](https://skmtc.net/gigabraingg/apis/gigabrain-api.md) · [All operations](https://skmtc.net/gigabraingg/apis/gigabrain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gigabraingg/gigabrain-api/revisions/bb4070b30d92/schema)
