MagicWP Docs
WordPress

Get WordPress settings

GET
/v1/sites/{site_id}/wp/settings

Permission: site.view

Authorization

apiToken
headerAuthorizationBearer <token>

An API token (mwp_…) from Settings → API tokens. Only accepted on this host.

Path Parameters

site_id*Site Id
Formatuuid

Response Body

Successful Response

application/json
  1. response
success*boolean
data*

The site's WordPress options. Values are strings as WordPress stores them; an option that was never set reads false.

message*string
status_code*integer
timestamp*string
Formatdate-time
meta?|null
curl -X GET "https://example.com/v1/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/wp/settings"
{  "message": "string",  "status_code": 0,  "timestamp": "2019-08-24T14:15:22Z",  "meta": {},  "success": true,  "data": {    "blogname": null,    "blogdescription": null,    "admin_email": null,    "siteurl": null,    "home": null,    "timezone_string": null,    "date_format": null,    "time_format": null,    "start_of_week": null,    "WPLANG": null,    "users_can_register": null,    "default_role": null,    "default_comment_status": null,    "default_ping_status": null,    "posts_per_page": null,    "permalink_structure": null,    "blog_public": null  }}