---
title: "POST /v1/contract/chat/stream"
method: POST
path: "/v1/contract/chat/stream"
---

# POST /v1/contract/chat/stream

`POST /v1/contract/chat/stream`

Stream AI chat for smart contract development via SSE

## Request body

- union
  - object
  - ContractChatParams
    - `action` 'approve_plan' | 'reject_plan' — Optional explicit action
    - `contractId` string — ContractID is the primary identifier (optional for first message - backend creates project)
    - `message` string

## Response `200`

SSE stream with contract events

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/b3-fun/apis/b3os-workflow-api.md) · [All operations](https://skmtc.net/b3-fun/apis/b3os-workflow-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/b3-fun/b3os-workflow-api/versions/5a750a5a9596/schema)
