Subscribe to an active chat stream for real-time AI responses
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer macaly_... |
| Parameter | Type | Description |
|---|---|---|
chatId | string | The chat ID returned from POST /api/chat |
| Prefix | Description |
|---|---|
0: | Text content |
2: | Data objects (like { chatId }) |
8: | Annotations and metadata |
| Status | Description |
|---|---|
| 200 | Success (streaming response) |
| 204 | No active stream (workflow completed or not started) |
| 401 | Invalid or missing API key |
| 403 | Chat does not belong to your team |
| 404 | Chat not found |
| 429 | Rate limited |
204 No Content response