Replies
List Reply Drafts
Reply drafts in the workspace, newest first (e.g. `?status=pending` for the review queue). Includes post-call recap emails (`kind=call_recap`, RO-206) and new emails drafted by an assistant (`kind=compose`, RO-300): sent the same way once approved.
API key access
Needs the
replies:read scope with an API key (ro_pat_...). A signed-in session uses the caller's role.GET
/api/v1/reply-draftsAuthorizationBearer <token>
Access token from /api/v1/auth/login, or an API key (ro_pat_..., RO-176) from /api/v1/workspaces/current/api-keys: the key implies its workspace and needs the route's scope. MCP connectors (/api/v1/mcp only) may use an OAuth access token (ro_oat_..., RO-284).
In: header
Query Parameters
status?Status
Repeat to match any of
lead_id?Lead Id
kind?Kind
Repeat to match any of (call_recap: post-call recap emails; compose: new emails drafted by an assistant)
cursor?Cursor
limit?Limit
Default
50Range
1 <= value <= 200Header Parameters
X-Workspace-Id?X-Workspace-Id
Id of the workspace to act on (must be a member).
Response Body
curl -X GET "http://localhost:8000/api/v1/reply-drafts?status=pending&lead_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&kind=reply&cursor=string&limit=50" \ -H "X-Workspace-Id: string"{
"items": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"lead_id": "9bddab70-98e6-43a9-8f32-c9788b9de0c0",
"classification_id": "47ac1861-59ea-4c4a-93ac-eecdeb4d654d",
"mailbox_id": "4d23d1af-2eef-4598-a5e0-1f19ae0b0c14",
"kind": "reply",
"call_id": "0d0a16ab-a508-4d58-bf24-5dc3cb248f3e",
"category": "interested",
"status": "pending",
"subject": "string",
"body": "string",
"edited_body": "string",
"final_body": "string",
"sources": [
{
"id": "string",
"chunk_id": "string",
"document_id": "string",
"title": "string",
"source_url": "string",
"score": 0,
"used": false
}
],
"prompt_id": "string",
"model": "string",
"reviewed_by_id": "855af0f3-1bf5-496a-8d36-7729a807a554",
"reviewed_at": "2019-08-24T14:15:22Z",
"reject_reason": "string",
"sent_at": "2019-08-24T14:15:22Z",
"sent_message_id": "10e758d6-1ff1-42da-b026-45795a3d5469",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"lead": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"email": "string",
"company_name": "string"
},
"inbound": {
"classification_id": "47ac1861-59ea-4c4a-93ac-eecdeb4d654d",
"category": "interested",
"summary": "string",
"received_at": "2019-08-24T14:15:22Z",
"subject": "string",
"snippet": "string"
}
}
],
"next_cursor": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}