auth

Poll Device Token

Exchanges an approved device code for a CLI token, once.

No auth: the device code is the secret. Answers 400 with {"error": ...} while the code is pending (authorization_pending), polled too fast (slow_down), expired, unknown or already used (expired_token), or denied (access_denied).

post/api/auth/device/token

Request

  • Base URL
    https://api.maritime.sh (the document declares no server; this is the origin it was published from)
  • URL
    https://api.maritime.sh/api/auth/device/token
  • Auth
    none declared

Request body

device_codestring required

Response

Successful Response

unknown required

Changes

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