Identity
Get the authenticated user
GET
/api/v1/userReturns the authenticated user and the presented token's own scopes, expiry, and last-used time. Works with any valid token regardless of its resource scopes — use it to validate a credential.
Required scope: (any valid token)
Example request
curl https://hangar.nagara.cloud/api/v1/user \
-H "Authorization: Bearer hgp_your_token"Example response
{ "data": {
"expires_at": "2026-01-01T00:00:00Z",
"last_used": "2026-01-01T00:00:00Z",
"scopes": [],
"token_id": "...",
"token_name": "...",
"token_prefix": "...",
"user_id": "..."
} }