Use the MainWP Postman collection as the source of truth for request and response schemas.
Route Matrix
| Method | Path | Purpose | Key Params |
|---|---|---|---|
| GET | /tags | List tags | page, per_page, search, include, exclude |
| GET | /tags/{id} | Get one tag | id |
| POST | /tags/add | Create a tag | name, optional color |
| POST, PUT, PATCH | /tags/{id}/edit | Edit a tag | name, optional color |
| DELETE | /tags/{id}/remove | Delete a tag | id |
| GET | /tags/{id}/sites | Get sites in a tag | id |
| GET | /tags/{id}/clients | Get clients linked through tagged sites | id |
| POST | /tags/batch | Batch tag create/update/delete | create[], update[], delete[] |