auth

Cli Auth Approve

Approve a pending CLI session for the authenticated user.

Called by the /connect page through the web proxy, so the caller is the logged-in user (resolved by get_current_org). Mints a fresh, labeled API key for that user, stamps it onto the session, and marks it approved. The raw key is stored on the session only until the CLI's next poll retrieves it (single-use), never exposed to the browser.

post/v1/auth/cli/approve

Request

Request body

user_codestring required

Response

Successful Response

unknown required

Changes

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