curl --request GET \
--url https://api.example.com/api/auth/profile{
"user": {
"_id": "<string>",
"supabaseId": "<string>",
"email": "<string>",
"name": "<string>",
"role": "<string>",
"emailVerified": true,
"createdAt": "<string>",
"updatedAt": "<string>"
},
"error": "<string>"
}Retrieve the authenticated user’s profile information
curl --request GET \
--url https://api.example.com/api/auth/profile{
"user": {
"_id": "<string>",
"supabaseId": "<string>",
"email": "<string>",
"name": "<string>",
"role": "<string>",
"emailVerified": true,
"createdAt": "<string>",
"updatedAt": "<string>"
},
"error": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/PhemiT/vaniykeempire-api/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer <access_token>
curl -X GET "https://api.vaniykempire.com/api/auth/profile" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
const response = await fetch('https://api.vaniykempire.com/api/auth/profile', {
headers: {
'Authorization': `Bearer ${accessToken}`
}
});
const data = await response.json();
console.log(data.user);
import requests
response = requests.get(
'https://api.vaniykempire.com/api/auth/profile',
headers={
'Authorization': f'Bearer {access_token}'
}
)
data = response.json()
print(data['user'])
Show user properties
"user" or "admin"{
"user": {
"_id": "65f7b3c8e1234567890abcde",
"supabaseId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"email": "user@example.com",
"name": "John Doe",
"role": "user",
"emailVerified": true,
"createdAt": "2024-03-15T10:30:00.000Z",
"updatedAt": "2024-03-15T10:30:00.000Z"
}
}
{
"error": "Invalid token"
}
{
"error": "User not found"
}
{
"error": "Internal server error message"
}
supabaseId field which links the MongoDB record to the Supabase authentication record.