Get authenticated user

​

Returns the user record for the caller identified by the Bearer access token. No user id appears in the path—the subject is taken from the token. Field visibility follows the same rules as viewing that user by id.

Responses

  • application/json
  • Unauthorized

  • Forbidden

Request Example for get/v1/me
curl https://api.infinitegiving.com/v1/me \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "data": {
    "id": "clh2xpk5e0000qzrmn831i7rn",
    "email": "johndoe@example.com",
    "email_verified_at": "clh2xpk5e0000qzrmn831i7rn",
    "first_name": "John",
    "ig_role": "clh2xpk5e0000qzrmn831i7rn",
    "last_name": "Doe",
    "full_name": "John Doe",
    "phone": "clh2xpk5e0000qzrmn831i7rn",
    "pii_confirmed_at": "clh2xpk5e0000qzrmn831i7rn",
    "role": "clh2xpk5e0000qzrmn831i7rn",
    "status": "clh2xpk5e0000qzrmn831i7rn",
    "created_at": "clh2xpk5e0000qzrmn831i7rn",
    "updated_at": "clh2xpk5e0000qzrmn831i7rn"
  }
}