Palbase Auth API · API
GET
/auth/userResolve bearer token to user
Internal endpoint for platform backend SDKs — verifies the bearer token and returns the resolved user. Used by the gateway's token-introspection shim and by the platform auth wrapper.
Note: this is not RFC 7662 introspection (see
/oauth/introspect); the response shape is PalAuth-specific and
is the canonical "who is this token for" query.
Called by a signed-in user of your app, with their token and the publishable key.
curl
curl -X GET "https://<your-ref>.palbase.studio/auth/user" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN"Responses
200Token valid; user resolved
401Missing, invalid, or expired credentials
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation VerifyTokenUser of auth's contract.