The scopes
| Scope | What it covers |
|---|---|
safety:read |
Reading an end user’s safety records, and revealing the contacts a record masks. |
safety:update |
Raising a record, changing it, recording each step, and closing it. |
Choosing every scope on a key never includes either of these. An Owner or Admin has to tick each one. Give them only to a system that handles a disclosure the way your own family violence policy says. Give them to no one who doesn’t need them.
What you must do with the data
- Keep it from anyone it could endanger. A safety record exists because someone’s contact details could be used to find them. Don’t copy the revealed contacts, the safe contact or the notes anywhere other staff, other systems or the other person on the account can see them.
- Use only the agreed way to communicate. When the record names a method, time, safe number or safe email, contact the person only that way.
- Post bills only to the safe postal address. Under
safe_post, a bill goes tosafePostalAddress, never to the end user’s own address. The bill PDF printssafePostalAddressin its address block, or no address when there is none. It never prints an internet service’s street address or location ID. - Follow the steps in order. Record that the person confirmed it is safe to talk before you record that support was explained, or whether they want more. The API refuses steps out of order with 409, as the portal does.
- Close a record, never delete it. A closed record is kept until its
retention date,
retentionExpiresAt. There is no delete call.
Every read and reveal is audited
Every call, including each read, is made with your key. Every change and
every reveal goes in your audit log, naming the key. A step taken by API
names no person on the record, so identifiedBy, supportAdvisedBy and
closedBy are null. The audit log names the key instead.
Masked contacts
While an active record suppresses contact disclosure, every end-user call
withholds the end user’s email, phone and addresses, and contactsMasked is
true. POST /end-users/{endUser}/contacts/reveal, on safety:read, returns
them. Each call is audited as a reveal. Ask for them only when you need them
for the call in front of you.
A record’s own safe contacts are the safe number, safe email and safe postal
address. We store them encrypted and mask them on every read of the record.
safeContactNumber, safeContactEmail and safePostalAddress are always
null there, and safeContactsMasked says whether any is recorded.
POST /end-users/{endUser}/safety-records/{recordId}/safe-contacts/reveal,
on safety:read, returns them. Each call is audited as a reveal naming the
record.
To change a safe contact, send it on PATCH. Leave it out to keep it, or
send null to clear it.
The workflow
-
POST /end-users/{endUser}/safety-recordsraises a record with:- the reason
- the agreed way and time to communicate
- whether to suppress contact details, which is on by default
- the safe number and email
- the safe postal address,
safePostalAddress - how they want their bills,
billDelivery:safe_email,safe_post,portal_onlyornone. Their bills and billing notices follow it. AbillDeliveryNotegoes with it. - notes.
safe_postneeds a safe postal address. Without one the call is refused with422, onsafePostalAddress. -
POST .../safety-records/{recordId}/confirm-saferecords that the person confirmed it is safe to talk. -
POST .../support-advisedrecords that support was explained.POST .../further-supportwithwantedrecords whether they want more. -
PATCH .../safety-records/{recordId}changes the record while it is active. -
POST .../closecloses it and sets its retention date.