Skip to main content

Caregiver API (0.1.0)

Download OpenAPI specification:Download

CareToSher API contract — source of truth.

Account

The signed-in caregiver — who they are, their email, closing the account, feedback.

The signed-in caregiver and the care teams they belong to

The sign-in resolution. An empty teams sends the caregiver to Join a care team; anything else sends them to Home. Archived teams are not listed. The caller's record is created on first call from the verified ID token.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "caregiver": {
    },
  • "teams": [
    ]
}

Change name, and email notifications on or off

The caller's own name — what every entry and journal note they write is signed with — and whether the app may reach them by email. Push is the phone's, not stored. Fields left out are unchanged. An email address confirmed through Change email is copied onto the account by the first request made with a token carrying it, so it is not set here.

Authorizations:
bearerAuth
Request Body schema: application/json
required
non-empty
name
string [ 1 .. 100 ] characters
email_notifications
boolean

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "email_notifications": true
}

Response samples

Content type
application/json
{
  • "user_id": "string",
  • "email": "user@example.com",
  • "name": "string",
  • "email_notifications": true
}

Change email — Send code

Checks the current password, then asks for the new address, which is sent a code. The address does not change until the code is confirmed (in the app, against the identity provider); until then the old one still signs in and still receives everything. Sending again sends a new code.

Authorizations:
bearerAuth
Request Body schema: application/json
required
current_password
required
string non-empty
new_email
required
string <email>

Responses

Request samples

Content type
application/json
{
  • "current_password": "string",
  • "new_email": "user@example.com"
}

Response samples

Content type
application/json
{
  • "message": "string"
}

Close this account? — Close account

Checks the password, then closes the account: the name and address are removed and the caller can no longer sign in, while every entry and journal note they wrote stays, attributed to a former caregiver. Each care team is left as leaving leaves it — their assignments still ahead are removed and any coverage schedule naming them ends today. Refused, naming the teams, while the caller is any care team's only admin.

Authorizations:
bearerAuth
Request Body schema: application/json
required
password
required
string non-empty

Responses

Request samples

Content type
application/json
{
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "message": "string"
}

Send feedback

One message to the people behind the app; nothing is kept. Sent with a token, it goes with the caller's name and address so a reply can come by email. Sent without one, it is anonymous: nothing that identifies the caregiver goes with it or is logged with it. The version and device go either way.

Authorizations:
NonebearerAuth
Request Body schema: application/json
required
kind
required
string
Enum: "bug" "suggestion" "other"
message
required
string [ 1 .. 5000 ] characters
app_version
required
string <= 50 characters

e.g. "1.4.0 (212)"

device
required
string <= 100 characters

e.g. "iPhone 15, iOS 26.1"

Responses

Request samples

Content type
application/json
{
  • "kind": "bug",
  • "message": "string",
  • "app_version": "string",
  • "device": "string"
}

Response samples

Content type
application/json
{
  • "message": "string"
}

Care teams

Care teams the caregiver belongs to, their members and roles.

Create a care team; the caller becomes its first admin

Authorizations:
bearerAuth
Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters

Responses

Request samples

Content type
application/json
{
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "team_id": "string",
  • "name": "string",
  • "role": "admin"
}

One care team — its name and who is on it

Every caregiver on the team and the role each holds, readable by any member rather than admins alone. Admins first, then by name. Only the people on it now: what a former teammate looks like here is an open gap in the PRD.

Authorizations:
bearerAuth
path Parameters
teamId
required
string

Responses

Response samples

Content type
application/json
{
  • "team_id": "string",
  • "name": "string",
  • "my_role": "admin",
  • "members": [
    ]
}

Close this care team? — Close team

Only for the last caregiver on the team. The team is archived and their membership ends, so nobody can reach it any longer, its receivers with it. Nothing recorded in it is erased; that is something support does on request.

Authorizations:
bearerAuth
path Parameters
teamId
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "string"
}

A caregiver — Make admin or Make caregiver (admin only)

Authorizations:
bearerAuth
path Parameters
teamId
required
string
userId
required
string
Request Body schema: application/json
required
role
required
string (Role)
Enum: "admin" "caregiver"

Responses

Request samples

Content type
application/json
{
  • "role": "admin"
}

Response samples

Content type
application/json
{
  • "user_id": "string",
  • "name": "string",
  • "role": "admin"
}

Remove from this care team (admin), or Leave (yourself)

An admin may remove anyone; any caregiver may remove themselves, which is leaving. Takes the access and not the record — every entry and journal note they wrote stays, under their name. Their place on the roster goes with it: their assignments still ahead are removed and any coverage schedule naming them ends today; past assignments stay.

Authorizations:
bearerAuth
path Parameters
teamId
required
string
userId
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "string"
}

Team notification settings — which kinds this team sends you

The signed-in caregiver's own choices for this team, by kind for every receiver and tracker on it. All on until changed. The channels — push, email — are the account's, in Settings.

Authorizations:
bearerAuth
path Parameters
teamId
required
string

Responses

Response samples

Content type
application/json
{
  • "reminders": true,
  • "range_alerts": true,
  • "gap_alerts": true,
  • "unrecorded_alerts": true
}

Team notification settings — turn a kind on or off

Affects only the caller; nobody else on the team.

Authorizations:
bearerAuth
path Parameters
teamId
required
string
Request Body schema: application/json
required
reminders
required
boolean
range_alerts
required
boolean
gap_alerts
required
boolean
unrecorded_alerts
required
boolean

Responses

Request samples

Content type
application/json
{
  • "reminders": true,
  • "range_alerts": true,
  • "gap_alerts": true,
  • "unrecorded_alerts": true
}

Response samples

Content type
application/json
{
  • "reminders": true,
  • "range_alerts": true,
  • "gap_alerts": true,
  • "unrecorded_alerts": true
}

Invitations

Inviting someone to a care team and joining one.

Pending invitations addressed to the caller's verified email

Includes invitations to teams the caller already belongs to; redeeming one of those is refused with 409. Expired, accepted, and revoked invitations are not listed.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Join a care team as a caregiver, by invite code

Serves both accepting an invitation found under /v1/me/invitations and pasting a code. The code travels in the body, never the path, so it does not land in access logs. The caller's email is not checked against the invitation (Hide My Email); membership is.

Authorizations:
bearerAuth
Request Body schema: application/json
required
code
required
string non-empty

Responses

Request samples

Content type
application/json
{
  • "code": "string"
}

Response samples

Content type
application/json
{
  • "team_id": "string",
  • "name": "string",
  • "role": "admin"
}

The care team's pending invitations, each with its code (admin only)

Invitations not yet used and not yet expired, newest first. The code stays here to copy for as long as the invitation goes unused. Withdrawing one is an open gap in the PRD, so there is no way to here.

Authorizations:
bearerAuth
path Parameters
teamId
required
string

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Invite a caregiver — Create invitation (admin only)

Every invitation joins as a caregiver. The app sends no email; the admin copies the returned code and sends it themselves. Expires in fourteen days.

Authorizations:
bearerAuth
path Parameters
teamId
required
string
Request Body schema: application/json
required
email
required
string <email> <= 254 characters

Responses

Request samples

Content type
application/json
{
  • "email": "user@example.com"
}

Response samples

Content type
application/json
{
  • "code": "string",
  • "email": "user@example.com",
  • "invited_by_name": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "expires_at": "2019-08-24T14:15:22Z"
}

Care receivers

The people a care team looks after, and what the team keeps about them.

The care team's care receivers, oldest first

Active receivers by default, which is what Team's list and the choice of the active care receiver read. status=archived lists the archived ones instead, for the group of their own on Care team. Any member may call it.

Authorizations:
bearerAuth
path Parameters
teamId
required
string
query Parameters
status
string (ReceiverStatus)
Enum: "active" "archived"

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Add care receiver — Add receiver (admin only)

The time zone is required: every wall-clock time about this person — schedules, assignments, their day on Home — is read in it.

Authorizations:
bearerAuth
path Parameters
teamId
required
string
Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
time_zone
required
string non-empty

An IANA zone

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "time_zone": "string"
}

Response samples

Content type
application/json
{
  • "receiver_id": "string",
  • "team_id": "string",
  • "name": "string",
  • "time_zone": "string"
}

Care receiver — everything about the person that is not an entry

Readable by every member, archived or not. Coverage is read separately (on-duty, assignments, coverage-schedules).

Authorizations:
bearerAuth
path Parameters
receiverId
required
string

Responses

Response samples

Content type
application/json
{
  • "receiver_id": "string",
  • "team_id": "string",
  • "team_name": "string",
  • "name": "string",
  • "time_zone": "string",
  • "status": "active",
  • "archived_by_name": "string",
  • "archived_at": "2019-08-24T14:15:22Z",
  • "care_instructions": {
    },
  • "emergency_contacts": [
    ]
}

Edit care receiver — Save (admin only)

Changing the time zone keeps the receiver's routines at their wall-clock times: every future scheduled entry and assignment is re-resolved in the new zone. Nothing already past moves.

Authorizations:
bearerAuth
path Parameters
receiverId
required
string
Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
time_zone
required
string non-empty

An IANA zone

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "time_zone": "string"
}

Response samples

Content type
application/json
{
  • "receiver_id": "string",
  • "team_id": "string",
  • "name": "string",
  • "time_zone": "string"
}

Archive this care receiver? — Archive (admin only)

Home, the receiver switcher and Quick log stop showing them, and nothing about them reminds or alerts anyone: their still-waiting future scheduled entries are removed and no more are made, as when a tracker is paused. Assignments are kept, since they remind nobody. Everything recorded stays readable from Team. Archiving one already archived returns 204.

Authorizations:
bearerAuth
path Parameters
receiverId
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "string"
}

Care receiver — Restore (admin only)

Their schedules make scheduled entries again from now on, for trackers that are not paused. Care that came due while they were archived is not made after the fact. Restoring one already active returns 204.

Authorizations:
bearerAuth
path Parameters
receiverId
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "string"
}

Edit care instructions — Save (admin only)

One free-form document. Records who changed it and when, which the Care receiver screen shows beside it. An empty body clears the instructions, and the screen goes back to saying none have been written.

Authorizations:
bearerAuth
path Parameters
receiverId
required
string
Request Body schema: application/json
required
body
required
string <= 20000 characters

Responses

Request samples

Content type
application/json
{
  • "body": "string"
}

Response samples

Content type
application/json
{
  • "receiver_id": "string",
  • "team_id": "string",
  • "team_name": "string",
  • "name": "string",
  • "time_zone": "string",
  • "status": "active",
  • "archived_by_name": "string",
  • "archived_at": "2019-08-24T14:15:22Z",
  • "care_instructions": {
    },
  • "emergency_contacts": [
    ]
}

Emergency contacts — Save (admin only)

The whole list, in the order it should appear, replacing the one there. A contact sent with its contact_id keeps it; one without is new; one left out is removed. Does not change who last changed the care instructions — that stamp is about the written instructions alone.

Authorizations:
bearerAuth
path Parameters
receiverId
required
string
Request Body schema: application/json
required
required
Array of objects (EmergencyContactWrite) <= 20 items
Array (<= 20 items)
contact_id
string

Keep an existing contact; omit for a new one

name
required
string [ 1 .. 100 ] characters
relationship
required
string <= 100 characters
phone
required
string [ 1 .. 40 ] characters

Responses

Request samples

Content type
application/json
{
  • "contacts": [
    ]
}

Response samples

Content type
application/json
{
  • "receiver_id": "string",
  • "team_id": "string",
  • "team_name": "string",
  • "name": "string",
  • "time_zone": "string",
  • "status": "active",
  • "archived_by_name": "string",
  • "archived_at": "2019-08-24T14:15:22Z",
  • "care_instructions": {
    },
  • "emergency_contacts": [
    ]
}

Trackers

What a care team tracks for a care receiver, and the templates to start from.

Every tracker of one care receiver, active and paused

Serves the Trackers list. All three filters are drawn from this one response, so their counts agree with what each shows. Sorted by name; a paused tracker never needs attention.

Authorizations:
bearerAuth
path Parameters
receiverId
required
string

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create a tracker for an active care receiver (admin only)

Add tracker's Create. Takes no schedules — those are written afterward in Edit tracker. The server assigns every field and option id.

Authorizations:
bearerAuth
path Parameters
receiverId
required
string
Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
icon
required
string

An SF Symbol name

color
required
string^#[0-9A-Fa-f]{6}$
required
Array of objects (TrackerFieldWrite)
gap_hours
integer >= 1

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "icon": "string",
  • "color": "string",
  • "fields": [
    ],
  • "gap_hours": 1
}

Response samples

Content type
application/json
{
  • "tracker_id": "string",
  • "receiver_id": "string",
  • "team_id": "string",
  • "name": "string",
  • "icon": "string",
  • "color": "string",
  • "status": "active",
  • "paused_at": "2019-08-24T14:15:22Z",
  • "fields": [
    ],
  • "gap_hours": 0,
  • "schedule_count": 0,
  • "last_logged_at": "2019-08-24T14:15:22Z",
  • "attention": [
    ],
  • "created_at": "2019-08-24T14:15:22Z"
}

One tracker, with what is wrong with it right now

Authorizations:
bearerAuth
path Parameters
trackerId
required
string

Responses

Response samples

Content type
application/json
{
  • "tracker_id": "string",
  • "receiver_id": "string",
  • "team_id": "string",
  • "name": "string",
  • "icon": "string",
  • "color": "string",
  • "status": "active",
  • "paused_at": "2019-08-24T14:15:22Z",
  • "fields": [
    ],
  • "gap_hours": 0,
  • "schedule_count": 0,
  • "last_logged_at": "2019-08-24T14:15:22Z",
  • "attention": [
    ],
  • "created_at": "2019-08-24T14:15:22Z"
}

Edit tracker's Save (admin only)

Name, icon, color, fields and gap commit together. Schedules are not part of this request; each is written on its own sheet's Save. Allowed on a paused tracker. Refused with 400 if fields leaves out an existing field (fields are paused, never removed), drops an existing choice option (options are retired, never removed), or changes an existing field's type (a type is fixed once the tracker exists). Turning a gap on while the tracker has schedules is refused with 409 unless remove_schedules is true, which removes every schedule as DELETE /v1/schedules/{scheduleId} would.

Authorizations:
bearerAuth
path Parameters
trackerId
required
string
Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
icon
required
string
color
required
string^#[0-9A-Fa-f]{6}$
required
Array of objects (TrackerFieldWrite)

Every existing field by its field_id, in the order to show them, plus any new ones without one

gap_hours
required
integer or null >= 1

null turns the gap off

remove_schedules
boolean
Default: false

Confirms that turning the gap on removes every schedule

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "icon": "string",
  • "color": "string",
  • "fields": [
    ],
  • "gap_hours": 1,
  • "remove_schedules": false
}

Response samples

Content type
application/json
{
  • "tracker_id": "string",
  • "receiver_id": "string",
  • "team_id": "string",
  • "name": "string",
  • "icon": "string",
  • "color": "string",
  • "status": "active",
  • "paused_at": "2019-08-24T14:15:22Z",
  • "fields": [
    ],
  • "gap_hours": 0,
  • "schedule_count": 0,
  • "last_logged_at": "2019-08-24T14:15:22Z",
  • "attention": [
    ],
  • "created_at": "2019-08-24T14:15:22Z"
}

Pause a tracker (admin only)

No new entries, its schedules stop generating, and its thresholds stop raising alerts. Occurrences still waiting in the future are deleted; everything logged, skipped or already unrecorded stays. Pausing a paused tracker changes nothing.

Authorizations:
bearerAuth
path Parameters
trackerId
required
string

Responses

Response samples

Content type
application/json
{
  • "tracker_id": "string",
  • "receiver_id": "string",
  • "team_id": "string",
  • "name": "string",
  • "icon": "string",
  • "color": "string",
  • "status": "active",
  • "paused_at": "2019-08-24T14:15:22Z",
  • "fields": [
    ],
  • "gap_hours": 0,
  • "schedule_count": 0,
  • "last_logged_at": "2019-08-24T14:15:22Z",
  • "attention": [
    ],
  • "created_at": "2019-08-24T14:15:22Z"
}

Resume a paused tracker (admin only)

Its schedules generate again from now, and its thresholds raise alerts again. Nothing is back-filled across the pause. Resuming an active tracker changes nothing.

Authorizations:
bearerAuth
path Parameters
trackerId
required
string

Responses

Response samples

Content type
application/json
{
  • "tracker_id": "string",
  • "receiver_id": "string",
  • "team_id": "string",
  • "name": "string",
  • "icon": "string",
  • "color": "string",
  • "status": "active",
  • "paused_at": "2019-08-24T14:15:22Z",
  • "fields": [
    ],
  • "gap_hours": 0,
  • "schedule_count": 0,
  • "last_logged_at": "2019-08-24T14:15:22Z",
  • "attention": [
    ],
  • "created_at": "2019-08-24T14:15:22Z"
}

The tracker template catalogue

Ordered as Add tracker shows them. A template carries no ids for its fields; creating a tracker from one assigns them.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Schedules

When a tracker expects entries.

A tracker's schedules, readable by anyone on the team

Removed schedules are not listed.

Authorizations:
bearerAuth
path Parameters
trackerId
required
string

Responses

Response samples

Content type
application/json
[
  • {
    }
]

A schedule's Save, for a new schedule (admin only)

Written at once, not with Edit tracker's Save. It starts today in the receiver's time zone, and its occurrences exist by the time this returns. On a tracker watched by a gap it is refused with 409 unless replace_gap is true, which turns the gap off. On a paused tracker it is stored but generates nothing until the tracker is resumed.

Authorizations:
bearerAuth
path Parameters
trackerId
required
string
Request Body schema: application/json
required
label
string <= 100 characters
required
object (Recurrence)

A rule, not a preset (ADR 0012). The app's choices write into it — every week, two weeks, month and two months are intervals of 1, 2, 4 and 8 weeks. More frequencies can be added later without migrating data.

time
required
string^([01][0-9]|2[0-3]):[0-5][0-9]$
ends_on
string <date>
required
object
unrecorded_alert
required
boolean
replace_gap
boolean
Default: false

Confirms that the first schedule turns the tracker's gap off

Responses

Request samples

Content type
application/json
{
  • "label": "string",
  • "rule": {
    },
  • "time": "string",
  • "ends_on": "2019-08-24",
  • "planned_values": { },
  • "unrecorded_alert": true,
  • "replace_gap": false
}

Response samples

Content type
application/json
{
  • "schedule_id": "string",
  • "tracker_id": "string",
  • "label": "string",
  • "name": "string",
  • "rule": {
    },
  • "time": "string",
  • "starts_on": "2019-08-24",
  • "ends_on": "2019-08-24",
  • "planned_values": { },
  • "unrecorded_alert": true
}

A schedule's Save, for an existing schedule (admin only)

Written at once. Its still-waiting future occurrences are replaced by ones made from the new rule, time and pre-filled values; nothing logged, skipped or already unrecorded moves.

Authorizations:
bearerAuth
path Parameters
scheduleId
required
string
Request Body schema: application/json
required
label
string <= 100 characters
required
object (Recurrence)

A rule, not a preset (ADR 0012). The app's choices write into it — every week, two weeks, month and two months are intervals of 1, 2, 4 and 8 weeks. More frequencies can be added later without migrating data.

time
required
string^([01][0-9]|2[0-3]):[0-5][0-9]$
ends_on
string <date>
required
object
unrecorded_alert
required
boolean

Responses

Request samples

Content type
application/json
{
  • "label": "string",
  • "rule": {
    },
  • "time": "string",
  • "ends_on": "2019-08-24",
  • "planned_values": { },
  • "unrecorded_alert": true
}

Response samples

Content type
application/json
{
  • "schedule_id": "string",
  • "tracker_id": "string",
  • "label": "string",
  • "name": "string",
  • "rule": {
    },
  • "time": "string",
  • "starts_on": "2019-08-24",
  • "ends_on": "2019-08-24",
  • "planned_values": { },
  • "unrecorded_alert": true
}

Remove this schedule? — Remove (admin only)

The rule and every occurrence it made that is still waiting go. Every entry already logged, skipped or unrecorded stays exactly where it is, and still names the schedule it came from. Repeating a removal is safe: on a schedule already removed it takes away anything still waiting again and returns 204, not 404.

Authorizations:
bearerAuth
path Parameters
scheduleId
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "string"
}

Entries

Logged, skipped and scheduled entries on a tracker.

A tracker's entries, newest first

Logged, skipped and unrecorded together. Entries still to come are never listed — Coming up is what looks ahead. from and to are dates in the receiver's time zone, inclusive; without them the list runs back through everything, a page at a time.

Authorizations:
bearerAuth
path Parameters
trackerId
required
string
query Parameters
from
string <date>
to
string <date>
cursor
string
limit
integer [ 1 .. 100 ]
Default: 50

Responses

Response samples

Content type
application/json
{
  • "entries": [
    ],
  • "next_cursor": "string"
}

Quick log's step for a picked tracker — log ad hoc, or plan

Any member may call it. With at now or earlier it logs the care ad hoc and every required active field must be given. With at in the future it plans a one-off scheduled entry instead — values pre-fill it, a reading nobody has taken may be left out, and unrecorded_alert says whether the team is told if it goes unrecorded. Only active fields and active options are accepted. Refused with 409 on a paused tracker.

Authorizations:
bearerAuth
path Parameters
trackerId
required
string
Request Body schema: application/json
required
at
string <date-time>

When the care happened, or is planned for. Absent means now.

required
object

Keyed by field_id; a choice is a list of option_ids

note
string <= 2000 characters
unrecorded_alert
boolean
Default: false

Only when at is in the future

Responses

Request samples

Content type
application/json
{
  • "at": "2019-08-24T14:15:22Z",
  • "values": { },
  • "note": "string",
  • "unrecorded_alert": false
}

Response samples

Content type
application/json
{
  • "entry": {
    },
  • "tracker": {
    },
  • "fields": [
    ],
  • "planned": true,
  • "occurrence_at": "2019-08-24T14:15:22Z",
  • "unrecorded_alert": true,
  • "settled_at": "2019-08-24T14:15:22Z",
  • "updated_by_name": "string",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "out_of_range": [
    ]
}

Entry detail — one entry, in whatever state it is in

Authorizations:
bearerAuth
path Parameters
entryId
required
string

Responses

Response samples

Content type
application/json
{
  • "entry": {
    },
  • "tracker": {
    },
  • "fields": [
    ],
  • "planned": true,
  • "occurrence_at": "2019-08-24T14:15:22Z",
  • "unrecorded_alert": true,
  • "settled_at": "2019-08-24T14:15:22Z",
  • "updated_by_name": "string",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "out_of_range": [
    ]
}

Edit entry — Save, on a logged or skipped entry

Any member may edit any entry. Editing a skipped entry logs it: the care happened after all, and the caller becomes who logged it. A scheduled or unrecorded entry cannot be edited (409) — Log it is what records it. Records who changed it last and when.

Authorizations:
bearerAuth
path Parameters
entryId
required
string
Request Body schema: application/json
required
occurred_at
required
string <date-time>

Never in the future

required
object

Keyed by field_id; a choice is a list of option_ids

note
string <= 2000 characters

Responses

Request samples

Content type
application/json
{
  • "occurred_at": "2019-08-24T14:15:22Z",
  • "values": { },
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "entry": {
    },
  • "tracker": {
    },
  • "fields": [
    ],
  • "planned": true,
  • "occurrence_at": "2019-08-24T14:15:22Z",
  • "unrecorded_alert": true,
  • "settled_at": "2019-08-24T14:15:22Z",
  • "updated_by_name": "string",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "out_of_range": [
    ]
}

Delete this entry? — Delete, on a logged or skipped entry

Any member may delete any entry. One logged ad hoc is gone (204). One that fulfilled a planned entry returns to waiting — scheduled, or unrecorded if its time has passed — with its pre-filled values back, and is returned (200). A scheduled or unrecorded entry cannot be deleted (409).

Authorizations:
bearerAuth
path Parameters
entryId
required
string

Responses

Response samples

Content type
application/json
{
  • "entry": {
    },
  • "tracker": {
    },
  • "fields": [
    ],
  • "planned": true,
  • "occurrence_at": "2019-08-24T14:15:22Z",
  • "unrecorded_alert": true,
  • "settled_at": "2019-08-24T14:15:22Z",
  • "updated_by_name": "string",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "out_of_range": [
    ]
}

Log it — record a scheduled or unrecorded entry

occurred_at is the run's one time, not the occurrence's; it cannot be in the future. Refused with 409 if somebody settled it first, or if its tracker is paused.

Authorizations:
bearerAuth
path Parameters
entryId
required
string
Request Body schema: application/json
required
occurred_at
required
string <date-time>

Never in the future

required
object

Keyed by field_id; a choice is a list of option_ids

note
string <= 2000 characters

Responses

Request samples

Content type
application/json
{
  • "occurred_at": "2019-08-24T14:15:22Z",
  • "values": { },
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "entry": {
    },
  • "tracker": {
    },
  • "fields": [
    ],
  • "planned": true,
  • "occurrence_at": "2019-08-24T14:15:22Z",
  • "unrecorded_alert": true,
  • "settled_at": "2019-08-24T14:15:22Z",
  • "updated_by_name": "string",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "out_of_range": [
    ]
}

Skip — settle a scheduled or unrecorded entry as not happening

Records who skipped it and when, with an optional note saying why. Its time may be past or still ahead. Refused with 409 if somebody settled it first, or if its tracker is paused.

Authorizations:
bearerAuth
path Parameters
entryId
required
string
Request Body schema: application/json
required
note
string <= 2000 characters

Responses

Request samples

Content type
application/json
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "entry": {
    },
  • "tracker": {
    },
  • "fields": [
    ],
  • "planned": true,
  • "occurrence_at": "2019-08-24T14:15:22Z",
  • "unrecorded_alert": true,
  • "settled_at": "2019-08-24T14:15:22Z",
  • "updated_by_name": "string",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "out_of_range": [
    ]
}

Home

What Home reads — what needs attention, what is coming up, the timeline, journal notes.

What needs attention for one care receiver, most important first

Worked out when it is read; nothing here is dismissed. Ordered unrecorded care first, then readings outside their range, then trackers past their gap, and never more than one item for a tracker — the one that matters most by that order, then the most recent. Unrecorded care leaves the list forty-eight hours after its scheduled time, settled or not. Paused trackers contribute nothing. Home asks for three; See all leads to the Trackers list instead of asking for more.

Authorizations:
bearerAuth
path Parameters
receiverId
required
string
query Parameters
limit
integer [ 1 .. 50 ]
Default: 3

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Each tracker's next scheduled entry, soonest first

One entry per tracker, so a dose given twice a day cannot push next week's appointment out of sight. Only entries whose time is still ahead; paused trackers have none. Home asks for three; the Coming up screen leaves limit off and gets every one. An empty list means nothing is scheduled ahead, and Home leaves the section out.

Authorizations:
bearerAuth
path Parameters
receiverId
required
string
query Parameters
limit
integer [ 1 .. 100 ]

Responses

Response samples

Content type
application/json
[
  • {
    }
]

One day of one care receiver, in time order

date is a day in the receiver's time zone, no later than today there. Holds the entries logged that day, the day's skipped and unrecorded occurrences, and the journal notes written about it, oldest first — paused trackers' entries included, since they still belong to the days they happened on. Occurrences still to come are not listed; Coming up is what looks ahead. An empty items is the day where nothing was logged and nothing was expected.

Authorizations:
bearerAuth
path Parameters
receiverId
required
string
query Parameters
date
required
string <date>

Responses

Response samples

Content type
application/json
{
  • "date": "2019-08-24",
  • "items": [
    ]
}

The occurrences Quick log's picker leads with

Everything still unrecorded from the forty-eight hours before now, oldest first, then everything scheduled for the rest of today in the receiver's time zone, soonest first. Skipped and logged ones are settled and not listed; paused trackers have none.

Authorizations:
bearerAuth
path Parameters
receiverId
required
string

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Write a journal note about this care receiver's day

Any member may write one. at is the time the note is about, and cannot be in the future — a note cannot be planned. Notifies nobody.

Authorizations:
bearerAuth
path Parameters
receiverId
required
string
Request Body schema: application/json
required
at
required
string <date-time>
body
required
string [ 1 .. 5000 ] characters

Responses

Request samples

Content type
application/json
{
  • "at": "2019-08-24T14:15:22Z",
  • "body": "string"
}

Response samples

Content type
application/json
{
  • "note_id": "string",
  • "receiver_id": "string",
  • "at": "2019-08-24T14:15:22Z",
  • "body": "string",
  • "author_name": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_by_name": "string",
  • "updated_at": "2019-08-24T14:15:22Z"
}

One journal note

Authorizations:
bearerAuth
path Parameters
noteId
required
string

Responses

Response samples

Content type
application/json
{
  • "note_id": "string",
  • "receiver_id": "string",
  • "at": "2019-08-24T14:15:22Z",
  • "body": "string",
  • "author_name": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_by_name": "string",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Edit journal note — Save

Any member may edit any note. Records who changed it last and when; the author stays the author. at still cannot be in the future.

Authorizations:
bearerAuth
path Parameters
noteId
required
string
Request Body schema: application/json
required
at
required
string <date-time>
body
required
string [ 1 .. 5000 ] characters

Responses

Request samples

Content type
application/json
{
  • "at": "2019-08-24T14:15:22Z",
  • "body": "string"
}

Response samples

Content type
application/json
{
  • "note_id": "string",
  • "receiver_id": "string",
  • "at": "2019-08-24T14:15:22Z",
  • "body": "string",
  • "author_name": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_by_name": "string",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Delete this note? — Delete

Any member may delete any note. It is gone.

Authorizations:
bearerAuth
path Parameters
noteId
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "string"
}

Coverage

Who is on duty for a care receiver, by assignment and coverage schedule.

Who is on duty for this care receiver right now

Every assignment covering this moment — more than one when they overlap. Empty when nobody is assigned, which is also every team that keeps no roster; Home and Care receiver then show nothing and "nobody assigned" respectively. A coordination signal only; it decides nothing.

Authorizations:
bearerAuth
path Parameters
receiverId
required
string

Responses

Response samples

Content type
application/json
[
  • {
    }
]

The assignments ahead, soonest first

Every assignment that has not yet ended, made by hand or by a coverage schedule. Schedules are made ahead to the same rolling horizon as scheduled entries, so a rule's assignments appear here a few weeks out.

Authorizations:
bearerAuth
path Parameters
receiverId
required
string

Responses

Response samples

Content type
application/json
[
  • {
    }
]

An assignment — Save, for a new one (admin only)

One span of time one caregiver on this team is responsible for. May overlap others. Must end in the future and after it starts; times are local to the receiver.

Authorizations:
bearerAuth
path Parameters
receiverId
required
string
Request Body schema: application/json
required
user_id
required
string

A caregiver on this team now

starts_local
required
string^\d{4}-\d{2}-\d{2}T([01][0-9]|2[0-3]):[0-5][0...
ends_local
required
string^\d{4}-\d{2}-\d{2}T([01][0-9]|2[0-3]):[0-5][0...

Responses

Request samples

Content type
application/json
{
  • "user_id": "string",
  • "starts_local": "string",
  • "ends_local": "string"
}

Response samples

Content type
application/json
{
  • "assignment_id": "string",
  • "receiver_id": "string",
  • "user_id": "string",
  • "caregiver_name": "string",
  • "starts_local": "string",
  • "ends_local": "string",
  • "starts_at": "2019-08-24T14:15:22Z",
  • "ends_at": "2019-08-24T14:15:22Z",
  • "coverage_schedule_id": "string"
}

An assignment — Save or Hand to someone else (admin only)

Changes this one assignment and nothing else. One a coverage schedule made belongs to no rule afterward — its coverage_schedule_id is gone — so editing or removing the rule later leaves it as it is. An assignment that has already ended cannot be changed.

Authorizations:
bearerAuth
path Parameters
assignmentId
required
string
Request Body schema: application/json
required
user_id
required
string

A caregiver on this team now

starts_local
required
string^\d{4}-\d{2}-\d{2}T([01][0-9]|2[0-3]):[0-5][0...
ends_local
required
string^\d{4}-\d{2}-\d{2}T([01][0-9]|2[0-3]):[0-5][0...

Responses

Request samples

Content type
application/json
{
  • "user_id": "string",
  • "starts_local": "string",
  • "ends_local": "string"
}

Response samples

Content type
application/json
{
  • "assignment_id": "string",
  • "receiver_id": "string",
  • "user_id": "string",
  • "caregiver_name": "string",
  • "starts_local": "string",
  • "ends_local": "string",
  • "starts_at": "2019-08-24T14:15:22Z",
  • "ends_at": "2019-08-24T14:15:22Z",
  • "coverage_schedule_id": "string"
}

An assignment — Remove (admin only)

Drops this one assignment and leaves the rule that made it exactly as it was; the rule does not make it again. An assignment that has already ended cannot be removed — it says who was responsible.

Authorizations:
bearerAuth
path Parameters
assignmentId
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "string"
}

The coverage schedules behind the assignments

Rules not removed, ended or not. Any member may read them.

Authorizations:
bearerAuth
path Parameters
receiverId
required
string

Responses

Response samples

Content type
application/json
[
  • {
    }
]

A coverage schedule — Save, for a new one (admin only)

Starts today in the receiver's time zone, and makes its assignments ahead.

Authorizations:
bearerAuth
path Parameters
receiverId
required
string
Request Body schema: application/json
required
user_id
required
string

A caregiver on this team now

required
object (Recurrence)

A rule, not a preset (ADR 0012). The app's choices write into it — every week, two weeks, month and two months are intervals of 1, 2, 4 and 8 weeks. More frequencies can be added later without migrating data.

start_time
required
string^([01][0-9]|2[0-3]):[0-5][0-9]$
end_time
required
string^([01][0-9]|2[0-3]):[0-5][0-9]$
ends_on
string <date>

Responses

Request samples

Content type
application/json
{
  • "user_id": "string",
  • "rule": {
    },
  • "start_time": "string",
  • "end_time": "string",
  • "ends_on": "2019-08-24"
}

Response samples

Content type
application/json
{
  • "coverage_schedule_id": "string",
  • "receiver_id": "string",
  • "user_id": "string",
  • "caregiver_name": "string",
  • "rule": {
    },
  • "start_time": "string",
  • "end_time": "string",
  • "starts_on": "2019-08-24",
  • "ends_on": "2019-08-24"
}

A coverage schedule — Save, for an existing one (admin only)

Redraws the assignments still ahead of it from the new rule, except any already changed by hand, which belong to no rule and stay as they are. Nothing past moves. An end date in the past is refused; ending it today is how a rotation stops now.

Authorizations:
bearerAuth
path Parameters
coverageScheduleId
required
string
Request Body schema: application/json
required
user_id
required
string

A caregiver on this team now

required
object (Recurrence)

A rule, not a preset (ADR 0012). The app's choices write into it — every week, two weeks, month and two months are intervals of 1, 2, 4 and 8 weeks. More frequencies can be added later without migrating data.

start_time
required
string^([01][0-9]|2[0-3]):[0-5][0-9]$
end_time
required
string^([01][0-9]|2[0-3]):[0-5][0-9]$
ends_on
string <date>

Responses

Request samples

Content type
application/json
{
  • "user_id": "string",
  • "rule": {
    },
  • "start_time": "string",
  • "end_time": "string",
  • "ends_on": "2019-08-24"
}

Response samples

Content type
application/json
{
  • "coverage_schedule_id": "string",
  • "receiver_id": "string",
  • "user_id": "string",
  • "caregiver_name": "string",
  • "rule": {
    },
  • "start_time": "string",
  • "end_time": "string",
  • "starts_on": "2019-08-24",
  • "ends_on": "2019-08-24"
}

Remove this coverage schedule? — Remove (admin only)

The rule and every assignment it made that is still ahead go. Every assignment for a time already past stays, still saying who was responsible, as does any assignment changed by hand. Repeating a removal returns 204.

Authorizations:
bearerAuth
path Parameters
coverageScheduleId
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "string"
}

Service

Health and feature flags.

Health check

Returns service health and build metadata.

Responses

Response samples

Content type
application/json
{
  • "status": "ok",
  • "version": "0.1.0",
  • "timestamp": "2019-08-24T14:15:22Z"
}

Return evaluated feature flags

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "flags_demo": {
    }
}