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 | /posts | List posts across selected sites | search, search_on, status, dtsstart, dtsstop, clients, groups, websites, maximum, post_type |
| GET | /posts/{id_or_domain}/{post_id} | Get one post | id_or_domain, post_id |
| PUT, PATCH | /posts/{id_or_domain}/{post_id}/update-status | Update only post status | status |
| PUT, PATCH | /posts/{id_or_domain}/{post_id}/edit | Edit post content/metadata | post_title, post_content, post_status, post_name, plus supported post fields |
| POST | /posts/{id_or_domain}/create | Create post | post_title, post_content, post_status, post_name, optional media/tax fields |
| DELETE | /posts/{id_or_domain}/{post_id}/delete | Delete post | id_or_domain, post_id |