Template Docs Commerce APIs Webhooks Tools
Get Started
Get Started

Delete a webhook subscription

DELETE /api.squarespace.com/{api-version}/webhook_subscriptions/{id}

Deletes a webhook subscription.

A successful request deletes a Webhook Subscription resource.

Parameters

{api-version} string
required

See the Webhook Subscriptions API Overview page for the current API version.


{id} string
required

Specifies the Webhook Subscription to delete.

Request example

Read the Overview to learn about specific API permissions. Every request should also abide by Squarespace rate limits.

curl "https://api.squarespace.com/1.0/webhook_subscriptions/123" \
  -i \
  -H "Authorization: Bearer YOUR_OAUTH_TOKEN" \
  -H "User-Agent: YOUR_CUSTOM_APP_DESCRIPTION" \
  -X DELETE

Response example

A response to a successful request will not contain any data.

Status codes and error conditions

204 NO CONTENT

The Webhook Subscription was deleted successfully.


404 NOT FOUND

Type: INVALID_REQUEST_ERROR

Subtype: INVALID_ARGUMENT
The requested Webhook Subscription was not found.