CLI Auth

Exchange a CLI authorization code for an API key

Changed on

Completes the CLI browser-login flow: verifies the single-use authorization code and its PKCE code_verifier, then mints and returns the approved API key exactly once.

post/v1/cli/auth/token

Request

  • Base URL
    https://api.roark.ai
  • URL
    https://api.roark.ai/v1/cli/auth/token
  • Auth
    HTTP bearer

Request body

codestring required
code_verifierstring required

Response

The minted API key

Changes

    • breaking

      the response property / became nullable for the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      endpoint added