CLI Authentication
x-internal
Get CLI session details by ID or code
Changed onRetrieves the current state of a CLI session using either the session ID (UUID) or the 6-character code. The first UUID lookup after the session is linked returns its API key; each session issues one key. A code lookup reports status only and never returns a key.
get/api/v3/cli/get-session
Request
- Base URLhttps://backend.composio.dev
- URLhttps://backend.composio.dev/api/v3/cli/get-session
- Authno_auth (a scheme the document does not define)
Query parameters
idstring required
The CLI session ID or code to check
Example:ABC123
CLI session ID (UUID format) or 6-character code to check. Both formats are supported for flexibility in client implementations.
Response
CLI session retrieved successfully. Returns full session details including linked account information if available.
Example response
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"code": "ABC123",
"status": "pending",
"expiresAt": "2023-01-01T12:00:00.000Z",
"account": {
"id": "user_12345",
"email": "user@example.com",
"name": "John Doe"
},
"api_key": "1234567890",
"scope": "project"
}Changes
- info
added the non-success response with the status
- info
- info
added the non-success response with the status
- info