# Get current user session information

**Documentation:** /reference/api-reference/authentication/getAuthSessionInfo

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/auth/session/info`

**Endpoint:** `https://backend.composio.dev/api/v3/auth/session/info`

**Summary:** 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.

### Authentication

**ApiKeyAuth** - API Key in `header` header `x-api-key` OR **UserApiKeyAuth** - API Key in `header` header `x-user-api-key`

### Responses

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

**Response Schema:**

- `project` (object,null) *(required)*: Details of the current active project (null if accessing with org-level credentials)
- `api_key` (object,null) *(required)*: Details of the API key used for authentication (null if using session auth)
- `org_member` (object) *(required)*: Information about the authenticated user
  - `id` (string) *(required)*: UUID identifier for the organization member
  - `email` (string) *(required)*: Email address of the authenticated user
  - `name` (string) *(required)*: Display name of the authenticated user
  - `role` (string) *(required)*: Access role of the authenticated user within the organization

**Example Response:**

```json
{
  "project": null,
  "api_key": null,
  "org_member": {
    "id": "string",
    "email": "string",
    "name": "string",
    "role": "string"
  }
}
```

#### 400 - Bad request. The request format may be invalid or missing required parameters.

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

#### 401 - Unauthorized. Authentication is required or the provided credentials are invalid or expired.

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

#### 403 - Forbidden. The authenticated user does not have permission to access this resource.

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

#### 404 - Not found. The requested project, organization, or member resource could not be found.

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

#### 500 - Internal server error. An unexpected error occurred while processing the request.

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

### Example cURL Request

```bash
curl -X GET "https://backend.composio.dev/api/v3/auth/session/info" \
  -H "x-api-key: YOUR_API_KEY"
```