API Documentation

Cancel Webspace

Cancel a webspace subscription at the end of the current billing period. The webspace keeps running until the expiry date and is then removed with all its data. Free webspaces have no subscription and cannot be cancelled; use Delete Webspace instead.

Required scope: webspace:cancel

Path Parameters

Parameter Type Description
id string The webspace ID

Headers

Header Required Value
Authorization Yes Bearer YOUR_API_KEY

Response

{
  "data": {
    "id": "507f1f77bcf86cd799439011",
    "subdomain": "my-site",
    "cancelled": true,
    "expiresAt": "2026-04-15T00:00:00.000Z"
  }
}

Response Fields

Field Type Description
id string The webspace ID
subdomain string The webspace subdomain
cancelled boolean Always true after successful cancellation
expiresAt string ISO 8601 date when the webspace will expire

Error Responses

Status Description
403 API key lacks the webspace:cancel scope
404 Webspace not found or you do not have owner access
409 Free webspace, or no active subscription found

Example

curl -X POST https://hosting.site.quest/api/v1/webspaces/507f1f77bcf86cd799439011/cancel \
  -H "Authorization: Bearer sq_live_a94ecfca096d..."

Reactivation

To reactivate a cancelled webspace before the expiry date, use the Reactivate Webspace endpoint.

MCP

This action is also available via the webspace_cancel MCP tool.