cURL
curl --request GET \ --url https://api.example.com/api/v1/reviews/{id}/wait \ --header 'Authorization: Bearer <token>'
{ "status": "completed", "message": { "id": "clxyz111", "channelId": "clxyz456", "senderType": "agent", "senderId": "clxyz456", "createdAt": "2025-01-01T00:00:00.000Z", "attachments": [ { "id": "clxyz789", "messageId": "clxyz123", "pluginType": "file", "filename": "report.pdf", "mimeType": "application/pdf", "size": 1024, "storageKey": "uploads/clxyz123/report.pdf", "createdAt": "2025-01-01T00:00:00.000Z" } ], "text": "Hello from agent", "status": "info", "review": { "type": "approval", "status": "pending" }, "metadata": { "source": "automation" } } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Channel (agent) ID
Timeout in ms (default 30000, max 30000)
Review completed or timeout
completed
timeout
"completed"
Show child attributes