useGrant
Tenants

Validate access token

Validate an access token.

POST
/v1/tenants/{tenantId}/validate

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonRequired
tenantProviderPolicyIdstring

Unique identifier for a tenant provider policy.

Format: "uuid"
tokenstring

JWT token.

Path Parameters

tenantIdRequiredstring

Unique identifier for a tenant.

Format: "uuid"
curl -X POST "https://sdk.usegrant.dev/v1/tenants/497f6eca-6276-4993-bfeb-53cbbbba6f08/validate" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "tenantProviderPolicyId": "58c6bd5f-e040-46ef-b357-715cc3e3c3d7",
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
  }'

Access token is valid.

{
  "isValid": true
}