{
  "opencollection": "1.0.0",
  "info": {
    "name": "Composio Platform Account Management CLI Authentication API",
    "version": "3.0.0"
  },
  "items": [
    {
      "info": {
        "name": "CLI Authentication",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a new CLI session with auth code",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://backend.composio.dev/api/v3/cli/create-session",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "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. Optionally accepts a scope ('project' or 'user') and a source string."
        },
        {
          "info": {
            "name": "Get CLI session details by ID or code",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://backend.composio.dev/api/v3/cli/get-session",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "query",
                "description": "CLI session ID (UUID format) or 6-character code to check. Both formats are supported for flexibility in client implementations."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "authToken",
              "value": "{{authToken}}",
              "placement": "query"
            }
          },
          "docs": "Retrieves the current state of a CLI session using either the session ID (UUID) or the 6-character code. This endpoint is used by both the CLI client to check if the session has been linked, and by the web interface to display session details before linking."
        }
      ]
    }
  ],
  "bundled": true
}