API Reference
JWT Auth Pro provides a set of REST API endpoints for authentication and token management. All endpoints are accessible under the /wp-json/jwt-auth/v1
namespace.
Authentication
Most endpoints require authentication using JWT tokens. To authenticate requests, include the token in the Authorization header:
Base URL
The base URL for all API endpoints is your WordPress site’s REST API URL:
Response Format
All responses are returned in JSON format. Successful responses include the requested data, while error responses follow this structure:
Rate Limiting
API requests are subject to rate limiting based on your JWT Auth Pro settings. The current limits are:
- Authentication attempts: 5 per minute per IP
- Token validation: 60 per minute per token
- Token refresh: 10 per minute per refresh token
When rate limiting is enabled, the following headers are included in API responses:
Rate Limit Exceeded
When you exceed the rate limit, you’ll receive a 429 (Too Many Requests) response:
Rate limiting can be configured or disabled through the WordPress admin interface or using filters. See the Configuration and Filters documentation for more details.