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 body
Response
Successful Response
{"stackTrail":"paths:/v1/auth/cli/approve:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}
Changes
No recorded changes to this endpoint across all 1 revision of this API.