curl --request GET \
--url https://api.example.com/api/me \
--header 'Authorization: <authorization>'{
"id": 123,
"name": "<string>",
"email": "<string>"
}Get the authenticated user’s profile information
curl --request GET \
--url https://api.example.com/api/me \
--header 'Authorization: <authorization>'{
"id": 123,
"name": "<string>",
"email": "<string>"
}Bearer <access_token>curl -X GET http://localhost:8000/api/me \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
{
"id": 1,
"name": "John Doe",
"email": "john@example.com"
}
Show 401 - Invalid token
{
"detail": "Invalid token"
}
Show 404 - User not found
{
"detail": "User not found"
}