> ## Documentation Index
> Fetch the complete documentation index at: https://docs.motioness.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get current session

` GET /api/user/session `

Get current session

## Servers

- ` https://motioness.com ` — Production

## Authentication

The operation accepts these alternatives. Schemes within one alternative are required together.

### Alternative 1

- ` sessionCookie `: ` apiKey `

  - Credential: ` better-auth.session_token ` in ` cookie `

  - Session cookie set by /api/user/signin, /api/user/signup, or the OAuth callback. Required for all authenticated endpoints.

## Responses

### ` 200 ` — Session info

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` user `

  - ` user `: type ` unknown `

    - ` allOf constraint 1 `: type ` object `

      - Required fields: ` id `, ` email `, ` name `

      - ` id `: type ` string `

      - ` email `: type ` string `

      - ` name `: type ` string `

    - ` allOf constraint 2 `: type ` unknown `; nullable

## Request examples

### cURL

```curl
curl -X GET 'https://motioness.com/api/user/session'
```

### JavaScript

```javascript
const response = await fetch('https://motioness.com/api/user/session', {
  method: 'GET'
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

response = requests.get('https://motioness.com/api/user/session')
print(response.json())
```