Skip to main content
GET
/
exo-api
/
whoami
Get current user
curl --request GET \
  --url https://api.example.com/exo-api/whoami
{
  "id": 123,
  "name": "<string>",
  "email": "<string>"
}
Returns the id, name, and email of the user associated with the Bearer token. Use this to verify your token is working.

Request

curl -H "Authorization: Bearer YOUR_TOKEN" \
     https://your-app.com/exo-api/whoami

Response

id
integer
The user’s ID.
name
string
The user’s name.
email
string
The user’s email address.
Example response:
{
  "id": 1,
  "name": "Jane Smith",
  "email": "[email protected]"
}