---
title: "POST /api/agents/{agentId}/stream"
method: POST
path: "/api/agents/{agentId}/stream"
tags: ["agents"]
---

# POST /api/agents/{agentId}/stream

`POST /api/agents/{agentId}/stream`

Stream a response from an agent

## Path parameters

- `agentId` string, required

## Request body

- object
  - `messages` object[], required
  - `threadId` string
  - `resourceId` string — The resource ID for the conversation
  - `resourceid` string — The resource ID for the conversation (deprecated, use resourceId instead)
  - `output` object

## Response `200`

Streamed response

## Other responses

- `404` — Agent not found

---

[API](https://skmtc.net/mastra-ai/apis/mastra-api.md) · [All operations](https://skmtc.net/mastra-ai/apis/mastra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mastra-ai/mastra-api/versions/c1a4e2745194/schema)
