REST API Reference
The Wp Admin REST API allows developers to programmatically manage WordPress sites, trigger security scans, handle backups, and access performance metrics. All endpoints require authentication and follow standard REST conventions.
Authentication
The Wp Admin API uses API keys to authenticate requests. You can view and manage your API keys in the Dashboard Settings. Your API keys carry many privileges, so be sure to keep them secure.
Never share your secret API keys in client-side code, GitHub repositories, or public forums. They provide full access to your managed sites.
Rate Limiting
API requests are limited to 1,000 requests per hour per API key. Exceeding this limit will result in a 429 Too Many Requests response. Rate limit headers are included in every response:
X-RateLimit-Remaining: 842
X-RateLimit-Reset: 1678901234
List Sites
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| page | integer | No | Page number (default: 1) |
| limit | integer | No | Items per page (max: 100) |
| status | string | No | Filter by status: active, down, maintenance |
Response
Get Site Details
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| site_id | string | Yes | The unique identifier of the site |
Response
Trigger Security Scan
Request Body
Response
List Backups
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| site_id | string | Yes | The site to fetch backups for |
| type | string | No | Filter: full, files, database |
Response
Restore Backup
Request Body
Response
HTTP Status Codes
The Wp Admin API uses conventional HTTP response codes to indicate success or failure:
- 200 OK - The request succeeded.
- 201 Created - A new resource was successfully created.
- 400 Bad Request - Missing or invalid parameters.
- 401 Unauthorized - Invalid or missing API key.
- 403 Forbidden - Insufficient permissions.
- 404 Not Found - The resource does not exist.
- 429 Too Many Requests - Rate limit exceeded.
- 500 Internal Server Error - Something went wrong on our end.
Official SDKs
Interact with the Wp Admin API using our officially supported client libraries:
Find installation instructions, code examples, and documentation for each SDK in our Developer Portal.