Skip to content

Evidence locker API

The evidence locker and concession ledger for a case, and its one-page timeline.

The same operations are in the interactive API reference, and the whole contract is in the OpenAPI document.

GET/v1/locker/cases

Cases with evidence

The cases that have something in the evidence locker, newest first, with how many items. Needs locker:read.

Scope locker:read. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

GET/v1/locker/cases/{case}/timeline

Timeline of a case

Everything kept for the case in the order it happened: the case's own steps, photos, bills, chats, calls, payments, and what each side gave. Sources linked to the case are filed first. Needs locker:read.

Scope locker:read. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
casepathstringYesThe case id.
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

POST/v1/locker/cases/{case}/items

Add to the locker

Files a photo, bill, chat, transcript, call, payment, document or note. The same source in the same case is one item. Needs locker:write.

Scope locker:write. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
casepathstringYesThe case id.
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

POST/v1/locker/cases/{case}/files

Add a photo or file to the case

Stores the bytes in the body (up to 8 MiB) through the files service and files them as a photo (an image) or a document. The same bytes in the same case are one item. Needs locker:write.

Scope locker:write. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
casepathstringYesThe case id.
namequerystringYesThe file name.
titlequerystringNoWhat the timeline calls it. Default is the file name.
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

DELETE/v1/locker/cases/{case}/items/{item}

Remove an item

Takes out an item added by mistake. The page and timeline carry a code of the locker's lines, so a missing one shows. Needs locker:write.

Scope locker:write. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
casepathstringYesThe case id.
itempathstringYesThe item id.
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

POST/v1/locker/cases/{case}/concessions

Record a concession

Records who gave what and why in a negotiation or dispute: a discount, a day, a waived fee. One per side and turn. Needs locker:write.

Scope locker:write. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
casepathstringYesThe case id.
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

GET/v1/locker/cases/{case}/page

One-page timeline

The case on one page, ready to print or take to the other side: oldest and latest lines kept, the middle counted, what each side gave, and a check code. Names appear only where known. Needs locker:read.

Scope locker:read. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
casepathstringYesThe case id.
headingquerystringNoThe heading. Default names the case.
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.