Skip to main content
GET
/
api
/
v1
/
reviews
/
{id}
/
wait
Long-poll for review response (max 30s)
curl --request GET \
  --url http://localhost:3001/api/v1/reviews/{id}/wait \
  --header 'x-api-key: <api-key>'
{
  "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"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.placet.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Placet API key (hp_...)

Path Parameters

id
string
required

Query Parameters

channel
string
required

Channel (agent) ID

timeout
string

Timeout in ms (default 30000, max 30000)

Response

Review completed or timeout

status
enum<string>
required
Available options:
completed,
timeout
Example:

"completed"

message
object