Go to developer

OAuth Verify / Get user info

Get user info

GET/oauth/userinfo

Returns claims for a valid Bearer access_token. Optional — validate remains the session trust boundary.

Authentication

BROWSER OK

Bearer access_tokenAuthorization: Bearer <access_token from /oauth/token>

Response

200 User claims

  • accessRolestringnullable
  • emailstringnullable
  • fullNamestringnullable
  • idinteger | stringrequired
  • isAdminbooleannullable
  • phonestringnullable
  • rolestringnullable

401 invalid_token

  • errorstring
  • error_descriptionstring
  • validboolean

Errors

ErrorHTTPMeaningFix
invalid_token401Missing, expired, or unknown access_tokenExchange a fresh authorization code Diagnose →

SDK equivalent

  • TypeScript@keyra/typescript-sdk: getOAuthUserInfo(accessToken)

Examples

Bash
curl -X GET "https://auth.keyra.ie/oauth/userinfo" \
  -H "Authorization: Bearer ACCESS_TOKEN"

Response

response.jsonJSON
{
  "id": "usr_123",
  "phone": "+15551234567",
  "fullName": "Ada Lovelace",
  "email": "ada@example.com"
}