Demo All names and records here are made up, and the data resets every night. Please do not enter real personal information. ← Back to Find Care Scotland software · All software
Care Core

Documentation › API › API reference

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.

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 parameterTypeDescription
limitintegerHow many to return, 1 to 200. Default 50.
cursorstringThe next_cursor from the previous page.
qstringMatch on first name, last name, full name or email.
kindstringstaff (employed today), supported (receiving support today; needs care.read), leavers (former staff).
employed_ondateOnly people with an employment active on this date.
updated_sincedatetimeOnly people changed on or after this UTC time (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ). For syncing.
emailstringExact email address.
nhs_numberstringExact 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 fieldTypeRequiredDescription
first_namestringYesRequired. Up to 100 characters.
last_namestringYesRequired. Up to 100 characters.
preferred_namestring or nullNoKnown as. Up to 100 characters.
date_of_birthdate or nullNoNot in the future.
emailstring or nullNo Up to 190 characters.
phonestring or nullNo Up to 40 characters.
sexM | F | X or nullNoM, F, or X for another or not stated. Care data: needs care.read to see.
nhs_numberstring or nullNoThe 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_statusstring or nullNoFor example Employed, Unemployed, Retired. Needs care.read to see. Up to 100 characters.
gp_practicestring or nullNoThe name of their GP practice. Needs care.read to see. Up to 255 characters.
address_line1string or nullNoHome address, first line. The address fields need care.read to see. Up to 190 characters.
address_line2string or nullNo Up to 190 characters.
townstring or nullNo Up to 100 characters.
areastring or nullNoThe locality or council area. Up to 100 characters.
postcodestring or nullNo Up to 12 characters.
notesstring or nullNo 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 fieldTypeRequiredDescription
first_namestringYesRequired. Up to 100 characters.
last_namestringYesRequired. Up to 100 characters.
preferred_namestring or nullNoKnown as. Up to 100 characters.
date_of_birthdate or nullNoNot in the future.
emailstring or nullNo Up to 190 characters.
phonestring or nullNo Up to 40 characters.
sexM | F | X or nullNoM, F, or X for another or not stated. Care data: needs care.read to see.
nhs_numberstring or nullNoThe 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_statusstring or nullNoFor example Employed, Unemployed, Retired. Needs care.read to see. Up to 100 characters.
gp_practicestring or nullNoThe name of their GP practice. Needs care.read to see. Up to 255 characters.
address_line1string or nullNoHome address, first line. The address fields need care.read to see. Up to 190 characters.
address_line2string or nullNo Up to 190 characters.
townstring or nullNo Up to 100 characters.
areastring or nullNoThe locality or council area. Up to 100 characters.
postcodestring or nullNo Up to 12 characters.
notesstring or nullNo Up to 5000 characters.

Staff

GET /employments

List employments · needs staff.read· returns 200 list of Employment

Query parameterTypeDescription
limitintegerHow many to return, 1 to 200. Default 50.
cursorstringThe next_cursor from the previous page.
statusstringcurrent, upcoming or ended.
person_iduuidOnly 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 fieldTypeRequiredDescription
person_iduuidNoAn existing person (a rehire). Leave out to create a new person from the fields below.
first_namestringNoRequired for a new person. Up to 100 characters.
last_namestringNoRequired for a new person. Up to 100 characters.
preferred_namestring or nullNo Up to 100 characters.
date_of_birthdate or nullNo
emailstring or nullNo Up to 190 characters.
phonestring or nullNo Up to 40 characters.
job_titlestringYes Up to 150 characters.
start_datedateYesMay be in the future.
contract_typestring or nullNoFor example permanent, fixed_term, bank. Default permanent. Up to 40 characters.
hours_per_weeknumber or nullNo
employee_refstring or nullNoUnique within the organisation. Up to 50 characters.
line_manager_iduuid or nullNoA person who is current staff.
team_iduuid or nullNoTheir primary team from the start date.
team_rolestring or nullNo 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 fieldTypeRequiredDescription
effective_datedateNoToday or earlier. Default today.
job_titlestringNo Up to 150 characters.
contract_typestringNo Up to 40 characters.
hours_per_weeknumberNo
line_manager_iduuidNo
team_iduuidNoTheir new primary team.
team_rolestring or nullNo 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 parameterTypeDescription
last_daydateThe 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 fieldTypeRequiredDescription
last_daydateYesTheir last day of work. Access ends the day after.
reasonstring or nullNo 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 fieldTypeRequiredDescription
address_line1string or nullNo Up to 190 characters.
address_line2string or nullNo Up to 190 characters.
address_citystring or nullNo Up to 190 characters.
address_countystring or nullNo Up to 190 characters.
address_postcodestring or nullNoA UK postcode. Up to 12 characters.
address_countrystring or nullNo Up to 190 characters.
emergency_contact_namestring or nullNo Up to 190 characters.
emergency_contact_phonestring or nullNo Up to 40 characters.
ni_numberstring or nullNoNeeds the staff.sensitive scope. Up to 20 characters.
bank_account_namestring or nullNoNeeds the staff.sensitive scope. Up to 190 characters.
bank_sort_codestring or nullNoNeeds the staff.sensitive scope. Up to 12 characters.
bank_account_numberstring or nullNoNeeds 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 parameterTypeDescription
limitintegerHow many to return, 1 to 200. Default 50.
cursorstringThe next_cursor from the previous page.
statusstringpending, approved, rejected or withdrawn.
person_iduuidOnly 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 fieldTypeRequiredDescription
registration_typestringYesRegistration Up to 190 characters.
registration_bodystring or nullNoBody (for example SSSC) Up to 190 characters.
registration_numberstring or nullNoNumber Up to 190 characters.
issue_datedate or nullNoIssued
expiry_datedateYesExpires
is_required_for_rolebool or nullNoNeeded for the role
notesstring or nullNoNotes 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 fieldTypeRequiredDescription
supervision_datedateYesDate held
supervisor_person_iduuid or nullNoSupervisor (a person id)
supervision_typeindividual | group | peer | otherYesType
duration_minutesint or nullNoMinutes
outcomestring or nullNoOutcome Up to 5000 characters.
next_due_datedate or nullNoNext due
notesstring or nullNoNotes 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 fieldTypeRequiredDescription
appraisal_datedateYesDate
appraiser_person_iduuid or nullNoAppraiser (a person id)
appraisal_typeannual | probationary | interim | return_to_work | otherYesType
outcomepending | outstanding | exceeds_expectations | meets_expectations | requires_improvement | unsatisfactory | not_completedYesOutcome
next_due_datedate or nullNoNext due
notesstring or nullNoNotes 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 fieldTypeRequiredDescription
titlestringYesTitle Up to 190 characters.
record_typetraining | qualification | course | certification | induction | otherYesKind
providerstring or nullNoProvider Up to 190 characters.
qualification_levelstring or nullNoLevel Up to 190 characters.
completion_datedate or nullNoCompleted
expiry_datedate or nullNoExpires
certificate_numberstring or nullNoCertificate number Up to 190 characters.
statuscompleted | in_progress | pending | expiredYesStatus
is_mandatorybool or nullNoMandatory training
notesstring or nullNoNotes 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 parameterTypeDescription
daysintegerLook this many days ahead, 1 to 365. Default 60.

Teams

GET /teams

List teams · needs teams.read· returns 200 list of Team

Query parameterTypeDescription
limitintegerHow many to return, 1 to 200. Default 50.
cursorstringThe next_cursor from the previous page.
activebooleantrue (default) for open teams only, false to include closed ones.

POST /teams

Create a team · needs teams.write· returns 201 Team

Body fieldTypeRequiredDescription
namestringYes Up to 150 characters.
parent_iduuid or nullNoThe team this one sits under. Loops are refused.
kindstringNoFor example care, support, hr. Default care. Up to 40 characters.
staff_onlyboolNoRefuse 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 fieldTypeRequiredDescription
namestringYes Up to 150 characters.
parent_iduuid or nullNoThe team this one sits under. Loops are refused.
kindstringNoFor example care, support, hr. Default care. Up to 40 characters.
staff_onlyboolNoRefuse 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 parameterTypeDescription
ondateWho 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 fieldTypeRequiredDescription
person_iduuidYes
rolestring or nullNoTheir role in the team. Up to 80 characters.
primaryboolNoMake this their primary team.
start_datedateNoDefault 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 fieldTypeRequiredDescription
end_datedateNoTheir 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 fieldTypeRequiredDescription
start_datedateNoDefault today.
referencestring or nullNo Up to 50 characters.
nhs_numberstring or nullNo10 digits with a valid check digit. Up to 20 characters.
local_authority_refstring or nullNo 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 fieldTypeRequiredDescription
end_datedateNoTheir last day of support. Default today.

GET /people/{id}/needs

List care needs · needs care.read· returns 200 list of CareNeed

Query parameterTypeDescription
include_endedbooleanInclude needs that have ended.

POST /people/{id}/needs

Add a care need · needs care.write· returns 201 CareNeed

Body fieldTypeRequiredDescription
categorystringYes Up to 100 characters.
descriptionstringYes Up to 5000 characters.
severitylow | medium | high or nullNo
review_datedate or nullNo

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 fieldTypeRequiredDescription
typephone | email | address | next_of_kin | legal_guardian | social_worker | gp | otherYes
valuestringYes Up to 500 characters.
labelstring or nullNo Up to 100 characters.
primaryboolNo

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 fieldTypeRequiredDescription
supported_person_iduuidYesMust be receiving support.
staff_person_iduuidYesMust be current staff.
role_labelstring or nullNo Up to 100 characters.
start_datedateNoDefault today. Not before support started.

POST /key-workers/{id}/end

End a key worker link · needs care.write· returns 200 KeyWorker

Body fieldTypeRequiredDescription
end_datedateNoDefault today.

Recruitment

GET /roles

List job roles · needs recruitment.read· returns 200 list of JobRole

Query parameterTypeDescription
limitintegerHow many to return, 1 to 200. Default 50.
cursorstringThe next_cursor from the previous page.
activebooleantrue (default) for roles in use only, false to include retired ones.

POST /roles

Create a job role · needs recruitment.write· returns 201 JobRole

Body fieldTypeRequiredDescription
titlestringYes Up to 150 characters.
codestring or nullNoOptional, unique within the organisation. Up to 30 characters.
descriptionstring or nullNoThe job description. Up to 10000 characters.
person_specificationstring or nullNo Up to 10000 characters.
reports_to_role_iduuid or nullNoThe role this one reports to. Loops are refused.
default_team_iduuid or nullNoThe team the role normally sits in.
contract_typepermanent | fixed_term | zero_hours | bank | apprenticeship | agencyNo
hours_per_weeknumber or nullNo
gradestring or nullNo 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 fieldTypeRequiredDescription
titlestringYes Up to 150 characters.
codestring or nullNoOptional, unique within the organisation. Up to 30 characters.
descriptionstring or nullNoThe job description. Up to 10000 characters.
person_specificationstring or nullNo Up to 10000 characters.
reports_to_role_iduuid or nullNoThe role this one reports to. Loops are refused.
default_team_iduuid or nullNoThe team the role normally sits in.
contract_typepermanent | fixed_term | zero_hours | bank | apprenticeship | agencyNo
hours_per_weeknumber or nullNo
gradestring or nullNo 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 fieldTypeRequiredDescription
titlestringYes Up to 150 characters.
descriptionstring or nullNo Up to 500 characters.
requiredboolNoWhether 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 parameterTypeDescription
limitintegerHow many to return, 1 to 200. Default 50.
cursorstringThe next_cursor from the previous page.
statusstringdraft, open, filled or closed.
role_idstringOnly vacancies for this role.

POST /vacancies

Create a vacancy · needs recruitment.write· returns 201 Vacancy

Starts as a draft.

Body fieldTypeRequiredDescription
role_iduuidYesThe job role this is a post in.
titlestringNoDefaults to the role’s title. Up to 150 characters.
team_iduuid or nullNoDefaults to the role’s usual team.
line_manager_iduuid or nullNoThe person they will report to (a person id).
postsintNoHow many posts to fill. Default 1.
contract_typepermanent | fixed_term | zero_hours | bank | apprenticeship | agencyNoDefaults to the role’s.
hours_per_weeknumber or nullNo
closing_datedate or nullNo
notesstring or nullNo 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 fieldTypeRequiredDescription
role_iduuidYesThe job role this is a post in.
titlestringNoDefaults to the role’s title. Up to 150 characters.
team_iduuid or nullNoDefaults to the role’s usual team.
line_manager_iduuid or nullNoThe person they will report to (a person id).
postsintNoHow many posts to fill. Default 1.
contract_typepermanent | fixed_term | zero_hours | bank | apprenticeship | agencyNoDefaults to the role’s.
hours_per_weeknumber or nullNo
closing_datedate or nullNo
notesstring or nullNo 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 fieldTypeRequiredDescription
reject_remainingboolNoAlso close candidates still in progress.

GET /vacancies/{id}/applications

List a vacancy’s candidates · needs recruitment.read· returns 200 list of Application

Query parameterTypeDescription
limitintegerHow many to return, 1 to 200. Default 50.
cursorstringThe next_cursor from the previous page.
stagestringapplied, 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 fieldTypeRequiredDescription
first_namestringYes Up to 100 characters.
last_namestringYes Up to 100 characters.
emailstring or nullNo Up to 190 characters.
phonestring or nullNo Up to 40 characters.
date_of_birthdate or nullNo
sourcestring or nullNo Up to 100 characters.
notesstring or nullNo 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 fieldTypeRequiredDescription
first_namestringYes Up to 100 characters.
last_namestringYes Up to 100 characters.
emailstring or nullNo Up to 190 characters.
phonestring or nullNo Up to 40 characters.
date_of_birthdate or nullNo
sourcestring or nullNo Up to 100 characters.
notesstring or nullNo Up to 5000 characters.
interview_notesstring or nullNo 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 fieldTypeRequiredDescription
stageapplied | shortlisted | interview | offer | rejected | withdrawnYesHired is only reached by POST /applications/{id}/hire.
interview_datedate or nullNo
offer_datedate or nullNo
proposed_start_datedateNoRequired for the offer stage.
reasonstring or nullNo Up to 500 characters.

POST /applications/{id}/accept-offer

Record that the offer was accepted · needs recruitment.write· returns 200 Application

Body fieldTypeRequiredDescription
accepted_ondateNoDefault today.

POST /applications/{id}/checks/{check}

Mark a check done or not done · needs recruitment.write· returns 200 Application

Body fieldTypeRequiredDescription
done_ondate or nullNoThe day it was done; null clears it. Default today.
notesstring or nullNo 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 fieldTypeRequiredDescription
start_datedateNoDefaults to the offer’s proposed start date.
job_titlestringNoDefaults to the vacancy’s title. Up to 150 characters.
employee_refstring or nullNo Up to 50 characters.
line_manager_iduuid or nullNoDefaults to the vacancy’s.
team_iduuid or nullNoDefaults to the vacancy’s.
contract_typepermanent | fixed_term | zero_hours | bank | apprenticeship | agencyNo
hours_per_weeknumberNo

Referrals

GET /referrals

List referrals · needs referrals.read· returns 200 list of Referral

Newest first.

Query parameterTypeDescription
limitintegerHow many to return, 1 to 200. Default 50.
cursorstringThe next_cursor from the previous page.
statusstringreceived, assessing, accepted, declined or withdrawn.
person_idstringOnly 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 fieldTypeRequiredDescription
sourcecouncil | nhs | family | self | provider | otherYesWho the referral came from.
person_namestringYesThe person referred. They may not be a person in Care Core yet. Up to 150 characters.
date_of_birthdate or nullNoCarried to the person record when one is started from the referral.
nhs_numberstring or nullNoCHI or NHS number. Up to 12 characters.
reasonstringYes Up to 600 characters.
received_ondateNoDefaults to today. Cannot be in the future.
referrerstring or nullNo Up to 200 characters.
needs_summarystring or nullNo Up to 1000 characters.
risksstring or nullNo Up to 600 characters.
what_mattersstring or nullNo Up to 600 characters.
plan_typesarrayNoAny of dementia, behaviour, recovery, home.
wanted_fromdate or nullNo
skillsarrayNoSpecialist 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 fieldTypeRequiredDescription
sourcecouncil | nhs | family | self | provider | otherYesWho the referral came from.
person_namestringYesThe person referred. They may not be a person in Care Core yet. Up to 150 characters.
date_of_birthdate or nullNoCarried to the person record when one is started from the referral.
nhs_numberstring or nullNoCHI or NHS number. Up to 12 characters.
reasonstringYes Up to 600 characters.
received_ondateNoDefaults to today. Cannot be in the future.
referrerstring or nullNo Up to 200 characters.
needs_summarystring or nullNo Up to 1000 characters.
risksstring or nullNo Up to 600 characters.
what_mattersstring or nullNo Up to 600 characters.
plan_typesarrayNoAny of dementia, behaviour, recovery, home.
wanted_fromdate or nullNo
skillsarrayNoSpecialist 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 fieldTypeRequiredDescription
statusassessing | accepted | declined | withdrawnYes
reasonstring or nullNoRequired 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 fieldTypeRequiredDescription
person_iduuid or nullNoThe person to link. Leave out with create_person true to start a person from the name on the referral.
create_personboolNoStart 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 parameterTypeDescription
limitintegerHow many to return, 1 to 200. Default 50.
cursorstringThe next_cursor from the previous page.
statusstringopen (default), done, skipped or all.
person_iduuidTasks about this person.
kindstringjoiner, mover, leaver, reassign or manual.
due_beforedateDue 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 fieldTypeRequiredDescription
person_iduuidYes
titlestringYes Up to 200 characters.
descriptionstring or nullNo Up to 500 characters.
due_datedate or nullNo
owner_roleadmin | manager | staffNo

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 fieldTypeRequiredDescription
statusopen | done | skippedYes

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 parameterTypeDescription
limitintegerHow many to return, 1 to 200. Default 50.
cursorstringThe next_cursor from the previous page.
afterstringSame as cursor: return events after this one.
typesstringComma-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 fieldTypeRequiredDescription
urlstringYesAn https:// address (http only for localhost). Up to 500 characters.
event_typesarrayNoEvent types to receive: exact names or prefixes such as "employment.*". Default ["*"] (everything).
activeboolNoPause 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 fieldTypeRequiredDescription
urlstringYesAn https:// address (http only for localhost). Up to 500 characters.
event_typesarrayNoEvent types to receive: exact names or prefixes such as "employment.*". Default ["*"] (everything).
activeboolNoPause 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 parameterTypeDescription
limitintegerHow many to return, 1 to 200. Default 50.
cursorstringThe next_cursor from the previous page.
statusstringpending, 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 parameterTypeDescription
limitintegerHow many to return, 1 to 200. Default 50.
cursorstringThe next_cursor from the previous page.
afterstringSame as cursor.
subject_iduuidOnly entries about this person, team or key.
actionstringAn 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 parameterTypeDescription
limitintegerHow many to return, 1 to 200. Default 50.
cursorstringThe 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.