v1

latestOpenAPI 3.1.02026-08-04151221521.2 KB
CLI Authentication

Refresh Cli Token

Refresh an expired session JWT using a refresh token.

Note: Refresh tokens are single-use. The response contains a new refresh_token that must replace the old one for future refresh operations.

post/v1/auth/cli/refresh

Request body

refresh_tokenstring required

Refresh token from previous authentication

Response

Successful Response

expires_ininteger required

Token expiration in seconds

refresh_tokenstring required

New refresh token (replaces the old one)

session_jwtstring required

New session JWT (WorkOS access token)