Token Introspection

You can validate tokens and get information about them using the token introspection endpoint:

POST https://api.withreload.com/v1/oauth/token/introspect
Content-Type: application/json
{
  "token": "WALLET_TOKEN_TO_VALIDATE",
  "client_id": "YOUR_CLIENT_ID",
  "client_secret": "YOUR_CLIENT_SECRET"
}

Response for active token:

{
  "active": true,
  "client_id": "YOUR_CLIENT_ID",
  "user_id": "user_123",
  "user_email": "[email protected]",
  "token_type": "access",
  "exp": 1679743200,
  "iat": 1679656800,
  "scope": "wallet:read wallet:write",
  "wallet_address": "rl_1234..."
}

Response for inactive token:

{
  "active": false
}