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
issstringrequiredIssuer — the authorization server URL that signed the tokensubstringrequiredSubject — the unique user ID this token representsexpinteger (Unix timestamp)requiredExpiry time; tokens must be rejected after this epoch secondiatinteger (Unix timestamp)requiredIssued-at time; used to calculate token agejtistringoptionalJWT ID — unique token identifier used for revocation listsrolestringoptionalApplication-defined role for coarse-grained access controlpermissionsarray<string>optionalFine-grained permission scopes in action:resource formatmfabooleanoptionalWhether 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
Paste the example above into JSONKit's tools to validate, minify, or explore the structure interactively.
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.