Endpoints
All paths are under https://replybrain.com/v1. Request and response bodies, examples and every status are in the interactive reference (openapi.json).
| Method and path | Scope | Success | What it does |
|---|---|---|---|
POST /context-queries |
context.read |
202 | Ask for scoped evidence about a customer, without a case. |
GET /context-queries/{id} |
context.read |
200 | Poll it; result holds evidence and what was missing. |
GET /cases |
cases.read |
200 | List cases (paginated). |
POST /cases |
cases.write |
201 / 200 | Open a managed case (200: added to the requester's open case). |
GET /cases/{id} |
cases.read |
200 | Read a case (ETag). |
PATCH /cases/{id} |
cases.write |
200 | Rename a managed case (If-Match). |
GET /cases/{id}/messages |
cases.read |
200 | The transcript (paginated). |
POST /cases/{id}/messages |
cases.write |
201 | The customer's next inbound message on a managed case. |
POST /cases/{case_id}/needs |
needs.write |
201 | Record a need from one of the case's messages. |
GET /needs/{id} |
needs.read |
200 | Read a need (ETag). |
PATCH /needs/{id} |
needs.write |
200 | Reword it, or decide it: satisfied, declined, unknown (If-Match). |
POST /connections/{id}/events |
signature | 202 | Your app's signed events. See [[api-reference/connection-events |
GET /connections/{id}/status |
connections.read |
200 | Sync health, credential state, declared operations. |
POST /runs |
runs.write |
202 | Start a run for one need. |
GET /runs/{id} |
runs.read |
200 | Poll a run. |
POST /runs/{id}/cancel |
runs.write |
202 | Cancel it; undispatched actions are cancelled. |
POST /runs/{id}/plans |
runs.write |
201 | Submit your own plan (planner: caller). |
GET /runs/{id}/plans/{revision} |
runs.read |
200 | Read a plan revision. |
GET /capabilities |
capabilities.read |
200 | Registered capabilities (paginated). |
GET /capabilities/{name}/versions/{version} |
capabilities.read |
200 | One capability version, with its argument schema. |
GET /actions/{id} |
actions.read |
200 | Read an action. |
POST /actions/{id}/approvals |
approvals.write |
201 / 200 | Approve (201, the approval) or reject (200, the cancelled action). |
POST /actions/{id}/dispatch |
actions.write |
202 | Dispatch an approved action. |
POST /actions/{id}/cancel |
actions.write |
200 | Cancel an action not yet dispatched. |
POST /actions/{id}/reconcile |
actions.write |
202 | Find out what happened to an outcome_unknown action. |
POST /commitments |
commitments.write |
201 | Record a proposed commitment. |
GET /commitments/{id} |
commitments.read |
200 | Read a commitment (ETag). |
PATCH /commitments/{id} |
commitments.write |
200 | Reword, reschedule or withdraw it (If-Match). |
GET /events |
events.read |
200 | The event stream, with cursor replay. |
GET /waits |
waits.read |
200 | What waits for a person (paginated). |
GET /waits/{id} |
waits.read |
200 | One wait. |
NOTE
These are the endpoints that exist today. There is no endpoint yet for outbound webhooks, customer sessions, hand-offs, usage or offboarding; follow the event stream instead of webhooks.