---
title: "ReAct Agent Streaming"
method: POST
path: "/api/react"
tags: ["Chat"]
---

# ReAct Agent Streaming

`POST /api/react`

Stream a conversation through a ReAct agent. Returns Server-Sent Events with reasoning steps, tool calls, and final answer.

## Request body

- ChatStreamRequest
  - `q` string, required — The user query or message
  - `conversation_id` string, nullable — Attach to an existing conversation (optional)
  - `agent_id` string, nullable — Bind to a specific agent (optional)
  - `token` string, nullable — API key (fim_xxx) or JWT token for SSE (optional, alternative to Authorization header)
  - `image_ids` string, nullable — Comma-separated image IDs to attach (optional)
  - `user_metadata` string, nullable — JSON string of custom metadata (optional)

## Response `200`

Server-Sent Events stream

## Other responses

- `401` — Unauthorized (invalid or missing token)
- `404` — Conversation or agent not found

---

[API](https://skmtc.dev/fim-ai/apis/fim-one-api.md) · [All operations](https://skmtc.dev/fim-ai/apis/fim-one-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fim-ai/fim-one-api/revisions/6832c00d58dc/schema)
