Glossary
The terms of the packeroo API in short, from organization and location to table and table device, token, scope, sandbox and Idempotency-Key.
Organization, location, table
- Organization: A company, club or pub at packeroo. It owns locations, leagues and devices.
GET /devicenames it inorganization. - Location: A place of the organization with an address and a time zone, such as an office or a hall. Whoever looks after it pairs devices there. In the contract
location. - Table: A table football table, a darts board or another place to play at a location. In the contract
table. - Table device: A device that belongs to exactly one table and signs in with a device token, such as a Raspberry Pi with a display or a table with goal detection. A table has at most one device.
Pairing
- Code: Six characters a device shows after
POST /device-pairings, valid for ten minutes. Whoever looks after the location enters it in the app. - Pair, unpair: Pairing makes a device the device of a table; unpairing takes its token away. See Pair a table device.
- Switching table devices off: An organization can switch all its devices off at once. While they are off, none pairs, and every token gets
401.
Signing in
- Token: The secret string a device signs in with, as
Authorization: Bearer …. Device tokens start withpkd_live_, orpkd_test_in the sandbox. See Concepts. - Scope: A right of a token, such as
matches:write.GET /devicenames them inscopes. - Organization key: Planned. A token for the servers of an organization, such as an intranet or dashboards, with the prefix
pko_.
Requests
- Idempotency-Key: A UUID or ULID in the header of that name on every writing request. The same request with the same key takes effect once.
- Problem: An error answer after RFC 9457 with a fixed
code. See Error answers. - correlation_id: The id of a request, in every error answer and in the header
X-Correlation-Id. Give it when you write to us. - Sandbox: The demo environment at
https://api.qm.packeroo.com/api/v1withpkd_test_tokens, for trying things out. It can be reset.