# How To Authenticate Squarespace Commerce Api With N8N
**Source:** https://beyondspace.studio/qanda/how-to-authenticate-squarespace-commerce-api-with-n8n
**Language:** French (France)

---

# How to authenticate Squarespace Commerce API with n8n?

Mar 20

Written By Beyondspace

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:

1. Log in to Squarespace and go to **Paramètres**  → **Developer API Keys**.
2. Click **Generate Key** and give it a name.
3. Choose the necessary permissions, for example:

   - Orders: Read → To fetch order details
   - Inventory: Read → To access product stock
   - Products: Read → To retrieve product information
4. Click **Enregistrer** , 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:

1. In **n8n**, go to **Credentials** → **Create New Credential**.
2. Sélectionner **Header Auth**.
3. Use the following values:

   - **Key Name**: `Authorization`
   - **Value**: `Bearer YOUR_API_KEY`
4. 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. 🚀

Beyondspace 

As a Squarespace Circle member, Beyondspace delivers plugins that elevate your website, streamline workflows, and optimize the Editor experience—saving time and driving engagement.

https://beyondspace.studio

Précédent

Précédent

## Is there another way of using Synced Blocks other than a blog page?

Suivant

Suivant

## How to download Squarespace video?