The API.
One HTTP API under /api/v1. The interface, the dokkit program, the libraries and the MCP endpoint are all clients of it, so nothing can be seen or done in the interface that the API cannot do. The same document is openapi.json, in OpenAPI 3.1.
Hand this page to an AI tool
https://dokkit.dev/api.mdDownload it as Markdown, or the OpenAPI file, or give it everything in one file.
Keys
Every call carries a key as Authorization: Bearer <key>. The prefix says what kind it is, and the server keeps only a hash.
| Key | Held by | Can do |
|---|---|---|
dke_ enrolment token | Pasted once into dokkit enrol | One use. Trades for a machine key. |
dkm_ machine key | The dokkit program | Report for that machine, propose, take work. |
dka_ app key | A library or a script inside an app | Write only, for one service. It cannot read anything. |
dku_ user token | Scripts and AI tools | What its scopes allow: read, read-logs, act, admin. |