CLI Authentication
x-internal
Create a new CLI session with auth code
Changed onGenerates 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. Optionally accepts a scope ('project' or 'user') and a source string.
post/api/v3/cli/create-session
Request
- Base URLhttps://backend.composio.dev
- URLhttps://backend.composio.dev/api/v3/cli/create-session
- Authno_auth (a scheme the document does not define)
Request body
Response
CLI session created successfully with a unique ID and temporary authentication code
Example response
{
"code": "ABC123",
"expiresAt": "2023-01-01T12:00:00.000Z",
"status": "pending",
"scope": "project"
}Changes
- info
api tag
x-internaladded - info
added optional request body
- info
added the required property
to the response with the status
- info
- info
added the required property
/to the response with the status - info
added the required property
/to the response with the status
- info