Skip to main content

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.

TL;DR

Securely link your Squarespace store to SmythOS using an API key generated from your Developer Tools. Then, use our suite of components to automate a wide range of e-commerce tasks, from creating new products to updating stock quantities.

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.

ComponentActionWhat it DoesInputsKey OutputsUse Case
Create ProductWriteCreates a new physical product in your store.required storePageId, name, sku, basePriceproduct_id, urlAdding a new item to your catalog from an external system.
Update ProductWriteUpdates the information for an existing product.required productId, Bodyproduct_idChanging a product's name or description.
Update Product VariantWriteUpdates a specific variant of a product (e.g., size or color).required productId, variantId, BodyproductVariantIdUpdating the price or SKU of a specific product size.
Increase/Decrease StockWriteAdjusts the stock quantity for product variants.required variantId, quantityResponseSyncing inventory with a warehouse management system.
Get All OrdersReadRetrieves all order information from your store.required triggerorderResultsExporting order data for custom reporting.
Get Specific OrderReadRetrieves information for a single, specific order.required orderIdorderIdFetching details to process a customer support query.
Get ProductsReadRetrieves a list of all products in your store.required triggerproductsGetting a full catalog export for analysis.
Get All InventoryReadRetrieves stock information for all product variants.required triggerinventoryPerforming a full inventory audit.
Upload Product ImageWriteUploads a new image to a product's gallery.required productId, imageimageIdAutomating the addition of new product photos.
Delete ProductWritePermanently deletes a product and all its variants.required product_idResponseRemoving discontinued items from your store.
INFO
Why Integrate Squarespace with Your Agent?

Your Squarespace store is the heart of your e-commerce business. Integrating it with SmythOS allows you to build powerful agents that automate your operations, saving you time and reducing manual errors.

  • Automated Inventory Management: Create agents that sync your Squarespace inventory with an external supplier's stock levels, preventing overselling and ensuring your product availability is always accurate.
  • Streamlined Order Fulfillment: When a new order is placed, an agent can automatically retrieve the order details and send them to your shipping provider or fulfillment center's API.
  • Dynamic Product Catalogs: Build agents that can create or update products in your Squarespace store based on data from a spreadsheet, a PIM (Product Information Management) system, or another database.
  • Custom Reporting: Schedule agents to fetch all order or transaction data daily and format it into a custom report, giving you insights that go beyond the standard Squarespace analytics.

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

  1. Log in to your Squarespace Dashboard and select the site you want to connect.
  2. In the main menu, go to Settings > Developer Tools.
  3. Click on Developer API Keys.
  4. Click Generate Key.
  5. Give your key a descriptive name (e.g., "SmythOS Agent").
  6. Under Permissions, check the scopes your agent will need (e.g., Products: Read and Write, Orders: Read and Write).
  7. Click Generate Key.
  8. 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.

  1. In your SmythOS dashboard, navigate to the Vault.
  2. Create a new secret and paste your Squarespace API Key as the value. Give it a memorable name, like squarespace_api_key.
  3. For more details, see the Vault Documentation.

Step 3: Configure a Squarespace Component

  1. In your SmythOS agent graph, drag and drop any Squarespace component.
  2. Click the component to open its Settings panel.
  3. In the API Key field, select the secret you saved in the Vault (e.g., squarespace_api_key).
  4. Your connection is now configured for that component.
Heads-up
You must add the API Key from the Vault to each Squarespace component you use. This ensures all your API calls are properly authenticated.

Which Squarespace Component Should I Use?

If you need to…TargetUse this ComponentWhy this one?
Add a new t-shirt to your storeA store pageCreate ProductThe primary method for adding a new product to your catalog.
Change a product's descriptionA productIdUpdate ProductModifies the top-level details of an existing product.
Update the price of the 'Large' sizeA variantIdUpdate Product VariantOffers granular control to edit a specific product variant.
Sync inventory from a supplierA variantId and quantityIncrease / Decrease Stock QuantityThe correct way to adjust stock levels without overwriting other data.
Get a list of all unshipped ordersAll ordersGet All OrdersRetrieves all orders, which you can then filter in your agent.
Add a new photo to a product pageA productId and image fileUpload Product ImageThe 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.

INFO
This component requires an API Key for authentication, as detailed in the Getting Started section.

Inputs

FieldTypeRequiredNotes
storePageIdstringYesThe unique identifier of the store page where the product will be created.
namestringYesThe name of the new product.
skustringYesThe Stock Keeping Unit for the product's primary variant.
basePricestringYesThe price of the product's primary variant.
descriptionstringOptionalThe product's description.

Outputs

FieldTypeDescription
product_idstringThe unique ID of the newly created product.
urlstringThe URL slug of the new product's detail page.
variantsarrayAn array containing the details of the product's variants.
ResponseobjectThe full, raw JSON response from the Squarespace API.
Use Case

An agent reads new product data from a Google Sheet, then calls this component for each row to automatically populate a new collection in the Squarespace store.

Update Product and Variants

Includes Update Product and Update Product Variant. These components allow you to modify existing products or their specific variants.

INFO
These components require an API Key for authentication, as detailed in the Getting Started section.

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

FieldTypeRequiredNotes
productIdstringYesThe ID of the product to update.
variantIdstring(For Variants Only) YesThe ID of the specific variant to update.

Outputs

FieldTypeDescription
product_id / productVariantIdstringThe ID of the updated product or variant.
ResponseobjectThe raw JSON response from the Squarespace API.
Use Case

A merchandising agent runs daily, finds all products in the "Summer Sale" category, and uses Update Product Variant to apply a 20% discount to the salePrice of each variant.

Body Schema is Key

The Body payload must be a valid JSON object matching the schema defined in the Squarespace Developer Documentation for updating products or variants.

Inventory Management

Includes components like Increase/Decrease Stock Quantity, Set Unlimited Stock, Get All Inventory, and Get Specific Inventory.

INFO
These components require an API Key for authentication, as detailed in the Getting Started section.

Common Inputs

FieldTypeRequiredNotes
variantId / variantIdsstringVariesThe unique ID(s) of the product variant(s) to adjust.
quantityintegerVariesThe amount to increase or decrease the stock by.

Outputs

FieldTypeDescription
inventoryarray(Get Inventory) An array containing inventory details for each variant.
ResponseobjectThe raw JSON response from the Squarespace API.
Use Case

When an order is returned to the warehouse, a logistics agent calls the Increase Stock Quantity component to add the returned items back into the Squarespace inventory.

Order Management

Includes Get All Orders and Get Specific Order. These components allow you to retrieve order data from your store.

INFO
This component requires an API Key for authentication, as detailed in the Getting Started section.

Inputs

FieldTypeRequiredNotes
orderIdstring(For Specific Order) YesThe ID of the order to retrieve.
triggerstring(For All Orders) YesAny value to trigger the component.

Outputs

FieldTypeDescription
orderResults/orderIdanyThe list of all orders, or the ID of the specific order.
ResponseobjectThe raw JSON response from the API, containing detailed order information.
Use Case

A reporting agent runs Get All Orders every morning, filters for orders placed in the last 24 hours, and sends a summary of daily sales to a Teams channel.

Image Management

Includes Upload Product Image, Update Product Image, Delete Product Image, Reorder Product Image, and Assign Product Image to Variant.

INFO
These components require an API Key for authentication, as detailed in the Getting Started section.

Common Inputs

FieldTypeRequiredNotes
productIdstringYesThe ID of the product to which the image belongs.
imageIdstringVariesThe ID of the image to modify or assign.
imagebinary(For Upload) YesThe image file to upload.

Outputs

FieldTypeDescription
imageIdstring(Upload/Update) The ID of the image.
ResponseobjectThe raw JSON response from the API.
Use Case

An agent takes new photos from a cloud folder, runs Upload Product Image to add them to the correct product, and then uses Assign Product Image to Variant to link the new red t-shirt photo to the "Red" color variant.

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 more Variants, and Inventory is tracked at the Variant level. You often need to get a product's variants first to find the correct variantId to update.
  • Use the Body for Updates: For the Update Product and Update Product Variant components, you must construct the JSON payload in the Body 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, or orderId was provided.
    • Solution: Double-check all IDs for typos. Ensure the item you are trying to access exists in your store.
  • 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.

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 and Upload Product Image to populate your store.
  • 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.