Get Status
Endpoints
Get Status
Poll the status of a chat workflow
GET
Get Status
Poll the status of a chat workflow. Useful for checking if a chat has finished processing without needing to maintain a streaming connection.Documentation Index
Fetch the complete documentation index at: https://www.macaly.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Request
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer macaly_... |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
chatId | string | The chat ID returned from POST /api/chat |
Example Request
Response
Response Fields
| 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 Values
| 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 Codes
| Status | Description |
|---|---|
| 200 | Success |
| 401 | Invalid or missing API key |
| 403 | Chat does not belong to your team |
| 404 | Chat not found |
Polling Pattern
Next Steps
Once status iscompleted, you can:
- Deploy the app using
POST /api/chat/{chatId}/deploy