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

# Identité & Profil

> Consultation en lecture seule (GET) des métadonnées du profil associé au jeton Bearer.

**URL de base** : `https://api.ouitogether.ai`\
**Accès** : Lecture seule (`GET`) — En-tête `Authorization: Bearer <ACCESS_TOKEN>` requis.

## Ressource disponible

| Ressource | Méthode | Endpoint | Description |
| :- | :- | :- | :- |
| **Profil courant** | `GET` | `/api/auth/users/me/` | Métadonnées du compte associé au jeton Bearer actif |

***

## Consulter le profil courant (`GET /api/auth/users/me/`)

Retourne les métadonnées d'identité associées au jeton `Bearer` transmis dans l'en-tête HTTP `Authorization`.

**Authorization** `string` *required*

Jeton d'accès au format `Bearer <ACCESS_TOKEN>`.

**Accept** `string` (default: application/json)

Format de réponse attendu (`application/json`).

### Métadonnées retournées

**email** `string` *required*

Adresse électronique principale du compte.

**first\_name** `string`

Prénom enregistré sur le profil.

**last\_name** `string`

Nom de famille enregistré sur le profil.

```bash cURL theme={null}
curl -X GET "https://api.ouitogether.ai/api/auth/users/me/" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Accept: application/json"
```

```typescript TypeScript theme={null}
const response = await fetch("https://api.ouitogether.ai/api/auth/users/me/", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${accessToken}`,
    Accept: "application/json",
  },
});

if (!response.ok) {
  throw new Error(`HTTP ${response.status}`);
}

const profile = await response.json();
```

```python Python theme={null}
import requests

response = requests.get(
    "https://api.ouitogether.ai/api/auth/users/me/",
    headers={
        "Authorization": f"Bearer {access_token}",
        "Accept": "application/json",
    },
    timeout=15,
)
response.raise_for_status()
profile = response.json()
```

```json 200 OK theme={null}
{
  "email": "integration@client-exemple.com",
  "first_name": "Nadia",
  "last_name": "Bensaid"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.