Authentication
JWT Payload JSON Example
A copy-ready JSON example of a JWT payload — shows standard claims (iss, sub, exp, iat) plus custom role and permissions fields. Essential reference for authentication API design.
Field Reference
issrequiredstringIssuer — the authorization server URL that signed the tokensubrequiredstringSubject — the unique user ID this token representsexprequiredinteger (Unix timestamp)Expiry time; tokens must be rejected after this epoch secondiatrequiredinteger (Unix timestamp)Issued-at time; used to calculate token agejtioptionalstringJWT ID — unique token identifier used for revocation listsroleoptionalstringApplication-defined role for coarse-grained access controlpermissionsoptionalarray<string>Fine-grained permission scopes in action:resource formatmfaoptionalbooleanWhether the user completed multi-factor authenticationVariants
MinimalStandard claims only — the minimum required for a valid JWT payload.
ExtendedFull payload with custom claims, tenant info, device fingerprint, and token type.
Common Use Cases
- →Designing the access token payload for an OAuth 2.0 / OpenID Connect authorization server
- →Debugging authentication issues by decoding and inspecting a live JWT
- →Writing unit tests that verify role and permission claim extraction middleware
JWTtokenauthclaimsOAuthauthentication
Validate or format this JSON
One click loads this exact example into the tool — no copy-paste needed. Format it, validate it, explore the tree, or generate TypeScript types instantly.
Frequently Asked Questions
Related JSON Examples
API DesignUser ProfileStandard user profile JSON with personal info, address, and account metadata.API DesignREST API ResponseGeneric REST API response wrapper with data payload, status, and pagination meta.API DesignError ResponseREST API error JSON with status code, machine-readable error code, and validation details.