Skip to main content
GET
/
api
/
me
Get Current User
curl --request GET \
  --url https://api.example.com/api/me \
  --header 'Authorization: <authorization>'
{
  "id": 123,
  "name": "<string>",
  "email": "<string>"
}
Retrieves the profile information for the currently authenticated user based on their JWT access token.

Request

Authorization
string
required
Bearer token in the format: Bearer <access_token>

Response

id
integer
The user’s unique identifier
name
string
The user’s full name
email
string
The user’s email address

Example Request

curl -X GET http://localhost:8000/api/me \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

Example Response

{
  "id": 1,
  "name": "John Doe",
  "email": "[email protected]"
}

Error Responses

Build docs developers (and LLMs) love