Legacy JWT routes

Overview

Compatibility routes for older JWT clients. Prefer the current JWT routes. Routes use /wp-json/aam/v2 on a standard WordPress installation.

Endpoints

Method Route Input Purpose
PATCH /jwt/refresh jwt Validate and refresh a token.
PATCH /jwt/revoke jwt Revoke a token.
PATCH /jwt/validate jwt Validate and decode a token.

These editable routes also accept POST and PUT. Send the JWT string as jwt in the body. The routes are registered only while the JWT service is enabled.

Access level and authorization

This endpoint group does not use the shared access-level selector unless a row explicitly names it.

These routes have a public permission callback; they validate the supplied JWT. See Error handling for failure responses.

These compatibility endpoints are deprecated. Use the current JWT routes for new integrations.

Example

PATCH /wp-json/aam/v2/jwt/validate
Content-Type: application/json

{"jwt":"<aam-jwt>"}

This validates a token through the compatibility route. New integrations should use the current JWT routes.