Every endpoint of the CuraPronto REST API, generated from the API itself.
All endpoints are relative to https://api.curapronto.com. Create an API key in your CuraPronto dashboard, then authenticate every request with it.
apiKey — HTTP Basic auth carrying only the API key secret: Authorization: Basic base64(<key secret>).
accessToken — Operator session token issued by the CuraPronto dashboard: Authorization: Token <access token>.
Download the OpenAPI specification for use with your own tooling.
List appointments
Lists the appointments of your organization, every status included. A TO_SCHEDULE appointment has no times, so a startTime or endTime filter never returns one. Requires the appointments:read scope.
| Name | In | Type | Description |
|---|---|---|---|
| facilityId | query | string | |
| residentId | query | string | |
| startTime | query | string | |
| endTime | query | string | |
| fields | query | string | Comma-separated projection of fields to return |
| Status | Meaning |
|---|---|
| 200 | Array of appointments |
| 401 | Missing or invalid credentials |
| 403 | API key is missing the appointments:read scope |
| 429 | API key rate limit exceeded |
| default | Error response |
Create an appointment
Requires the appointments:write scope. Fires the appointment.created webhook. An appointment created with status TO_SCHEDULE is a visit planned without a date: its startTime and endTime are removed, it may carry a planned duration, and it fires no webhook and does not count toward the monthly appointment limit until a later write gives it a date.
| Field | Type | Description |
|---|---|---|
| facilityIdrequired | string | |
| residentId | string | |
| startTime | string | |
| endTime | string | |
| status | string | |
| duration | integer | Planned length in minutes of a TO_SCHEDULE appointment; null removes it. |
| Status | Meaning |
|---|---|
| 200 | The created appointment |
| 400 | An invalid body, such as a duration out of range |
| 403 | API key is missing the appointments:write scope |
| default | Error response |
Get an appointment
Returns a single appointment by id. Appointments belonging to another organization respond 404. Requires the appointments:read scope.
| Name | In | Type | Description |
|---|---|---|---|
| appointmentIdrequired | path | string |
| Status | Meaning |
|---|---|
| 200 | The appointment |
| 404 | Not found (or owned by another organization) |
| default | Error response |
Update an appointment
Requires the appointments:write scope. Fires the appointment.updated webhook. Giving an appointment that has no date (TO_SCHEDULE, or canceled before it got one) any other status but CANCELED needs both startTime and endTime (otherwise 400); that first date counts the appointment toward the monthly limit and fires appointment.created instead. A write that leaves an appointment TO_SCHEDULE removes its times, and fires no webhook unless the appointment had a date before.
| Name | In | Type | Description |
|---|---|---|---|
| appointmentIdrequired | path | string |
| Field | Type | Description |
|---|---|---|
| _id | string | |
| facilityId | string | |
| residentId | string | |
| startTime | string | |
| endTime | string | |
| status | string (REQUESTED | TO_SCHEDULE | SCHEDULED | RESIDENT_ARRIVED | NO_SHOW | CANCELED) | TO_SCHEDULE is a visit planned without a date: it has no startTime or endTime, and becomes SCHEDULED when a write gives it both. |
| duration | integer | Planned length in minutes of an appointment still to schedule (TO_SCHEDULE). |
| bookingTime | string | When the appointment was booked: the moment one created without a date first got one, or the creation time of a dated one that moved back to TO_SCHEDULE. Set by the API, never by a client. |
| activities | array | |
| reminders | array | |
| lastEditTime | string |
| Status | Meaning |
|---|---|
| 200 | The updated appointment |
| 404 | Not found (or owned by another organization) |
| default | Error response |
Delete an appointment
Requires the appointments:write scope. Fires the appointment.deleted webhook.
| Name | In | Type | Description |
|---|---|---|---|
| appointmentIdrequired | path | string |
| Status | Meaning |
|---|---|
| 200 | The deleted appointment |
| 404 | Not found (or owned by another organization) |
| default | Error response |
List facilities
Lists the facilities of your organization. Requires the facilities:read scope.
| Status | Meaning |
|---|---|
| 200 | Array of facilities |
| 403 | API key is missing the facilities:read scope |
| default | Error response |
List interventions
Lists your organization's clinical intervention records. Requires the interventions:read scope.
| Status | Meaning |
|---|---|
| 200 | Array of interventions |
| 403 | API key is missing the interventions:read scope |
| default | Error response |
List invoices
Lists the invoices of your organization. Requires the invoices:read scope.
| Name | In | Type | Description |
|---|---|---|---|
| facilityId | query | string | |
| residentId | query | string |
| Status | Meaning |
|---|---|
| 200 | Array of invoices |
| 403 | API key is missing the invoices:read scope |
| default | Error response |
List payments
Lists the payments of your organization. Requires the payments:read scope.
| Name | In | Type | Description |
|---|---|---|---|
| facilityId | query | string | |
| residentId | query | string |
| Status | Meaning |
|---|---|
| 200 | Array of payments |
| 403 | API key is missing the payments:read scope |
| default | Error response |
List residents
Lists the residents of your facility. Requires the residents:read scope.
| Name | In | Type | Description |
|---|---|---|---|
| facilityId | query | string | |
| query | string | ||
| _ids | query | string | Comma-separated list of resident ids |
| fields | query | string | Comma-separated projection of fields to return |
| search | query | string | Only live residents whose name holds every word of it, in any order, ignoring case and accents. limit and skip then page the matches. |
| Status | Meaning |
|---|---|
| 200 | Array of residents |
| 401 | Missing or invalid credentials |
| 403 | API key is missing the residents:read scope |
| 429 | API key rate limit exceeded |
| default | Error response |
Create a resident
Creates a resident in your facility. Requires the residents:write scope. Fires the resident.created webhook.
| Field | Type | Description |
|---|---|---|
| facilityIdrequired | string | |
| name | string | |
| string | ||
| phone | string |
| Status | Meaning |
|---|---|
| 200 | The created resident |
| 403 | API key is missing the residents:write scope |
| default | Error response |
Get a resident
Returns a single resident by id. Residents belonging to another organization respond 404. Requires the residents:read scope.
| Name | In | Type | Description |
|---|---|---|---|
| residentIdrequired | path | string |
| Status | Meaning |
|---|---|
| 200 | The resident |
| 404 | Not found (or owned by another organization) |
| default | Error response |
Update a resident
Requires the residents:write scope. Fires the resident.updated webhook.
| Name | In | Type | Description |
|---|---|---|---|
| residentIdrequired | path | string |
| Field | Type | Description |
|---|---|---|
| _id | string | |
| facilityId | string | |
| name | string | |
| string | ||
| phone | string | |
| language | string | |
| lastEditTime | string |
| Status | Meaning |
|---|---|
| 200 | The updated resident |
| 404 | Not found (or owned by another organization) |
| default | Error response |
Delete a resident
Requires the residents:write scope. Fires the resident.deleted webhook.
| Name | In | Type | Description |
|---|---|---|---|
| residentIdrequired | path | string |
| Status | Meaning |
|---|---|
| 200 | The deleted resident |
| 404 | Not found (or owned by another organization) |
| default | Error response |
List webhook subscriptions
Webhook subscriptions deliver resident.created, resident.updated, resident.deleted, appointment.created, appointment.updated, appointment.deleted, invoice.* and payment.* events to your server as signed POST requests (X-CuraPronto-Signature: t=<timestamp>,v1=<hex HMAC-SHA256 of "timestamp.body">). An endpoint failing 20 times in a row is disabled automatically. Subscriptions are managed with an operator access token; the secret is only returned once, on create.
| Status | Meaning |
|---|---|
| 200 | Array of webhook subscriptions (without secrets) |
| default | Error response |
Create a webhook subscription
The response includes the signing secret exactly once — store it; it cannot be retrieved again.
| Field | Type | Description |
|---|---|---|
| facilityIdrequired | string | |
| urlrequired | string | |
| events | array (resident.created | resident.updated | resident.deleted | appointment.created | appointment.updated | appointment.deleted | invoice.created | invoice.updated | invoice.deleted | payment.created | payment.updated | payment.deleted) | Empty array subscribes to all events |
| Status | Meaning |
|---|---|
| 200 | The created subscription, including its secret |
| default | Error response |
Update a webhook subscription
url, events and active are editable; the secret and facility are immutable. Re-enabling an auto-disabled endpoint is done by setting active back to true.
| Name | In | Type | Description |
|---|---|---|---|
| webhookSubscriptionIdrequired | path | string |
| Status | Meaning |
|---|---|
| 200 | The updated subscription (without secret) |
| default | Error response |
Delete a webhook subscription
Delete a webhook subscription
| Name | In | Type | Description |
|---|---|---|---|
| webhookSubscriptionIdrequired | path | string |
| Status | Meaning |
|---|---|
| 200 | Deleted |
| default | Error response |