API Reference › OAuth
Token Info
GET
/oauth/tokeninfoCheck whether the bearer token is valid, which scopes it carries and when it expires. Times are Unix seconds; null fields mean "never expires".
Authorization and token management. These follow the OAuth 2.0 spec and answer in plain OAuth JSON (no success/data envelope). Errors use the standard error and error_description fields.
Usage
curl "https://api.lifebots.cloud/api/v1/oauth/tokeninfo" \
-H "Authorization: Bearer $ACCESS_TOKEN"Path parameters
None.
Example response
{
"user_id": "user_id",
"client_id": "your_client_id",
"scopes": [
"read:profile",
"bots:chat"
],
"active": true,
"expires_at": 1790000000,
"expires_in": 3540,
"has_refresh_token": true,
"refresh_token_expires_at": 1792592000,
"refresh_token_expires_in": 2591940
}