# packeroo API

> packeroo runs leagues, tournaments and match results for table football and other table sports in companies. The public API is new: today a table device (a scoring table, a display at the table) pairs itself with a table of a location and reads what it is paired with. Starting, scoring and reporting matches from the device, chips, webhooks and organization keys are planned and not available yet.

- Live API: https://api.packeroo.com/api/v1, tokens `pkd_live_…`
- Sandbox (demo): https://api.qm.packeroo.com/api/v1, tokens `pkd_test_…`. In the sandbox a device pairs itself at a test table of its own with POST /sandbox/device-pairings/confirm, no person needed; that operation answers 404 on the live API.
- Every request of a device sends a `User-Agent` naming product and firmware; every write sends an `Idempotency-Key` (ULID or UUID). Errors are RFC 9457 problem details with a stable `code`.

## Docs (English)

- [Connect your foosball table to packeroo](https://developers.packeroo.com/en/index.md): The public packeroo API with a guide, a reference and runnable examples in Python, JavaScript, C#, PHP, Go, Java, curl and for the ESP32. Today you pair a table device with a table.
- [Your first call in five minutes](https://developers.packeroo.com/en/quickstart.md): Ask the sandbox for a code for a table device and read GET /device with its token. With Python, JavaScript, C#, PHP, Go, Java, curl and for the ESP32.
- [Pair a table device](https://developers.packeroo.com/en/guides/pair-a-table-device.md): Ask for a code, show it with a QR code, keep the token safe and wait for the pairing. With a complete program in Python, JavaScript, C#, PHP, Go, Java, curl and for the ESP32.
- [Concepts](https://developers.packeroo.com/en/concepts.md): How the packeroo API signs in, makes retries safe, reports errors and limits requests. Token prefixes, idempotency keys, problem answers after RFC 9457, rate limits, User-Agent, times and versions.
- [Reference](https://developers.packeroo.com/en/reference.md): Every public operation of the packeroo API with parameters, answers, error codes and code samples in curl, Python, JavaScript, PHP, Java, Kotlin, C#, Go, Ruby, Swift, Dart, Rust and PowerShell.
- [Postman and OpenAPI](https://developers.packeroo.com/en/downloads.md): The public packeroo API as OpenAPI 3.1 in JSON and YAML, the Postman collection with a sandbox environment, and the import into Insomnia, Bruno and Hoppscotch.
- [Changelog](https://developers.packeroo.com/en/changelog.md): What changes in the public packeroo API, with dates. Also as an RSS feed.
- [For AI assistants](https://developers.packeroo.com/en/ai.md): llms.txt, llms-full.txt, every page as Markdown and the OpenAPI contract at fixed addresses, so assistants and coding agents explain the packeroo API correctly.
- [Security and privacy](https://developers.packeroo.com/en/security-and-privacy.md): What a table device sends to packeroo, what packeroo keeps of it and for how long, how tokens are protected, and how to report a vulnerability. For developers, IT and data protection.
- [Glossary](https://developers.packeroo.com/en/glossary.md): The terms of the packeroo API in short, from organization and location to table and table device, token, scope, sandbox and Idempotency-Key.
- [Search](https://developers.packeroo.com/en/search.md): Search every page of packeroo for developers, from the guide and the concepts to the glossary.

## Docs (Deutsch)

- [Bau deinen Kickertisch an packeroo an](https://developers.packeroo.com/index.md): Die öffentliche API von packeroo mit Anleitung, Referenz und lauffähigen Beispielen in Python, JavaScript, C#, PHP, Go, Java, curl und für den ESP32. Heute verbindest du ein Tischgerät mit einem Tisch.
- [In fünf Minuten zum ersten Aufruf](https://developers.packeroo.com/schnellstart.md): Fordere in der Sandbox einen Code für ein Tischgerät an und lies mit dem Token GET /device. Mit Python, JavaScript, C#, PHP, Go, Java, curl und für den ESP32.
- [Ein Tischgerät verbinden](https://developers.packeroo.com/anleitung/tischgeraet-verbinden.md): Code anfordern, Code und QR-Code zeigen, das Token sicher ablegen und auf die Verbindung warten. Mit vollständigem Programm in Python, JavaScript, C#, PHP, Go, Java, curl und für den ESP32.
- [Konzepte](https://developers.packeroo.com/konzepte.md): Wie die packeroo-API anmeldet, Wiederholungen sicher macht, Fehler meldet und begrenzt. Token-Präfixe, Idempotency-Key, Problemantworten nach RFC 9457, Ratenlimits, User-Agent, Zeiten und Versionen.
- [Referenz](https://developers.packeroo.com/referenz.md): Jede öffentliche Operation der packeroo-API mit Parametern, Antworten, Fehlercodes und Codebeispielen in curl, Python, JavaScript, PHP, Java, Kotlin, C#, Go, Ruby, Swift, Dart, Rust und PowerShell.
- [Postman und OpenAPI](https://developers.packeroo.com/downloads.md): Die öffentliche packeroo-API als OpenAPI 3.1 in JSON und YAML, die Postman-Collection mit Sandbox-Umgebung und der Import in Insomnia, Bruno und Hoppscotch.
- [Changelog](https://developers.packeroo.com/changelog.md): Was sich an der öffentlichen packeroo-API ändert, mit Datum. Auch als RSS-Feed.
- [Für KI-Assistenten](https://developers.packeroo.com/ki.md): llms.txt, llms-full.txt, jede Seite als Markdown und der OpenAPI-Vertrag an festen Adressen, damit Assistenten und Coding-Agents die packeroo-API richtig erklären.
- [Sicherheit und Datenschutz](https://developers.packeroo.com/sicherheit-und-datenschutz.md): Was ein Tischgerät an packeroo schickt, was packeroo davon speichert und wie lange, wie Tokens geschützt sind und wie du eine Sicherheitslücke meldest. Für Entwickler, IT und Datenschutz.
- [Glossar](https://developers.packeroo.com/glossar.md): Die Begriffe der packeroo-API kurz erklärt, von Organisation und Standort über Tisch und Tischgerät bis zu Token, Scope, Sandbox und Idempotency-Key.
- [Suche](https://developers.packeroo.com/suche.md): Durchsuche alle Seiten von packeroo für Entwickler, von der Anleitung über die Konzepte bis zum Glossar.

## Contract

- [OpenAPI 3.1 (JSON)](https://developers.packeroo.com/openapi.json): only the public operations
- [OpenAPI 3.1 (YAML)](https://developers.packeroo.com/openapi.yaml)
- [Postman collection](https://developers.packeroo.com/packeroo.postman_collection.json) and [sandbox environment](https://developers.packeroo.com/packeroo-sandbox.postman_environment.json)

## Optional

- [Full text of every page](https://developers.packeroo.com/llms-full.txt)
- [Changelog feed](https://developers.packeroo.com/en/changelog/feed.xml)
