WebhookSubscriptions
List webhook subscriptions
Retrieves information for all webhook subscriptions. The response contains up to 25 Webhook Subscriptions. Requires an OAuth access token; API keys are not supported.
Headers
AuthorizationAPI key or OAuth access token
User-AgentUser Agent
List webhook subscriptions › Responses
OK
Array of Webhook Subscription resources. If the merchant site doesn't have any webhook subscriptions, this array is empty.
Create webhook subscription
Creates a webhook subscription. A successful request returns the created Webhook Subscription resource. Requires an OAuth access token; API keys are not supported. The OAuth token must hold scopes appropriate for each subscribed event topic: order.create and order.update require website.orders or website.orders.read; contact.create, contact.update, contact.delete, address.create, address.update, and address.delete require website.contacts; extension.uninstall requires no event-specific scope.
Headers
AuthorizationAPI key or OAuth access token
User-AgentUser Agent
Create webhook subscription › Request Body
endpointUrlHTTPS URL to POST webhook notifications.
topicsList of event topics that trigger a webhook notification.
Create webhook subscription › Responses
The created webhook subscription.
clientIdThird-party client id.
createdOnISO 8601 UTC date and time string; represents when the webhook subscription was created.
endpointUrlHTTPS URL to POST webhook notifications.
idUnique Webhook Subscription id.
secretHexadecimal value used to generate a signature for a webhook notification; field is only returned when creating a new subscription or rotating a secret. Store the secret in a safe location to verify notifications from Squarespace. See the 'Verifying notifications' guide under Webhooks for details.
updatedOnISO 8601 UTC date and time string; represents when the webhook subscription was last modified.
websiteIdUnique Webhook Subscription id.
topicsList of event topics that trigger a webhook notification.
Get webhook subscription
Retrieves information for a specific webhook subscription. Requires an OAuth access token; API keys are not supported.
path Parameters
subscriptionIdSpecifies the Webhook Subscription to retrieve.
Headers
AuthorizationAPI key or OAuth access token
User-AgentUser Agent
Get webhook subscription › Responses
OK
clientIdThird-party client id.
createdOnISO 8601 UTC date and time string; represents when the webhook subscription was created.
endpointUrlHTTPS URL that receives webhook notifications.
idUnique Webhook Subscription id.
topicsList of event topics that trigger a webhook notification. Possible values include: extension.uninstall, order.create, order.update.
updatedOnISO 8601 UTC date and time string; represents when the webhook subscription was last modified.
websiteIdUnique website id.
Update webhook subscription
Updates information for a webhook subscription. A successful request returns the updated Webhook Subscription resource. Requires an OAuth access token; API keys are not supported. The OAuth token must hold scopes appropriate for each subscribed event topic: order.create and order.update require website.orders or website.orders.read; contact.create, contact.update, contact.delete, address.create, address.update, and address.delete require website.contacts; extension.uninstall requires no event-specific scope.
path Parameters
subscriptionIdSpecifies the Webhook Subscription to update.
Headers
AuthorizationAPI key or OAuth access token
User-AgentUser Agent
Update webhook subscription › Request Body
Optional; HTTPS URL to receive webhook notifications.
Optional; list of event topics that trigger a webhook notification. Possible values include: extension.uninstall, order.create, order.update.
Update webhook subscription › Responses
OK
clientIdThird-party client id.
createdOnISO 8601 UTC date and time string; represents when the webhook subscription was created.
endpointUrlHTTPS URL that receives webhook notifications.
idUnique Webhook Subscription id.
topicsList of event topics that trigger a webhook notification. Possible values include: extension.uninstall, order.create, order.update.
updatedOnISO 8601 UTC date and time string; represents when the webhook subscription was last modified.
websiteIdUnique website id.
Delete webhook subscription
Deletes a webhook subscription. Requires an OAuth access token; API keys are not supported.
path Parameters
subscriptionIdSpecifies the Webhook Subscription to delete.
Headers
AuthorizationAPI key or OAuth access token
User-AgentUser Agent
Delete webhook subscription › Responses
No content. The webhook subscription was deleted successfully.
Rotate webhook subscription secret
Rotates a webhook subscription's secret. The previous secret for a subscription is no longer valid after a new one is generated. Requires an OAuth access token; API keys are not supported.
path Parameters
subscriptionIdSpecifies the Webhook Subscription to update.
Headers
AuthorizationAPI key or OAuth access token
User-AgentUser Agent
Rotate webhook subscription secret › Responses
OK
secretHexadecimal value used to generate a signature for a webhook notification; field is only returned when creating a new subscription or rotating a secret. Store the secret in a safe location to verify notifications from Squarespace.
Send test notification
Sends a notification to a subscribed webhook endpoint for testing purposes. This is a one-time notification, and will not be retried if it fails or times out. Requires an OAuth access token; API keys are not supported.
path Parameters
subscriptionIdSpecifies the Webhook Subscription to send a notification to.
Headers
AuthorizationAPI key or OAuth access token
User-AgentUser Agent
Send test notification › Request Body
topicRequired; Squarespace event topic that triggers a webhook notification. Possible values include: extension.uninstall, order.create, order.update.
Send test notification › Responses
OK
statusCodeStatus code returned by the subscribed webhook endpoint.