Auth

Finalize CLI login

Redeems the single-use login code delivered to the CLI's loopback listener, proving possession of the PKCE code verifier, and returns a CLI session token.

post/auth/cli/complete

Request

  • Base URL: /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/v1/auth/cli/complete
  • Auth: none declared

Request body

client_versionstring
code_verifierstring required
device_idstring
device_namestring
device_osstring
login_codestring required

Response

OK

channelstring
device_idstring
device_namestring
emailstring
enrollment_requiredboolean
expires_atstring
mfa_requiredboolean
mfa_verifiedboolean
namestring
session_idinteger
tokenstring

Changes

No recorded changes to this operation across all 50 revisions of this API.