MagicWP Docs
Sites

Check site creation limits

GET
/v1/sites/limits

Permission: any member; plan figures only with billing.view; can_create needs sites.create

Authorization

apiToken
headerAuthorizationBearer <token>

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

Response Body

Successful Response

application/json
  1. response
success*boolean
data*

Only can_create is present when the caller's role may neither see billing nor create sites. The verdict's sentence is the envelope message.

message*string
status_code*integer
timestamp*string
Formatdate-time
meta?|null
curl -X GET "https://example.com/v1/sites/limits"
{  "message": "string",  "status_code": 0,  "timestamp": "2019-08-24T14:15:22Z",  "meta": {},  "success": true,  "data": {    "can_create": true,    "total_sites": null,    "sites_created": null,    "sites_remaining": null,    "demo_eligible": null,    "demo_reason": null,    "demo_message": null,    "demo_site_id": null,    "demo_ttl_hours": null,    "demo_delete_after_stop_hours": null  }}