curl --request GET \
--url https://api.example.com/api/auth/me \
--header 'Authorization: <authorization>'{
"success": true,
"data": {
"id": "<string>",
"email": "<string>",
"fullName": "<string>",
"phone": {},
"avatar": {},
"emailVerified": true,
"lastLoginAt": {},
"createdAt": "<string>",
"isPlatformAdmin": true,
"globalPermissions": [
{
"key": "<string>",
"description": "<string>",
"grantedAt": "<string>"
}
],
"companies": [
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"logo": {},
"status": "<string>",
"membershipId": "<string>",
"membershipStatus": "<string>",
"roles": [
{
"id": "<string>",
"name": "<string>",
"color": "<string>"
}
],
"permissions": [
{}
]
}
]
}
}Get current authenticated user profile with platform status, permissions, and companies
curl --request GET \
--url https://api.example.com/api/auth/me \
--header 'Authorization: <authorization>'{
"success": true,
"data": {
"id": "<string>",
"email": "<string>",
"fullName": "<string>",
"phone": {},
"avatar": {},
"emailVerified": true,
"lastLoginAt": {},
"createdAt": "<string>",
"isPlatformAdmin": true,
"globalPermissions": [
{
"key": "<string>",
"description": "<string>",
"grantedAt": "<string>"
}
],
"companies": [
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"logo": {},
"status": "<string>",
"membershipId": "<string>",
"membershipStatus": "<string>",
"roles": [
{
"id": "<string>",
"name": "<string>",
"color": "<string>"
}
],
"permissions": [
{}
]
}
]
}
}Retrieves the complete profile of the currently authenticated user, including platform admin status, global permissions, and company memberships with their associated roles and permissions.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/LeonardoCaero/platform-api/llms.txt
Use this file to discover all available pages before exploring further.
Bearer <access_token>Show data properties
Show companies items
{
"success": false,
"error": {
"message": "Unauthorized",
"statusCode": 401
}
}
{
"success": false,
"error": {
"message": "User not found",
"statusCode": 404
}
}
curl -X GET https://api.example.com/api/auth/me \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
{
"success": true,
"data": {
"id": "clx1234567890abcdef",
"email": "user@example.com",
"fullName": "John Doe",
"phone": "+1234567890",
"avatar": "https://example.com/avatars/user.jpg",
"emailVerified": true,
"lastLoginAt": "2026-03-04T10:30:00.000Z",
"createdAt": "2026-01-15T08:20:00.000Z",
"isPlatformAdmin": false,
"globalPermissions": [
{
"key": "users:manage",
"description": "Manage all platform users",
"grantedAt": "2026-02-01T12:00:00.000Z"
}
],
"companies": [
{
"id": "clx9876543210zyxwvu",
"name": "Acme Corporation",
"slug": "acme-corp",
"logo": "https://example.com/logos/acme.png",
"status": "ACTIVE",
"membershipId": "clx5555555555aaaaa",
"membershipStatus": "ACTIVE",
"roles": [
{
"id": "clx7777777777bbbbb",
"name": "Admin",
"color": "#FF5733"
}
],
"permissions": [
"company:manage",
"members:invite",
"projects:create",
"projects:delete"
]
}
]
}
}