v1

latestOpenAPI 3.1.02026-08-04151221521.2 KB
CLI Authentication

Exchange Cli Token

Exchange authorization code for session JWT using PKCE.

post/v1/auth/cli/token

Request body

codestring required

Authorization code from OAuth callback

code_verifierstring required

PKCE code verifier

Response

Successful Response

emailstring nullable

User email

expires_ininteger required

Token expiration in seconds

member_idstring nullable

User ID from WorkOS

namestring nullable

User display name

org_idstring nullable

Organization ID (if applicable)

refresh_tokenstring nullable

Refresh token for obtaining new access tokens

session_jwtstring required

Session JWT (WorkOS access token)