Link a CLI session to the authenticated user
Links a pending CLI session to the currently authenticated user. This is the final step in the CLI authentication flow, where the user enters the code in the web interface and their account is associated with the CLI session, allowing the CLI to act on their behalf.
Headers
x-api-key
Request
This endpoint expects an object.
id
The CLI session ID or code to link to the current user
Response
CLI session linked successfully. The CLI client can now use this session to authenticate API requests on behalf of the linked user.
id
The unique identifier for the CLI session
code
The 6-character hexadecimal code used for CLI login
status
The current status of the session
Allowed values:
expiresAt
The ISO timestamp when the session expires
account
Information about the linked account. Always present for successful responses from this endpoint.