Squarespace Integration with SmythOS
Want to automate your e-commerce operations? Connect your Squarespace store to SmythOS and empower your agents to manage products, sync inventory, and process orders automatically.
List of Squarespace Components
Quickly compare Squarespace components by what they do and their key I/O. Click any component name to jump directly to its detailed guide.
Component | Action | What it Does | Inputs | Key Outputs | Use Case |
---|---|---|---|---|---|
Create Product | Write | Creates a new physical product in your store. | required storePageId , name , sku , basePrice | product_id , url | Adding a new item to your catalog from an external system. |
Update Product | Write | Updates the information for an existing product. | required productId , Body | product_id | Changing a product's name or description. |
Update Product Variant | Write | Updates a specific variant of a product (e.g., size or color). | required productId , variantId , Body | productVariantId | Updating the price or SKU of a specific product size. |
Increase/Decrease Stock | Write | Adjusts the stock quantity for product variants. | required variantId , quantity | Response | Syncing inventory with a warehouse management system. |
Get All Orders | Read | Retrieves all order information from your store. | required trigger | orderResults | Exporting order data for custom reporting. |
Get Specific Order | Read | Retrieves information for a single, specific order. | required orderId | orderId | Fetching details to process a customer support query. |
Get Products | Read | Retrieves a list of all products in your store. | required trigger | products | Getting a full catalog export for analysis. |
Get All Inventory | Read | Retrieves stock information for all product variants. | required trigger | inventory | Performing a full inventory audit. |
Upload Product Image | Write | Uploads a new image to a product's gallery. | required productId , image | imageId | Automating the addition of new product photos. |
Delete Product | Write | Permanently deletes a product and all its variants. | required product_id | Response | Removing discontinued items from your store. |
Prerequisites
Before you begin, please ensure you have the following:
- An active SmythOS account. (Sign up here).
- A Squarespace account on a Business plan or higher.
- A Squarespace API Key with the necessary permissions.
Getting Started With Squarespace
The connection between SmythOS and Squarespace is configured using a secure API Key.
Step 1: Get Your Squarespace API Key
- Log in to your Squarespace Dashboard and select the site you want to connect.
- In the main menu, go to Settings > Developer Tools.
- Click on Developer API Keys.
- Click Generate Key.
- Give your key a descriptive name (e.g., "SmythOS Agent").
- Under Permissions, check the scopes your agent will need (e.g.,
Products: Read and Write
,Orders: Read and Write
). - Click Generate Key.
- Copy the generated API Key immediately. It will not be shown again.
Step 2: Store Your API Key in SmythOS Vault
Your API Key is a sensitive credential. Use the SmythOS Vault
to store it securely.
- In your SmythOS dashboard, navigate to the Vault.
- Create a new secret and paste your Squarespace API Key as the value. Give it a memorable name, like
squarespace_api_key
. - For more details, see the Vault Documentation.
Step 3: Configure a Squarespace Component
- In your SmythOS agent graph, drag and drop any Squarespace component.
- Click the component to open its Settings panel.
- In the
API Key
field, select the secret you saved in the Vault (e.g.,squarespace_api_key
). - Your connection is now configured for that component.
Which Squarespace Component Should I Use?
If you need to… | Target | Use this Component | Why this one? |
---|---|---|---|
Add a new t-shirt to your store | A store page | Create Product | The primary method for adding a new product to your catalog. |
Change a product's description | A productId | Update Product | Modifies the top-level details of an existing product. |
Update the price of the 'Large' size | A variantId | Update Product Variant | Offers granular control to edit a specific product variant. |
Sync inventory from a supplier | A variantId and quantity | Increase / Decrease Stock Quantity | The correct way to adjust stock levels without overwriting other data. |
Get a list of all unshipped orders | All orders | Get All Orders | Retrieves all orders, which you can then filter in your agent. |
Add a new photo to a product page | A productId and image file | Upload Product Image | The standard way to add new images to a product's gallery. |
Component Details
This section provides detailed information for each Squarespace component.
Create Product
Creates a new physical product with at least one variant on a specified store page.
Inputs
Field | Type | Required | Notes |
---|---|---|---|
storePageId | string | Yes | The unique identifier of the store page where the product will be created. |
name | string | Yes | The name of the new product. |
sku | string | Yes | The Stock Keeping Unit for the product's primary variant. |
basePrice | string | Yes | The price of the product's primary variant. |
description | string | Optional | The product's description. |
Outputs
Field | Type | Description |
---|---|---|
product_id | string | The unique ID of the newly created product. |
url | string | The URL slug of the new product's detail page. |
variants | array | An array containing the details of the product's variants. |
Response | object | The full, raw JSON response from the Squarespace API. |
Update Product and Variants
Includes Update Product and Update Product Variant. These components allow you to modify existing products or their specific variants.
Component-Specific Settings
- Body: A JSON editor where you define the fields to be updated. Refer to the Squarespace API documentation for the correct schema.
Inputs
Field | Type | Required | Notes |
---|---|---|---|
productId | string | Yes | The ID of the product to update. |
variantId | string | (For Variants Only) Yes | The ID of the specific variant to update. |
Outputs
Field | Type | Description |
---|---|---|
product_id / productVariantId | string | The ID of the updated product or variant. |
Response | object | The raw JSON response from the Squarespace API. |
Inventory Management
Includes components like Increase/Decrease Stock Quantity, Set Unlimited Stock, Get All Inventory, and Get Specific Inventory.
Common Inputs
Field | Type | Required | Notes |
---|---|---|---|
variantId / variantIds | string | Varies | The unique ID(s) of the product variant(s) to adjust. |
quantity | integer | Varies | The amount to increase or decrease the stock by. |
Outputs
Field | Type | Description |
---|---|---|
inventory | array | (Get Inventory) An array containing inventory details for each variant. |
Response | object | The raw JSON response from the Squarespace API. |
Order Management
Includes Get All Orders and Get Specific Order. These components allow you to retrieve order data from your store.
Inputs
Field | Type | Required | Notes |
---|---|---|---|
orderId | string | (For Specific Order) Yes | The ID of the order to retrieve. |
trigger | string | (For All Orders) Yes | Any value to trigger the component. |
Outputs
Field | Type | Description |
---|---|---|
orderResults /orderId | any | The list of all orders, or the ID of the specific order. |
Response | object | The raw JSON response from the API, containing detailed order information. |
Image Management
Includes Upload Product Image, Update Product Image, Delete Product Image, Reorder Product Image, and Assign Product Image to Variant.
Common Inputs
Field | Type | Required | Notes |
---|---|---|---|
productId | string | Yes | The ID of the product to which the image belongs. |
imageId | string | Varies | The ID of the image to modify or assign. |
image | binary | (For Upload) Yes | The image file to upload. |
Outputs
Field | Type | Description |
---|---|---|
imageId | string | (Upload/Update) The ID of the image. |
Response | object | The raw JSON response from the API. |
Best Practices & Advanced Tips
- Secure Your API Key: Always store your Squarespace API key in the SmythOS
Vault
. If a key is compromised, generate a new one in Squarespace and update your Vault secret. - Grant Specific Permissions: When generating your API key in Squarespace, grant only the permissions your agent needs. If an agent only reads orders, don't give it write access to products.
- Understand the Data Hierarchy: Remember the structure: a
Product
contains one or moreVariants
, andInventory
is tracked at theVariant
level. You often need to get a product's variants first to find the correctvariantId
to update. - Use the
Body
for Updates: For theUpdate Product
andUpdate Product Variant
components, you must construct the JSON payload in theBody
setting. Refer to the Squarespace Developer documentation for the correct schema for each object.
Troubleshooting Common Issues
-
Error:
401 Unauthorized
- Cause: The API Key is incorrect, has been revoked, or lacks the necessary permissions for the requested action.
- Solution: Verify your API Key is correct in the SmythOS Vault. In your Squarespace settings, check that the key is active and has the required scopes (e.g.,
Products: Read and Write
).
-
Error:
404 Not Found
- Cause: An incorrect
productId
,variantId
, ororderId
was provided. - Solution: Double-check all IDs for typos. Ensure the item you are trying to access exists in your store.
- Cause: An incorrect
-
Error:
400 Bad Request
- Cause: The JSON
Body
payload for an update or create operation is malformed or missing required fields. - Solution: Carefully check your JSON structure against the official Squarespace API documentation. Ensure all required fields are present and data types are correct.
- Cause: The JSON
What's Next?
You are now ready to build powerful e-commerce automations with the SmythOS Squarespace Integration!
Consider these ideas:
-
Build an Agent That...
- Acts as an inventory sync engine. It checks stock levels from a supplier's API and uses the
Increase/Decrease Stock Quantity
components to keep your Squarespace store perfectly in sync. - Automates order fulfillment. When a new order is retrieved with
Get All Orders
, the agent sends the customer and shipping details to your shipping provider's API. - Creates products from a spreadsheet. The agent reads product data from a Google Sheet, then uses
Create Product
andUpload Product Image
to populate your store.
- Acts as an inventory sync engine. It checks stock levels from a supplier's API and uses the
-
Explore Other Integrations:
- When a new order is placed, send a confirmation to the customer using Resend and post a "New Sale!" notification in a Discord channel.
- Use an LLM component to write a product description, then use the
Update Product
component to add it to your store. - Log all new orders to a Firestore database for long-term analysis and custom reporting.