Authentication
Current User
Get the currently authenticated user's information.
GET /api/auth/me
Returns information about the currently authenticated user.
Auth: Required (any authenticated user)
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <access_token> |
Example
curl https://api.reten.ai/api/auth/me \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."import axios from 'axios';
const response = await axios.get(
'https://api.reten.ai/api/auth/me',
{
headers: {
Authorization: 'Bearer <token>',
},
}
);
const user = response.data;Response 200 OK
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"email": "admin@example.com",
"firstName": "Admin",
"lastName": "User",
"tenantIds": [
"660e8400-e29b-41d4-a716-446655440000"
],
"roles": ["SUPER_ADMIN"]
}Error Responses
| Status | Description |
|---|---|
401 | Invalid or expired access token |