Safety API
The family code word, words agreed with suppliers, and the checks of who is asking before money moves or an account changes.
The same operations are in the interactive API reference, and the whole contract is in the OpenAPI document.
GET/v1/safety/code-words
The code words
Which words are kept (the family's, a circle's, a supplier's), whether each still works, and since when. The phrase and its digest are never returned. Needs miniself:read.
Scope safety:read. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
PUT/v1/safety/code-words
Set a code word
Sets or replaces the word for the family, a circle or a party. The phrase goes into a salted digest and is not kept. Needs the right to change settings.
Scope safety:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/safety/code-words/leaked
Say a word leaked
The word stops checking anything. Checks that needed it go to the owner until a new word is set. Needs the right to change settings.
Scope safety:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
GET/v1/safety/checks
Checks of who is asking
Newest first. A check is opened before money goes to a relative or an account is changed. Needs miniself:read.
Scope safety:read. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
open | query | boolean | No | Only checks still open. |
limit | query | integer | No | How many. Default 50. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/safety/checks
Open a check
Opens a check, or returns the one already open for the same purpose, subject and reference. A money request needs the code word; a change of account needs a call back to the contact saved first, and the supplier's word as well when one is agreed. Needs miniself:write.
Scope safety:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
GET/v1/safety/checks/{id}
One check
Where the check stands. Needs miniself:read.
Scope safety:read. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/safety/checks/{id}/evidence
Answer a check
Gives the check one piece of evidence: the number matched, the call back answered, the word was said, or the owner decided. Three wrong words lock the check and the owner is told. A closed or expired check takes no more. Needs miniself:write; the owner's decision needs the right to change settings.
Scope safety:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |