cURL
curl --request GET \ --url https://api.example.com/exo-api/whoami
{ "id": 123, "name": "<string>", "email": "<string>" }
Returns the authenticated user’s identity.
id
name
email
curl -H "Authorization: Bearer YOUR_TOKEN" \ https://your-app.com/exo-api/whoami
{ "id": 1, "name": "Jane Smith", "email": "[email protected]" }