Peleza β€” Trust built on data
Authentication
On this page

Validate Access Token

Confirm that a Bearer access token is still valid. Returns validity and expiry only β€” no credential identifiers. Auth required; not billable.

Request

GET/api/v1/oauth/validate
{{baseUrl}}/api/v1/oauth/validate
HeaderTypeDescription
AuthorizationstringBearer YOUR_ACCESS_TOKEN
Acceptstringapplication/json

Response

200 OKSample dataExample response
{
  "success": true,
  "response_code": 200,
  "message": "Token is valid",
  "data": {
    "valid": true,
    "expires_at": "2026-08-09T18:15:00Z"
  },
  "request_id": "550e8400-e29b-41d4-a716-446655440098"
}

Response Fields

FieldTypeDescription
successbooleanWhether the token is valid
response_codenumberApplication response code (typically mirrors HTTP)
messagestringHuman-readable status message
data.validbooleanAlways true on HTTP 200
data.expires_atstringToken expiry time (ISO 8601 UTC)
request_idstringUUID for support and audit trails

Error codes

Standard Peleza HTTP / response_code values (same across all API calls). Validation message text is endpoint-specific. Full reference: Error Codes.

CodeWhen
200Token is valid
401Missing, expired, or invalid Bearer token

401 β€” unauthorized

401Sample data401 β€” unauthorized
{
  "success": false,
  "response_code": 401,
  "message": "Unauthorized. Please provide a valid access token.",
  "data": null,
  "request_id": "550e8400-e29b-41d4-a716-446655440021"
}

Set {{baseUrl}} to https://api.peleza.com (production) or https://sandbox.peleza.com (sandbox). Authenticated calls need a Bearer token from POST /api/v1/oauth/token.