API keys

Poll a device code for the key. No auth.

Returns { status } — "pending" (keep polling at the advertised interval), "authorized" with a one-time api_key, or "denied" / "expired" / "consumed" (stop). The key is handed over exactly once: store it on the first authorized poll.

post/api-keys/device-code/poll

Request

  • Base URL: https://api.stacktr.ee
  • URL: https://api.stacktr.ee/api-keys/device-code/poll
  • Auth: none required

Request body

device_codestring required

Response

Current status, with the key on the first authorized poll.

status'pending' | 'authorized' | 'denied' | 'expired' | 'consumed' required
api_keystring

Present only on the first poll after the human authorizes. Shown once; store it immediately.

Changes

No recorded changes to this operation across all 1 revision of this API.