Create a new CLI session with auth code
Generates a new CLI session with a random 6-character code. This endpoint is the first step in the CLI authentication flow, creating a session that can later be linked to a user account. The generated code is displayed to the user in the CLI and should be entered in the web interface to complete authentication.
Headers
x-api-key
Response
CLI session created successfully with a unique ID and temporary authentication code
id
Unique identifier for the CLI session. UUID v4 format used for tracking and retrieval.
code
The 6-character hexadecimal code used for CLI login
expiresAt
The ISO timestamp when the session expires
status
The current status of the session
Allowed values: