Poll the status of a chat workflow
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer macaly_... |
| Parameter | Type | Description |
|---|---|---|
chatId | string | The chat ID returned from POST /api/chat |
| Field | Type | Description |
|---|---|---|
chatId | string | The chat ID |
url | string | URL to view the chat in browser |
status | string | Current workflow status (see below) |
result.content | string | Final assistant message (only when completed) |
error.message | string | Error description (only when failed) |
| Status | Description |
|---|---|
running | Workflow is currently executing |
completed | Finished successfully |
failed | Encountered an error |
cancelled | Workflow was manually cancelled |
no_active_workflow | No workflow found for this chat |
| Status | Description |
|---|---|
| 200 | Success |
| 401 | Invalid or missing API key |
| 403 | Chat does not belong to your team |
| 404 | Chat not found |
completed, you can:
POST /api/chat/{chatId}/deploy