Authentication

Exchange CLI auth code for API token

Exchanges a one-time authorization code (from the browser auth flow) and a PKCE code_verifier for a new API token. No Bearer token required.

post/auth/cli/exchange

Request

  • Base URL: https://kovatools.com/api/v1
  • URL: https://kovatools.com/api/v1/auth/cli/exchange
  • Auth: none required

Request body

codestring required

One-time authorization code from browser callback

code_verifierstring required

PKCE code verifier (plain, SHA-256 of this must match the code_challenge)

statestring required

State value from browser callback, must match original login state

Response

Token issued

Changes

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