Admin API (/api/v1)
https://<erp-host>/api/v1Authorization: Bearer <company_key>Start with GET /api/v1/me: it tells you the company, the key’s permissions and the resources you can reach.
What you can do
Section titled “What you can do”| Method and path | What it does |
|---|---|
GET /api/v1/<resource> |
list |
GET /api/v1/<resource>/<id> |
one record |
POST /api/v1/<resource> |
create |
PATCH /api/v1/<resource>/<id> |
change only the fields you send |
DELETE /api/v1/<resource>/<id> |
delete or deactivate |
POST /api/v1/<resource>/<id>/<action> |
actions: issue, send, approve, cancel |
POST /api/v1/commands/<name> |
operations not tied to one record |
GET / PUT /api/v1/settings/<key> |
a module’s settings |
Listing, filtering, sorting
Section titled “Listing, filtering, sorting”| Parameter | Example |
|---|---|
limit, offset |
limit=50 (200 max), offset=100 |
sort |
sort=-created_at,display_name |
q |
q=smith |
updated_since |
updated_since=2026-01-01T00:00:00Z |
fields |
fields=id,display_name,email |
filter[field] |
filter[status]=active |
filter[field][op] |
operators: eq ne gt gte lt lte in like null |
curl -g "https://<erp-host>/api/v1/clients?limit=20&sort=-created_at&filter[blocked]=false" \ -H "Authorization: Bearer $RIVIL_KEY"{ "data": [], "meta": { "total": 0, "limit": 20, "offset": 0 } }Creating
Section titled “Creating”curl https://<erp-host>/api/v1/clients \ -H "Authorization: Bearer $RIVIL_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: client-ana-pop-1" \ -d '{ "display_name": "Ana Pop", "party_kind": "person", "email": "ana@example.com" }'To sync with another system: read everything once, then only updated_since, or listen to webhooks.
Custom fields
Section titled “Custom fields”Resources that support them accept custom_fields. See the guide.
Catalog
Section titled “Catalog”All resources, with fields, actions and events: /api/v1 resources. The catalog is generated from the ERP. OpenAPI: /openapi/v1.json, and for your company GET /api/v1/openapi.json.
For AI assistants
Clinical modules have strict rules and separate permissions. Do not use them in public demos.