> ## 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.

# Current user

Return the signed-in user's profile + usage stats (plan, generations used, reset window).

` GET /api/user/me `

Get current user profile and usage stats

## 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 ` — User profile

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` id `, ` email `, ` plan `, ` aiGenerationsUsed `, ` compositionCount `, ` themeCount `

  - ` id `: type ` string `

  - ` email `: type ` string `

  - ` plan `: type ` string `

  - ` aiGenerationsUsed `: type ` number `

  - ` aiGenerationsResetAt `: type ` string `; nullable

  - ` compositionCount `: type ` number `

  - ` themeCount `: type ` number `

  - ` createdAt `: type ` string `; nullable

### ` 401 ` — Authentication required

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` error `

  - ` error `: type ` string `

## Request examples

### cURL

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

### JavaScript

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

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

### Python

```python
import requests

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