Identity

Poll and exchange an approved CLI login

Poll no faster than the returned interval. authorization_pending means continue; slow_down permanently increases the interval by five seconds (also reflected in Retry-After). Stop for access_denied, expired_token, or invalid_grant. On approval, current membership, project status and organization key limits are checked again. The grant mints a normal signed API key once, expiring after thirty days. There is no refresh token or replay: if a successful response is lost, restart login. The key can be revoked from the console.

post/auth/cli/device/token

Request

  • Base URL: https://api.pyai.com
  • URL: https://api.pyai.com/auth/cli/device/token
  • Auth: none required

Request body

device_codestring required
code_verifierstring required

Response

Credential returned once. Store securely; never log it.

api_keystring required
key_idstring required
org_idstring required
project_idstring required
environment'test' | 'live' required
scopesstring[] required
expires_atinteger required

Unix milliseconds.

Changes

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