Occurs when a new contact is created on a Squarespace website — for example when a visitor subscribes, becomes a customer, or is created via the API. See the Contacts API for the full resource model.
Read the Webhooks overview for details about the information sent with every Squarespace webhook notification.
Creating a contact with marketing acceptance triggers an extra event. When a contact is created with acceptsMarketing set to true, an additional contact.update event is emitted for the marketing change. Due to the asynchronous nature of webhooks, the contact.update may arrive before the contact.create. Integrators should handle receiving a contact.update for a contact that has not yet been seen via contact.create.
Request payload example
Code
{ // String; unique notification id "id": "5c2ba184b63ed3cb411ce2b1", // String; Squarespace website id that triggered the notification. "websiteId": "5f3c3d55ac435e1a051f77b3", // String; unique Webhook Subscriptions id "subscriptionId": "5f3c2155d947844beedda991", // String; description of the event that triggered notification. "topic": "contact.create", // ISO 8601 UTC date and time string; represents when the notification was created. "createdOn": "2024-01-28T10:44:00Z", // Object; data associated with the event "data": { // String; ISO 8601 date-time; when the contact was created "createdOn": "2024-01-28T10:44:00Z", // Object; the full Contact resource "contact": { // String; unique contact id "contactId": "5f3c39ce69e11e796f19990e", "firstName": "Jane", "lastName": "Doe", "primaryEmail": { "value": "[email protected]", "createdOn": "2024-01-28T10:44:00Z", "acceptsMarketing": { "acceptsMarketing": true } }, // Optional; default shipping address when present "defaultShippingAddress": { "addressBookEntryId": "addr-entry-id", "defaultShipping": true, "address": { "firstName": "Jane", "lastName": "Doe", "line1": "100 Main St", "line2": "Apt 1A", "city": "Springfield", "region": "IL", "postalCode": "62701", "countryCode": "US", "phoneNumber": "217-555-0100" } } } }}