How to authenticate Squarespace Commerce API with n8n?
Squarespace offers a Commerce API to access order data, but it’s only available on specific plans:
Commerce Advanced plan (for most regions)
Core plan and above (for users in the U.S.)
If you’re on an eligible plan, follow these steps to connect Squarespace Commerce to n8n.
1. Generate a Squarespace API Key
To access Squarespace Commerce data, you need an API key:
Log in to Squarespace and go to Settings → Developer API Keys.
Click Generate Key and give it a name.
Choose the necessary permissions, for example:
Orders: Read → To fetch order details
Inventory: Read → To access product stock
Products: Read → To retrieve product information
Click Save, then copy the API key (you won’t see it again).
2. Set Up Squarespace API Credentials in n8n
Instead of manually adding headers in every request, store your API key securely in n8n:
In n8n, go to Credentials → Create New Credential.
Select Header Auth.
Use the following values:
Key Name:
Authorization
Value:
Bearer YOUR_API_KEY
Save the credentials.
3. Connect in n8n
Open n8n and create a new workflow.
Add an HTTP Request node (since Squarespace doesn’t have a built-in node).
Choose GET as the request method.
Set URL based on the resources you need to query, for example: https://api.squarespace.com/1.0/commerce/orders
In Authentication - choose Generic Authentication Type
In Generic Auth Type - choose Header Auth
In Header Auth - choose the Squarespace credentials you just created
That's it! Now you can connect Squarespace Commerce data to other services using n8n. Take my initiative on how to handle pagination and pull data into Google Sheets via this template.
For those who need to try n8n for free before committing, sign up for this self-hosted instance here. 🚀