API conventions
Formats, pagination, filtering, rate limits, idempotency and versioning.
Base address and format
- Base:
https://YOUR-CARE-CORE/api/v1. The API root (GET /api/v1) andGET /api/v1/openapi.jsonneed no key. - Send and receive JSON. A request with a body needs
Content-Type: application/json(otherwise415). The body must be a JSON object (400if it is malformed or a list). - Ids are UUIDs, in lower case. Anything that is not a valid id, or is not in your organisation, is a
404. - Dates are
YYYY-MM-DD, in the organisation’s own calendar (a last day is a date, not a time). - Times are ISO 8601 in UTC, such as
2026-11-12T09:30:00Z. - Responses are never cached (
Cache-Control: no-store). - Every response carries
X-Request-Id. Quote it if you ask for help.
Responses
// one thing
{ "data": { "id": "5a41…", "first_name": "Ada", … } }
// a list
{ "data": [ { … }, { … } ],
"page": { "limit": 50, "next_cursor": "djE6MTIz", "has_more": true } }
| Status | Meaning |
|---|---|
| 200 | Success. The body is the resource (or an outcome, for actions such as ending an employment). |
| 201 | Created. Location gives the address of the new resource; the body is the resource. |
| 204 | Done, no body (deletes). |
| 4xx | Your request was refused: see Errors. Nothing was changed. |
| 5xx | Our fault. Retry with the same Idempotency-Key. |
Updating
PATCHchanges only the fields you send. Sendnullto clear an optional field.- Unknown fields are refused (
422, with the field name), so a typo cannot silently do nothing. - Actions that are not simple edits are their own
POSTendpoints, because they are processes with consequences:POST /employments(start),POST /employments/{id}/changes(move),POST /employments/{id}/end(leave),POST /teams/{id}/close,POST /people/{id}/support/end. They are described by what they do and cannot be undone by aPATCH. - History is kept. Compliance records can be added and removed but not edited; employments and places are ended, never deleted.
Pagination
Lists are paged with a cursor:
- Ask with
limit(1 to 200, default 50). - If
page.has_moreis true, passpage.next_cursorback ascursorto get the next page. Stop whennext_cursorisnull.
Cursors are opaque: do not build or inspect them. They stay valid and consistent while new records arrive, so you never see a row twice or miss one. Most lists are ordered oldest first (by creation); the event feed and activity log are oldest first so you can keep a cursor and read only what is new; webhook deliveries are newest first.
Filtering and syncing
GET /peoplefilters:q(name or email),email,kind(staff,supported,leavers),employed_on(a date),updated_since(a UTC time).updated_sincereturns everyone whose record changed at or after that time: the simplest way to keep a copy in step. Pair it with the event feed to learn about changes to employment, teams and so on.- Other lists have their own filters (
status,person_id,kind,due_before,types…): see the reference.
Rate limits
Each key has its own limit per minute (default 120, set when you create it). Every response says where you stand:
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 117
X-RateLimit-Reset: 1762939860 (Unix time when the minute ends)
Beyond the limit you get 429 rate_limited and a Retry-After header (seconds). Wait that long and retry. Prefer updated_since and the event feed over fetching everything repeatedly.
Idempotent POSTs
Networks fail. If a POST times out, you do not know whether it happened. Send an Idempotency-Key header (any unique string up to 100 characters, such as an id from your own system) and the retry is safe:
POST /api/v1/employments
Idempotency-Key: candidate-4821
- The first request does the work. A repeat with the same key and the same request returns the stored first response (with
Idempotent-Replayed: true) and does nothing again. - The same key with a different request is refused (
422 idempotency_mismatch): use a new key for a new request. - If the first request is still running, a repeat gets
409 request_in_progresswithRetry-After. - If a request failed (any error), the key is released so you can correct it and send again.
- Keys are per API key and remembered for 24 hours.
Care Core also protects you without a key: starting someone whose email already exists, a second employment that overlaps the first, or a duplicate key worker are refused by the domain rules.
Versioning and compatibility
- The version is in the address:
/api/v1. - Within a version Care Core may add endpoints, optional request fields, response fields and event types. It will not remove or rename them, or change what they mean. Ignore fields you do not recognise.
- Anything breaking would be a new version (
/api/v2), announced well in advance, with the old one kept running for a long overlap.
Things worth knowing
- Logins are not created by the API. Access is controlled by administrators, the joiner process in the web interface or Entra provisioning.
GET /userslists logins read-only. - Self-service approvals are not decided by the API.
GET /profile-changesshows what is waiting, but approving or declining needs a person: the line manager or HR. - Photos and signatures are not available through the API yet.
- Timestamps are UTC; dates are plain dates.
Next: API reference.