Authentication
User
Session

Get current user session information

Retrieves detailed information about the current authenticated user session, including project details, organization membership, and API key information if applicable. This endpoint is useful for verifying authentication status and retrieving contextual information about the authenticated user and their access privileges.

get/api/v3.1/auth/session/info

Response

Session is valid and active. Returns detailed information about the authenticated user, their project, and organization.

Example response

{
  "project": {
    "auto_id": 12345,
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "org_id": "550e8400-e29b-41d4-a716-446655440001",
    "name": "Production API",
    "email": "project-123@composio.dev",
    "nano_id": "pr_1a2b3c4d5e6f",
    "created_at": "2023-05-16T14:30:00.000Z",
    "updated_at": "2023-05-18T09:15:30.000Z",
    "webhook_url": "https://example.com/webhook",
    "event_webhook_url": "https://example.com/events",
    "webhook_secret": "whsec_a1b2c3d4e5f6g7h8i9j0",
    "triggers_enabled": true,
    "last_subscribed_at": "2023-05-17T10:00:00.000Z",
    "is_new_webhook": true,
    "webhook_version": "V2",
    "org": {
      "id": "ok_1a2b3c4d5e6f",
      "name": "Acme Corp",
      "plan": "BUSINESS"
    }
  },
  "api_key": {
    "auto_id": 7890,
    "id": "550e8400-e29b-41d4-a716-446655440003",
    "name": "Development Key",
    "project_id": "pr_1a2b3c4d5e6f",
    "org_member_id": "550e8400-e29b-41d4-a716-446655440002",
    "created_at": "2023-05-01T10:00:00.000Z",
    "updated_at": "2023-05-01T10:00:00.000Z",
    "key": "ak_a1b2c3d4e5f6g7h8i9j0"
  },
  "org_member": {
    "id": "550e8400-e29b-41d4-a716-446655440002",
    "email": "user@example.com",
    "name": "John Doe",
    "role": "admin",
    "metadata": {
      "prefers_old_dashboard": false
    }
  }
}

Changes

Changed in 4 of the 61 revisions of this API.14

  • 5356789d8d1111See the full diff
    • removed the optional property org_member/metadata/createdInBetterAuth from the response with the 200 status

      response-optional-property-removed

    • the endpoint scheme security ApiKeyAuth was removed from the API

      api-security-removed

    • the endpoint scheme security CookieAuth was removed from the API

      api-security-removed

    • added the optional property org_member/metadata/seen_connect_announcement to the response with the 200 status

      response-optional-property-added

    • endpoint added

      endpoint-added