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-keystringRequired

Response

CLI session created successfully with a unique ID and temporary authentication code
idstring
Unique identifier for the CLI session. UUID v4 format used for tracking and retrieval.
codestring

The 6-character hexadecimal code used for CLI login

expiresAtstring
The ISO timestamp when the session expires
statusenum
The current status of the session
Allowed values:

Errors