API reference
Every endpoint, with its scope, parameters and fields.
Every endpoint, generated from the same table the API serves from (96 endpoints). Paths are relative to /api/v1. The same information is available as an OpenAPI 3.1 document.
All POST endpoints accept an Idempotency-Key header. List endpoints accept limit and cursor. A {id} is the UUID of the resource named in the path.
| Area | Endpoints |
|---|---|
| People | 4 |
| Staff | 15 |
| Compliance | 13 |
| Teams | 9 |
| Care | 12 |
| Recruitment | 20 |
| Referrals | 6 |
| Tasks | 4 |
| Events and webhooks | 8 |
| Audit and administration | 3 |
| Meta | 2 |
People
GET /people
List people
· needs people.read· returns 200 list of Person
Without the care.read scope, people who only receive support (never staff) are not listed and is_supported is null. Ordered by when the person was created.
| Query parameter | Type | Description |
|---|---|---|
limit | integer | How many to return, 1 to 200. Default 50. |
cursor | string | The next_cursor from the previous page. |
q | string | Match on first name, last name, full name or email. |
kind | string | staff (employed today), supported (receiving support today; needs care.read), leavers (former staff). |
employed_on | date | Only people with an employment active on this date. |
updated_since | datetime | Only people changed on or after this UTC time (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ). For syncing. |
email | string | Exact email address. |
nhs_number | string | Exact NHS/CHI number. Needs care.read. |
POST /people
Create a person
· needs people.write· returns 201 Person
Creates the person record only. To make them staff use POST /employments.
| Body field | Type | Required | Description |
|---|---|---|---|
first_name | string | Yes | Required. Up to 100 characters. |
last_name | string | Yes | Required. Up to 100 characters. |
preferred_name | string or null | No | Known as. Up to 100 characters. |
date_of_birth | date or null | No | Not in the future. |
email | string or null | No | Up to 190 characters. |
phone | string or null | No | Up to 40 characters. |
sex | M | F | X or null | No | M, F, or X for another or not stated. Care data: needs care.read to see. |
nhs_number | string or null | No | The NHS/CHI number: 10 digits with a valid check digit (spaces are removed). One per person. Needs care.read to see. Up to 20 characters. |
employment_status | string or null | No | For example Employed, Unemployed, Retired. Needs care.read to see. Up to 100 characters. |
gp_practice | string or null | No | The name of their GP practice. Needs care.read to see. Up to 255 characters. |
address_line1 | string or null | No | Home address, first line. The address fields need care.read to see. Up to 190 characters. |
address_line2 | string or null | No | Up to 190 characters. |
town | string or null | No | Up to 100 characters. |
area | string or null | No | The locality or council area. Up to 100 characters. |
postcode | string or null | No | Up to 12 characters. |
notes | string or null | No | Up to 5000 characters. |
GET /people/{id}
Get a person
· needs people.read· returns 200 Person
PATCH /people/{id}
Update a person
· needs people.write· returns 200 Person
Send only the fields to change.
| Body field | Type | Required | Description |
|---|---|---|---|
first_name | string | Yes | Required. Up to 100 characters. |
last_name | string | Yes | Required. Up to 100 characters. |
preferred_name | string or null | No | Known as. Up to 100 characters. |
date_of_birth | date or null | No | Not in the future. |
email | string or null | No | Up to 190 characters. |
phone | string or null | No | Up to 40 characters. |
sex | M | F | X or null | No | M, F, or X for another or not stated. Care data: needs care.read to see. |
nhs_number | string or null | No | The NHS/CHI number: 10 digits with a valid check digit (spaces are removed). One per person. Needs care.read to see. Up to 20 characters. |
employment_status | string or null | No | For example Employed, Unemployed, Retired. Needs care.read to see. Up to 100 characters. |
gp_practice | string or null | No | The name of their GP practice. Needs care.read to see. Up to 255 characters. |
address_line1 | string or null | No | Home address, first line. The address fields need care.read to see. Up to 190 characters. |
address_line2 | string or null | No | Up to 190 characters. |
town | string or null | No | Up to 100 characters. |
area | string or null | No | The locality or council area. Up to 100 characters. |
postcode | string or null | No | Up to 12 characters. |
notes | string or null | No | Up to 5000 characters. |
Staff
GET /employments
List employments
· needs staff.read· returns 200 list of Employment
| Query parameter | Type | Description |
|---|---|---|
limit | integer | How many to return, 1 to 200. Default 50. |
cursor | string | The next_cursor from the previous page. |
status | string | current, upcoming or ended. |
person_id | uuid | Only this person’s employments. |
POST /employments
Start someone (joiner)
· needs staff.write· returns 201 Employment
Runs the joiner process in one transaction: the person (or a rehire), the employment, an optional team place, the new-starter checklist, the audit entry and the events. Logins are not created by the API.
| Body field | Type | Required | Description |
|---|---|---|---|
person_id | uuid | No | An existing person (a rehire). Leave out to create a new person from the fields below. |
first_name | string | No | Required for a new person. Up to 100 characters. |
last_name | string | No | Required for a new person. Up to 100 characters. |
preferred_name | string or null | No | Up to 100 characters. |
date_of_birth | date or null | No | |
email | string or null | No | Up to 190 characters. |
phone | string or null | No | Up to 40 characters. |
job_title | string | Yes | Up to 150 characters. |
start_date | date | Yes | May be in the future. |
contract_type | string or null | No | For example permanent, fixed_term, bank. Default permanent. Up to 40 characters. |
hours_per_week | number or null | No | |
employee_ref | string or null | No | Unique within the organisation. Up to 50 characters. |
line_manager_id | uuid or null | No | A person who is current staff. |
team_id | uuid or null | No | Their primary team from the start date. |
team_role | string or null | No | Up to 80 characters. |
GET /employments/{id}
Get an employment
· needs staff.read· returns 200 Employment
GET /people/{id}/employments
List a person’s employments
· needs staff.read· returns 200 list of Employment
Newest first. A rehire is a second employment.
GET /employments/{id}/changes
History of changes to an employment
· needs staff.read· returns 200 list of EmploymentChange
POST /employments/{id}/changes
Change role, hours, line manager or team (mover)
· needs staff.write· returns 200 Employment
Runs the mover process. The effective date cannot be in the future. A team change ends the old primary team the day before and starts the new one on the effective date.
| Body field | Type | Required | Description |
|---|---|---|---|
effective_date | date | No | Today or earlier. Default today. |
job_title | string | No | Up to 150 characters. |
contract_type | string | No | Up to 40 characters. |
hours_per_week | number | No | |
line_manager_id | uuid | No | |
team_id | uuid | No | Their new primary team. |
team_role | string or null | No | Up to 80 characters. |
GET /employments/{id}/leave-preview
Preview what ending an employment will do
· needs staff.read· returns 200 LeavePreview
Changes nothing.
| Query parameter | Type | Description |
|---|---|---|
last_day | date | The proposed last day. Required. |
POST /employments/{id}/end
Record someone leaving (leaver)
· needs staff.write· returns 200 LeaveResult
Ends the employment, team places and key worker links, creates reassign and offboarding tasks, and stops the login after the last day, all in one transaction.
| Body field | Type | Required | Description |
|---|---|---|---|
last_day | date | Yes | Their last day of work. Access ends the day after. |
reason | string or null | No | Up to 80 characters. |
GET /employments/{id}/details
Get employment terms
· needs staff.read· returns 200 EmploymentDetails
Sections: terms, tupe, wtd, apprentice, visa, leave.
PATCH /employments/{id}/details/{section}
Update one section of employment terms
· needs staff.write· returns 200 EmploymentDetails
section is one of: terms, tupe, wtd, apprentice, visa, leave. Send only the fields to change; see the schema for each section.
GET /people/{id}/profile
Get a staff member’s personal profile
· needs staff.read· returns 200 Profile
National Insurance and bank fields are included only for keys with the staff.sensitive scope.
GET /people/{id}/photo
Get a staff member’s profile photo
· needs staff.read· returns 200 Image
The picture itself (PNG, JPEG, WebP or GIF), not JSON. 404 if they have none. Use has_photo on the profile to know first. Photos waiting for approval are not returned: only the approved one.
GET /people/{id}/signature
Get a staff member’s signature image
· needs staff.read· returns 200 Image
The picture itself (PNG), not JSON. 404 if they have not added one.
PATCH /people/{id}/profile
Update a staff member’s personal profile
· needs staff.write· returns 200 Profile
Changing National Insurance or bank fields needs the staff.sensitive scope. Values are checked and encrypted at rest.
| Body field | Type | Required | Description |
|---|---|---|---|
address_line1 | string or null | No | Up to 190 characters. |
address_line2 | string or null | No | Up to 190 characters. |
address_city | string or null | No | Up to 190 characters. |
address_county | string or null | No | Up to 190 characters. |
address_postcode | string or null | No | A UK postcode. Up to 12 characters. |
address_country | string or null | No | Up to 190 characters. |
emergency_contact_name | string or null | No | Up to 190 characters. |
emergency_contact_phone | string or null | No | Up to 40 characters. |
ni_number | string or null | No | Needs the staff.sensitive scope. Up to 20 characters. |
bank_account_name | string or null | No | Needs the staff.sensitive scope. Up to 190 characters. |
bank_sort_code | string or null | No | Needs the staff.sensitive scope. Up to 12 characters. |
bank_account_number | string or null | No | Needs the staff.sensitive scope. Up to 12 characters. |
GET /profile-changes
List self-service change requests
· needs staff.read· returns 200 list of ProfileChange
Read-only. Values of sensitive fields are omitted unless the key has the staff.sensitive scope.
| Query parameter | Type | Description |
|---|---|---|
limit | integer | How many to return, 1 to 200. Default 50. |
cursor | string | The next_cursor from the previous page. |
status | string | pending, approved, rejected or withdrawn. |
person_id | uuid | Only this person’s requests. |
Compliance
GET /people/{id}/registrations
List registrations
· needs compliance.read· returns 200 list of Registration
Newest first.
POST /people/{id}/registrations
Add a registration record
· needs compliance.write· returns 201 Registration
| Body field | Type | Required | Description |
|---|---|---|---|
registration_type | string | Yes | Registration Up to 190 characters. |
registration_body | string or null | No | Body (for example SSSC) Up to 190 characters. |
registration_number | string or null | No | Number Up to 190 characters. |
issue_date | date or null | No | Issued |
expiry_date | date | Yes | Expires |
is_required_for_role | bool or null | No | Needed for the role |
notes | string or null | No | Notes Up to 5000 characters. |
DELETE /people/{id}/registrations/{record}
Remove a registration record
· needs compliance.write· returns 204 No Content
Compliance records can be added and removed, not edited. Remove and add the corrected one.
GET /people/{id}/supervisions
List supervisions
· needs compliance.read· returns 200 list of Supervision
Newest first.
POST /people/{id}/supervisions
Add a supervision record
· needs compliance.write· returns 201 Supervision
| Body field | Type | Required | Description |
|---|---|---|---|
supervision_date | date | Yes | Date held |
supervisor_person_id | uuid or null | No | Supervisor (a person id) |
supervision_type | individual | group | peer | other | Yes | Type |
duration_minutes | int or null | No | Minutes |
outcome | string or null | No | Outcome Up to 5000 characters. |
next_due_date | date or null | No | Next due |
notes | string or null | No | Notes Up to 5000 characters. |
DELETE /people/{id}/supervisions/{record}
Remove a supervision record
· needs compliance.write· returns 204 No Content
Compliance records can be added and removed, not edited. Remove and add the corrected one.
GET /people/{id}/appraisals
List appraisals
· needs compliance.read· returns 200 list of Appraisal
Newest first.
POST /people/{id}/appraisals
Add a appraisal record
· needs compliance.write· returns 201 Appraisal
| Body field | Type | Required | Description |
|---|---|---|---|
appraisal_date | date | Yes | Date |
appraiser_person_id | uuid or null | No | Appraiser (a person id) |
appraisal_type | annual | probationary | interim | return_to_work | other | Yes | Type |
outcome | pending | outstanding | exceeds_expectations | meets_expectations | requires_improvement | unsatisfactory | not_completed | Yes | Outcome |
next_due_date | date or null | No | Next due |
notes | string or null | No | Notes Up to 5000 characters. |
DELETE /people/{id}/appraisals/{record}
Remove a appraisal record
· needs compliance.write· returns 204 No Content
Compliance records can be added and removed, not edited. Remove and add the corrected one.
GET /people/{id}/learning
List learning
· needs compliance.read· returns 200 list of Learning
Newest first.
POST /people/{id}/learning
Add a learning record
· needs compliance.write· returns 201 Learning
| Body field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Title Up to 190 characters. |
record_type | training | qualification | course | certification | induction | other | Yes | Kind |
provider | string or null | No | Provider Up to 190 characters. |
qualification_level | string or null | No | Level Up to 190 characters. |
completion_date | date or null | No | Completed |
expiry_date | date or null | No | Expires |
certificate_number | string or null | No | Certificate number Up to 190 characters. |
status | completed | in_progress | pending | expired | Yes | Status |
is_mandatory | bool or null | No | Mandatory training |
notes | string or null | No | Notes Up to 5000 characters. |
DELETE /people/{id}/learning/{record}
Remove a learning record
· needs compliance.write· returns 204 No Content
Compliance records can be added and removed, not edited. Remove and add the corrected one.
GET /compliance/due
What is overdue or due soon
· needs compliance.read· returns 200 list of DueItem
Current staff only. Registrations and learning by expiry; supervisions and appraisals by their most recent next-due date.
| Query parameter | Type | Description |
|---|---|---|
days | integer | Look this many days ahead, 1 to 365. Default 60. |
Teams
GET /teams
List teams
· needs teams.read· returns 200 list of Team
| Query parameter | Type | Description |
|---|---|---|
limit | integer | How many to return, 1 to 200. Default 50. |
cursor | string | The next_cursor from the previous page. |
active | boolean | true (default) for open teams only, false to include closed ones. |
POST /teams
Create a team
· needs teams.write· returns 201 Team
| Body field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Up to 150 characters. |
parent_id | uuid or null | No | The team this one sits under. Loops are refused. |
kind | string | No | For example care, support, hr. Default care. Up to 40 characters. |
staff_only | bool | No | Refuse people who are only supported. |
GET /teams/{id}
Get a team
· needs teams.read· returns 200 Team
PATCH /teams/{id}
Update a team
· needs teams.write· returns 200 Team
Send only the fields to change.
| Body field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Up to 150 characters. |
parent_id | uuid or null | No | The team this one sits under. Loops are refused. |
kind | string | No | For example care, support, hr. Default care. Up to 40 characters. |
staff_only | bool | No | Refuse people who are only supported. |
POST /teams/{id}/close
Close a team
· needs teams.write· returns 200 Team
Ends every current place in it. Refused while it has active sub-teams.
GET /teams/{id}/members
List who is in a team
· needs teams.read· returns 200 list of TeamPlace
| Query parameter | Type | Description |
|---|---|---|
on | date | Who was in the team on this date. Default today. |
POST /teams/{id}/members
Add someone to a team
· needs teams.write· returns 201 TeamPlace
Staff-only teams refuse people who are only supported. One active place per person per team; one primary team per staff member.
| Body field | Type | Required | Description |
|---|---|---|---|
person_id | uuid | Yes | |
role | string or null | No | Their role in the team. Up to 80 characters. |
primary | bool | No | Make this their primary team. |
start_date | date | No | Default today. Not before they last left this team. |
POST /teams/{id}/members/{person}/end
End someone’s place in a team
· needs teams.write· returns 200 TeamPlace
| Body field | Type | Required | Description |
|---|---|---|---|
end_date | date | No | Their last day in the team. Default today. |
GET /people/{id}/teams
A person’s team history
· needs teams.read· returns 200 list of TeamPlace
Current places first.
Care
GET /people/{id}/support
List a person’s support episodes
· needs care.read· returns 200 list of SupportEpisode
Newest first.
POST /people/{id}/support
Start support
· needs care.write· returns 201 SupportEpisode
A person has one episode at a time.
| Body field | Type | Required | Description |
|---|---|---|---|
start_date | date | No | Default today. |
reference | string or null | No | Up to 50 characters. |
nhs_number | string or null | No | 10 digits with a valid check digit. Up to 20 characters. |
local_authority_ref | string or null | No | Up to 50 characters. |
POST /people/{id}/support/end
End support
· needs care.write· returns 200 SupportEnded
Also ends their key worker links and team places on that day.
| Body field | Type | Required | Description |
|---|---|---|---|
end_date | date | No | Their last day of support. Default today. |
GET /people/{id}/needs
List care needs
· needs care.read· returns 200 list of CareNeed
| Query parameter | Type | Description |
|---|---|---|
include_ended | boolean | Include needs that have ended. |
POST /people/{id}/needs
Add a care need
· needs care.write· returns 201 CareNeed
| Body field | Type | Required | Description |
|---|---|---|---|
category | string | Yes | Up to 100 characters. |
description | string | Yes | Up to 5000 characters. |
severity | low | medium | high or null | No | |
review_date | date or null | No |
POST /needs/{id}/end
End a care need
· needs care.write· returns 200 CareNeed
GET /people/{id}/contacts
List contacts
· needs care.read· returns 200 list of Contact
POST /people/{id}/contacts
Add a contact
· needs care.write· returns 201 Contact
| Body field | Type | Required | Description |
|---|---|---|---|
type | phone | email | address | next_of_kin | legal_guardian | social_worker | gp | other | Yes | |
value | string | Yes | Up to 500 characters. |
label | string or null | No | Up to 100 characters. |
primary | bool | No |
DELETE /contacts/{id}
Remove a contact
· needs care.write· returns 204 No Content
GET /people/{id}/key-workers
Key worker links for a person
· needs care.read· returns 200 list of KeyWorker
Links where the person is the one supported, and links where the person is the key worker. Current first.
POST /key-workers
Assign a key worker
· needs care.write· returns 201 KeyWorker
The key worker must be current staff, the person must be receiving support, and nobody can be their own key worker.
| Body field | Type | Required | Description |
|---|---|---|---|
supported_person_id | uuid | Yes | Must be receiving support. |
staff_person_id | uuid | Yes | Must be current staff. |
role_label | string or null | No | Up to 100 characters. |
start_date | date | No | Default today. Not before support started. |
POST /key-workers/{id}/end
End a key worker link
· needs care.write· returns 200 KeyWorker
| Body field | Type | Required | Description |
|---|---|---|---|
end_date | date | No | Default today. |
Recruitment
GET /roles
List job roles
· needs recruitment.read· returns 200 list of JobRole
| Query parameter | Type | Description |
|---|---|---|
limit | integer | How many to return, 1 to 200. Default 50. |
cursor | string | The next_cursor from the previous page. |
active | boolean | true (default) for roles in use only, false to include retired ones. |
POST /roles
Create a job role
· needs recruitment.write· returns 201 JobRole
| Body field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Up to 150 characters. |
code | string or null | No | Optional, unique within the organisation. Up to 30 characters. |
description | string or null | No | The job description. Up to 10000 characters. |
person_specification | string or null | No | Up to 10000 characters. |
reports_to_role_id | uuid or null | No | The role this one reports to. Loops are refused. |
default_team_id | uuid or null | No | The team the role normally sits in. |
contract_type | permanent | fixed_term | zero_hours | bank | apprenticeship | agency | No | |
hours_per_week | number or null | No | |
grade | string or null | No | Up to 60 characters. |
GET /roles/{id}
Get a job role
· needs recruitment.read· returns 200 JobRole
Includes the checks someone needs before they can start.
PATCH /roles/{id}
Update a job role
· needs recruitment.write· returns 200 JobRole
Send only the fields to change.
| Body field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Up to 150 characters. |
code | string or null | No | Optional, unique within the organisation. Up to 30 characters. |
description | string or null | No | The job description. Up to 10000 characters. |
person_specification | string or null | No | Up to 10000 characters. |
reports_to_role_id | uuid or null | No | The role this one reports to. Loops are refused. |
default_team_id | uuid or null | No | The team the role normally sits in. |
contract_type | permanent | fixed_term | zero_hours | bank | apprenticeship | agency | No | |
hours_per_week | number or null | No | |
grade | string or null | No | Up to 60 characters. |
POST /roles/{id}/checks
Add a check to a role
· needs recruitment.write· returns 201 JobRole
Applies to candidates added afterwards.
| Body field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Up to 150 characters. |
description | string or null | No | Up to 500 characters. |
required | bool | No | Whether it must be done before someone can start. Default true. |
POST /roles/{id}/retire
Retire a job role
· needs recruitment.write· returns 200 JobRole
Existing vacancies keep it; no new vacancy can use it.
GET /vacancies
List vacancies
· needs recruitment.read· returns 200 list of Vacancy
| Query parameter | Type | Description |
|---|---|---|
limit | integer | How many to return, 1 to 200. Default 50. |
cursor | string | The next_cursor from the previous page. |
status | string | draft, open, filled or closed. |
role_id | string | Only vacancies for this role. |
POST /vacancies
Create a vacancy
· needs recruitment.write· returns 201 Vacancy
Starts as a draft.
| Body field | Type | Required | Description |
|---|---|---|---|
role_id | uuid | Yes | The job role this is a post in. |
title | string | No | Defaults to the role’s title. Up to 150 characters. |
team_id | uuid or null | No | Defaults to the role’s usual team. |
line_manager_id | uuid or null | No | The person they will report to (a person id). |
posts | int | No | How many posts to fill. Default 1. |
contract_type | permanent | fixed_term | zero_hours | bank | apprenticeship | agency | No | Defaults to the role’s. |
hours_per_week | number or null | No | |
closing_date | date or null | No | |
notes | string or null | No | Up to 5000 characters. |
GET /vacancies/{id}
Get a vacancy
· needs recruitment.read· returns 200 Vacancy
PATCH /vacancies/{id}
Update a vacancy
· needs recruitment.write· returns 200 Vacancy
Only a draft or open vacancy can change. Send only the fields to change.
| Body field | Type | Required | Description |
|---|---|---|---|
role_id | uuid | Yes | The job role this is a post in. |
title | string | No | Defaults to the role’s title. Up to 150 characters. |
team_id | uuid or null | No | Defaults to the role’s usual team. |
line_manager_id | uuid or null | No | The person they will report to (a person id). |
posts | int | No | How many posts to fill. Default 1. |
contract_type | permanent | fixed_term | zero_hours | bank | apprenticeship | agency | No | Defaults to the role’s. |
hours_per_week | number or null | No | |
closing_date | date or null | No | |
notes | string or null | No | Up to 5000 characters. |
POST /vacancies/{id}/open
Open a vacancy
· needs recruitment.write· returns 200 Vacancy
Candidates can then be added.
POST /vacancies/{id}/close
Close a vacancy without filling it
· needs recruitment.write· returns 200 Vacancy
| Body field | Type | Required | Description |
|---|---|---|---|
reject_remaining | bool | No | Also close candidates still in progress. |
GET /vacancies/{id}/applications
List a vacancy’s candidates
· needs recruitment.read· returns 200 list of Application
| Query parameter | Type | Description |
|---|---|---|
limit | integer | How many to return, 1 to 200. Default 50. |
cursor | string | The next_cursor from the previous page. |
stage | string | applied, shortlisted, interview, offer, hired, rejected or withdrawn. |
POST /vacancies/{id}/applications
Add a candidate
· needs recruitment.write· returns 201 Application
The vacancy must be open. The role’s checks are copied to the application.
| Body field | Type | Required | Description |
|---|---|---|---|
first_name | string | Yes | Up to 100 characters. |
last_name | string | Yes | Up to 100 characters. |
email | string or null | No | Up to 190 characters. |
phone | string or null | No | Up to 40 characters. |
date_of_birth | date or null | No | |
source | string or null | No | Up to 100 characters. |
notes | string or null | No | Up to 5000 characters. |
GET /applications/{id}
Get an application
· needs recruitment.read· returns 200 Application
Includes its checks.
PATCH /applications/{id}
Update a candidate’s details
· needs recruitment.write· returns 200 Application
Not once they have been hired.
| Body field | Type | Required | Description |
|---|---|---|---|
first_name | string | Yes | Up to 100 characters. |
last_name | string | Yes | Up to 100 characters. |
email | string or null | No | Up to 190 characters. |
phone | string or null | No | Up to 40 characters. |
date_of_birth | date or null | No | |
source | string or null | No | Up to 100 characters. |
notes | string or null | No | Up to 5000 characters. |
interview_notes | string or null | No | Up to 10000 characters. |
POST /applications/{id}/stage
Move an application to another stage
· needs recruitment.write· returns 200 Application
applied → shortlisted → interview → offer, or out as rejected or withdrawn; a rejected or withdrawn one can be reopened.
| Body field | Type | Required | Description |
|---|---|---|---|
stage | applied | shortlisted | interview | offer | rejected | withdrawn | Yes | Hired is only reached by POST /applications/{id}/hire. |
interview_date | date or null | No | |
offer_date | date or null | No | |
proposed_start_date | date | No | Required for the offer stage. |
reason | string or null | No | Up to 500 characters. |
POST /applications/{id}/accept-offer
Record that the offer was accepted
· needs recruitment.write· returns 200 Application
| Body field | Type | Required | Description |
|---|---|---|---|
accepted_on | date | No | Default today. |
POST /applications/{id}/checks/{check}
Mark a check done or not done
· needs recruitment.write· returns 200 Application
| Body field | Type | Required | Description |
|---|---|---|---|
done_on | date or null | No | The day it was done; null clears it. Default today. |
notes | string or null | No | Up to 500 characters. |
POST /applications/{id}/hire
Hire the candidate
· needs recruitment.write· returns 201 Hired
Needs an accepted offer and every required check done. Starts them through the ordinary joiner process: a person, an employment, their team and the onboarding checklist, and the employment.started event. Creating a login is not done here.
| Body field | Type | Required | Description |
|---|---|---|---|
start_date | date | No | Defaults to the offer’s proposed start date. |
job_title | string | No | Defaults to the vacancy’s title. Up to 150 characters. |
employee_ref | string or null | No | Up to 50 characters. |
line_manager_id | uuid or null | No | Defaults to the vacancy’s. |
team_id | uuid or null | No | Defaults to the vacancy’s. |
contract_type | permanent | fixed_term | zero_hours | bank | apprenticeship | agency | No | |
hours_per_week | number | No |
Referrals
GET /referrals
List referrals
· needs referrals.read· returns 200 list of Referral
Newest first.
| Query parameter | Type | Description |
|---|---|---|
limit | integer | How many to return, 1 to 200. Default 50. |
cursor | string | The next_cursor from the previous page. |
status | string | received, assessing, accepted, declined or withdrawn. |
person_id | string | Only the referral linked to this person. |
POST /referrals
Record a referral
· needs referrals.write· returns 201 Referral
Raises a referral.received event (identifiers only).
| Body field | Type | Required | Description |
|---|---|---|---|
source | council | nhs | family | self | provider | other | Yes | Who the referral came from. |
person_name | string | Yes | The person referred. They may not be a person in Care Core yet. Up to 150 characters. |
date_of_birth | date or null | No | Carried to the person record when one is started from the referral. |
nhs_number | string or null | No | CHI or NHS number. Up to 12 characters. |
reason | string | Yes | Up to 600 characters. |
received_on | date | No | Defaults to today. Cannot be in the future. |
referrer | string or null | No | Up to 200 characters. |
needs_summary | string or null | No | Up to 1000 characters. |
risks | string or null | No | Up to 600 characters. |
what_matters | string or null | No | Up to 600 characters. |
plan_types | array | No | Any of dementia, behaviour, recovery, home. |
wanted_from | date or null | No | |
skills | array | No | Specialist skills the support will need, as a list of names. |
GET /referrals/{id}
Get a referral
· needs referrals.read· returns 200 Referral
Includes the needs, risks, what matters to the person, the plans it calls for and the specialist skills.
PATCH /referrals/{id}
Change a referral
· needs referrals.write· returns 200 Referral
Only a referral that is received or being assessed can change.
| Body field | Type | Required | Description |
|---|---|---|---|
source | council | nhs | family | self | provider | other | Yes | Who the referral came from. |
person_name | string | Yes | The person referred. They may not be a person in Care Core yet. Up to 150 characters. |
date_of_birth | date or null | No | Carried to the person record when one is started from the referral. |
nhs_number | string or null | No | CHI or NHS number. Up to 12 characters. |
reason | string | Yes | Up to 600 characters. |
received_on | date | No | Defaults to today. Cannot be in the future. |
referrer | string or null | No | Up to 200 characters. |
needs_summary | string or null | No | Up to 1000 characters. |
risks | string or null | No | Up to 600 characters. |
what_matters | string or null | No | Up to 600 characters. |
plan_types | array | No | Any of dementia, behaviour, recovery, home. |
wanted_from | date or null | No | |
skills | array | No | Specialist skills the support will need, as a list of names. |
POST /referrals/{id}/status
Assess, accept, decline or withdraw a referral
· needs referrals.write· returns 200 Referral
Raises referral.status_changed.
| Body field | Type | Required | Description |
|---|---|---|---|
status | assessing | accepted | declined | withdrawn | Yes | |
reason | string or null | No | Required to decline or withdraw. Up to 400 characters. |
POST /referrals/{id}/link
Link an accepted referral to a person
· needs referrals.write· returns 200 Referral
Raises referral.linked.
| Body field | Type | Required | Description |
|---|---|---|---|
person_id | uuid or null | No | The person to link. Leave out with create_person true to start a person from the name on the referral. |
create_person | bool | No | Start a new person from the name on the referral (needs a first and last name). |
Tasks
GET /tasks
List tasks
· needs tasks.read· returns 200 list of Task
| Query parameter | Type | Description |
|---|---|---|
limit | integer | How many to return, 1 to 200. Default 50. |
cursor | string | The next_cursor from the previous page. |
status | string | open (default), done, skipped or all. |
person_id | uuid | Tasks about this person. |
kind | string | joiner, mover, leaver, reassign or manual. |
due_before | date | Due on or before this date. |
POST /tasks
Create a task about a person
· needs tasks.write· returns 201 Task
Always a manual task. Keep the title and description free of health information: tasks are seen by every manager. Send an Idempotency-Key so a retry cannot create it twice.
| Body field | Type | Required | Description |
|---|---|---|---|
person_id | uuid | Yes | |
title | string | Yes | Up to 200 characters. |
description | string or null | No | Up to 500 characters. |
due_date | date or null | No | |
owner_role | admin | manager | staff | No |
GET /tasks/{id}
Get a task
· needs tasks.read· returns 200 Task
PATCH /tasks/{id}
Mark a task done, skipped or open
· needs tasks.write· returns 200 Task
Marking a task done raises a task.completed event.
| Body field | Type | Required | Description |
|---|---|---|---|
status | open | done | skipped | Yes |
Events and webhooks
GET /events
Read the event feed
· needs events.read· returns 200 list of Event
The same events that webhooks deliver, oldest first, for systems that prefer to poll. Keep the last cursor you processed and pass it as after. Identifiers and dates only.
| Query parameter | Type | Description |
|---|---|---|
limit | integer | How many to return, 1 to 200. Default 50. |
cursor | string | The next_cursor from the previous page. |
after | string | Same as cursor: return events after this one. |
types | string | Comma-separated event types or prefixes, for example employment.*,team_assignment.ended. |
GET /events/{id}
Get one event
· needs events.read· returns 200 Event
GET /webhooks
List webhook endpoints
· needs webhooks.manage· returns 200 list of Webhook
POST /webhooks
Create a webhook endpoint
· needs webhooks.manage· returns 201 Webhook
The response includes the signing secret once. Store it: it is never shown again.
| Body field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | An https:// address (http only for localhost). Up to 500 characters. |
event_types | array | No | Event types to receive: exact names or prefixes such as "employment.*". Default ["*"] (everything). |
active | bool | No | Pause or resume deliveries. |
GET /webhooks/{id}
Get a webhook endpoint
· needs webhooks.manage· returns 200 Webhook
PATCH /webhooks/{id}
Change a webhook endpoint
· needs webhooks.manage· returns 200 Webhook
| Body field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | An https:// address (http only for localhost). Up to 500 characters. |
event_types | array | No | Event types to receive: exact names or prefixes such as "employment.*". Default ["*"] (everything). |
active | bool | No | Pause or resume deliveries. |
DELETE /webhooks/{id}
Delete a webhook endpoint
· needs webhooks.manage· returns 204 No Content
GET /webhooks/{id}/deliveries
Recent deliveries to an endpoint
· needs webhooks.manage· returns 200 list of WebhookDelivery
Newest first.
| Query parameter | Type | Description |
|---|---|---|
limit | integer | How many to return, 1 to 200. Default 50. |
cursor | string | The next_cursor from the previous page. |
status | string | pending, delivered or failed. |
Audit and administration
GET /audit
Read the activity log
· needs audit.read· returns 200 list of AuditEntry
Oldest first, so a system can keep a cursor and read only what is new. Sensitive values are never in the log.
| Query parameter | Type | Description |
|---|---|---|
limit | integer | How many to return, 1 to 200. Default 50. |
cursor | string | The next_cursor from the previous page. |
after | string | Same as cursor. |
subject_id | uuid | Only entries about this person, team or key. |
action | string | An action name or prefix such as employment. |
GET /users
List logins
· needs admin.read· returns 200 list of User
Read only: logins are created through the joiner process, Entra provisioning or the administration pages.
| Query parameter | Type | Description |
|---|---|---|
limit | integer | How many to return, 1 to 200. Default 50. |
cursor | string | The next_cursor from the previous page. |
GET /consistency
Run the consistency checks
· needs admin.read· returns 200 list of ConsistencyFinding
Finds anything that disagrees with itself: a leaver still in a team, a login or a key worker link. Read only.
Meta
GET /ping
Check your key
· any valid key· returns 200 Ping
Needs any valid key. Returns the organisation, the key’s scopes and limits, and the server time. Good for a health check.
GET /scopes
List all scopes
· any valid key· returns 200 list of Scope
Needs any valid key.