---
title: "Stream Agent Message"
method: POST
path: "/agent/threads/{thread_id}/messages"
tags: ["agent"]
---

# Stream Agent Message

`POST /agent/threads/{thread_id}/messages`

## Request

- Base URL: `https://api.threadchain.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.threadchain.pro/agent/threads/{thread_id}/messages`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

## Path parameters

- `thread_id` string, required

## Request body

- AgentMessageRequest
  - `message` string, required
  - `page_context` PageContext
    - `route` string, required
    - `page_type` 'dashboard' | 'techpacks' | 'techpack_detail' | 'manufacturer' | 'size_guides' | 'wallet' | 'profile' | 'unknown'
    - `tech_pack_job_id` string, uuid, nullable
    - `tech_pack_section` string, nullable
    - `trigger` 'manual' | 'job_error' | 'repeated_validation' | 'operation_timeout', nullable
    - `attachments` string[]
    - `nudge_id` string, nullable
    - `automation_error` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/threadchain/apis/threadchain-backend.md) - [All operations](https://skmtc.dev/threadchain/apis/threadchain-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/threadchain/apis/threadchain-backend/revisions/8ee288a7e6bd?raw)
