List Replies
Every classified reply in the workspace, newest first, including the ones that get no draft (out of office, unsubscribe, bounce, ...). `sort` / `order` (RO-232) sort on the server: `created_at`, `received_at`, `category` or `lead` (name).
API key access
replies:read scope with an API key (ro_pat_...). A signed-in session uses the caller's role./api/v1/repliesAccess 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
Repeat to match any of
Only replies with (true) / without (false) a draft.
Only replies whose draft still waits for a person (true), or not (false).
Classified at or after this time.
Classified before this time.
Sort by this field instead of newest first (then by id); the cursor of a sorted page only continues that sort.
Direction of sort (nulls last).
"asc""asc" | "desc"next_cursor of the previous page (at most 64 characters without sort).
501 <= value <= 200Header Parameters
Id of the workspace to act on (must be a member).
Response Body
curl -X GET "http://localhost:8000/api/v1/replies?category=interested&lead_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&has_draft=true&needs_attention=true&since=2019-08-24T14%3A15%3A22Z&until=2019-08-24T14%3A15%3A22Z&sort=created_at&order=asc&cursor=string&limit=50" \ -H "X-Workspace-Id: string"{
"items": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"lead_id": "9bddab70-98e6-43a9-8f32-c9788b9de0c0",
"mailbox_message_id": "70110ef4-25a2-4117-84a9-a72d91bdd00a",
"category": "interested",
"confidence": 0,
"angry": true,
"objection_type": "string",
"referral_contact": {
"name": "string",
"email": "string",
"title": "string"
},
"return_date": "2019-08-24",
"summary": "string",
"actions": [
"string"
],
"prompt_id": "string",
"model": "string",
"created_at": "2019-08-24T14:15:22Z",
"lead": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"email": "string",
"company_name": "string"
},
"received_at": "2019-08-24T14:15:22Z",
"subject": "string",
"snippet": "string",
"draft": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"status": "pending"
},
"needs_attention": true
}
],
"next_cursor": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}List Lead Replies
The lead's classified replies, newest first. 404 for a missing lead.
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.