CuraPronto API reference

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.

Appointments

GET/api/appointments

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.

appointments:readapiKeyaccessToken
Parameters
NameInTypeDescription
facilityIdquerystring
residentIdquerystring
startTimequerystring
endTimequerystring
fieldsquerystringComma-separated projection of fields to return
Responses
StatusMeaning
200Array of appointments
401Missing or invalid credentials
403API key is missing the appointments:read scope
429API key rate limit exceeded
defaultError response
POST/api/appointments

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.

appointments:writeapiKeyaccessToken
Request body
FieldTypeDescription
facilityIdrequiredstring
residentIdstring
startTimestring
endTimestring
statusstring
durationintegerPlanned length in minutes of a TO_SCHEDULE appointment; null removes it.
Responses
StatusMeaning
200The created appointment
400An invalid body, such as a duration out of range
403API key is missing the appointments:write scope
defaultError response
GET/api/appointments/{appointmentId}

Get an appointment

Returns a single appointment by id. Appointments belonging to another organization respond 404. Requires the appointments:read scope.

appointments:readapiKeyaccessToken
Parameters
NameInTypeDescription
appointmentIdrequiredpathstring
Responses
StatusMeaning
200The appointment
404Not found (or owned by another organization)
defaultError response
PUT/api/appointments/{appointmentId}

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.

appointments:writeapiKeyaccessToken
Parameters
NameInTypeDescription
appointmentIdrequiredpathstring
Request body
FieldTypeDescription
_idstring
facilityIdstring
residentIdstring
startTimestring
endTimestring
statusstring (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.
durationintegerPlanned length in minutes of an appointment still to schedule (TO_SCHEDULE).
bookingTimestringWhen 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.
activitiesarray
remindersarray
lastEditTimestring
Responses
StatusMeaning
200The updated appointment
404Not found (or owned by another organization)
defaultError response
DELETE/api/appointments/{appointmentId}

Delete an appointment

Requires the appointments:write scope. Fires the appointment.deleted webhook.

appointments:writeapiKeyaccessToken
Parameters
NameInTypeDescription
appointmentIdrequiredpathstring
Responses
StatusMeaning
200The deleted appointment
404Not found (or owned by another organization)
defaultError response

Facilities

GET/api/facilities

List facilities

Lists the facilities of your organization. Requires the facilities:read scope.

facilities:readapiKeyaccessToken
Responses
StatusMeaning
200Array of facilities
403API key is missing the facilities:read scope
defaultError response

Interventions

GET/api/interventions

List interventions

Lists your organization's clinical intervention records. Requires the interventions:read scope.

interventions:readapiKeyaccessToken
Responses
StatusMeaning
200Array of interventions
403API key is missing the interventions:read scope
defaultError response

Invoices

GET/api/invoices

List invoices

Lists the invoices of your organization. Requires the invoices:read scope.

invoices:readapiKeyaccessToken
Parameters
NameInTypeDescription
facilityIdquerystring
residentIdquerystring
Responses
StatusMeaning
200Array of invoices
403API key is missing the invoices:read scope
defaultError response

Payments

GET/api/payments

List payments

Lists the payments of your organization. Requires the payments:read scope.

payments:readapiKeyaccessToken
Parameters
NameInTypeDescription
facilityIdquerystring
residentIdquerystring
Responses
StatusMeaning
200Array of payments
403API key is missing the payments:read scope
defaultError response

Residents

GET/api/residents

List residents

Lists the residents of your facility. Requires the residents:read scope.

residents:readapiKeyaccessToken
Parameters
NameInTypeDescription
facilityIdquerystring
emailquerystring
_idsquerystringComma-separated list of resident ids
fieldsquerystringComma-separated projection of fields to return
searchquerystringOnly live residents whose name holds every word of it, in any order, ignoring case and accents. limit and skip then page the matches.
Responses
StatusMeaning
200Array of residents
401Missing or invalid credentials
403API key is missing the residents:read scope
429API key rate limit exceeded
defaultError response
POST/api/residents

Create a resident

Creates a resident in your facility. Requires the residents:write scope. Fires the resident.created webhook.

residents:writeapiKeyaccessToken
Request body
FieldTypeDescription
facilityIdrequiredstring
namestring
emailstring
phonestring
Responses
StatusMeaning
200The created resident
403API key is missing the residents:write scope
defaultError response
GET/api/residents/{residentId}

Get a resident

Returns a single resident by id. Residents belonging to another organization respond 404. Requires the residents:read scope.

residents:readapiKeyaccessToken
Parameters
NameInTypeDescription
residentIdrequiredpathstring
Responses
StatusMeaning
200The resident
404Not found (or owned by another organization)
defaultError response
PUT/api/residents/{residentId}

Update a resident

Requires the residents:write scope. Fires the resident.updated webhook.

residents:writeapiKeyaccessToken
Parameters
NameInTypeDescription
residentIdrequiredpathstring
Request body
FieldTypeDescription
_idstring
facilityIdstring
namestring
emailstring
phonestring
languagestring
lastEditTimestring
Responses
StatusMeaning
200The updated resident
404Not found (or owned by another organization)
defaultError response
DELETE/api/residents/{residentId}

Delete a resident

Requires the residents:write scope. Fires the resident.deleted webhook.

residents:writeapiKeyaccessToken
Parameters
NameInTypeDescription
residentIdrequiredpathstring
Responses
StatusMeaning
200The deleted resident
404Not found (or owned by another organization)
defaultError response

Webhook subscriptions

GET/api/webhooksubscriptions

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.

accessToken
Responses
StatusMeaning
200Array of webhook subscriptions (without secrets)
defaultError response
POST/api/webhooksubscriptions

Create a webhook subscription

The response includes the signing secret exactly once — store it; it cannot be retrieved again.

accessToken
Request body
FieldTypeDescription
facilityIdrequiredstring
urlrequiredstring
eventsarray (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
Responses
StatusMeaning
200The created subscription, including its secret
defaultError response
PUT/api/webhooksubscriptions/{webhookSubscriptionId}

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.

accessToken
Parameters
NameInTypeDescription
webhookSubscriptionIdrequiredpathstring
Responses
StatusMeaning
200The updated subscription (without secret)
defaultError response
DELETE/api/webhooksubscriptions/{webhookSubscriptionId}

Delete a webhook subscription

Delete a webhook subscription

accessToken
Parameters
NameInTypeDescription
webhookSubscriptionIdrequiredpathstring
Responses
StatusMeaning
200Deleted
defaultError response