Use the MainWP Postman collection as the source of truth for request and response schemas.
{id_or_domain} accepts either a numeric site ID or a site domain.
Route Matrix
| Method | Path | Purpose | Key Params |
|---|---|---|---|
| GET | /pages | List pages across selected sites | search, search_on, status, dtsstart, dtsstop, clients, groups, websites, maximum |
| GET | /pages/{id_or_domain}/{page_id} | Get one page | id_or_domain, page_id |
| PUT, PATCH | /pages/{id_or_domain}/{page_id}/update-status | Update only page status | status |
| PUT, PATCH | /pages/{id_or_domain}/{page_id}/edit | Edit page content/metadata | post_title, post_content, post_status, post_name, plus supported page fields |
| POST | /pages/{id_or_domain}/create | Create page | post_title, post_content, post_status, post_name |
| DELETE | /pages/{id_or_domain}/{page_id}/delete | Delete page | id_or_domain, page_id |