How to generate API key for integrations on Squarespace
To generate an API key on Squarespace, navigate to Settings > Advanced > API Keys, then click 'Generate API Key' and configure permissions. This requires a Business or Commerce plan and allows third-party integrations to access your site data.
Prerequisites
- Active Squarespace website
- Business or Commerce plan subscription
- Admin access to your Squarespace site
- Basic understanding of API integrations
Step-by-Step Instructions
Access your Squarespace site settings
Navigate to Advanced settings
Open API Keys management
Generate a new API key
Third-party Integration or Analytics Tool to help identify the key's purpose later.Configure API permissions
- Read - Allows retrieving data from your site
- Write - Allows modifying content and data
- Commerce - Grants access to order and product data
Save and copy your API key
sq-api-xxxxxxxxxxxxxxxxxxxxTest your API connection
https://api.squarespace.com/1.0/commerce/orders with your key in the Authorization header: Authorization: Bearer YOUR_API_KEY. You should receive a response confirming the connection is working.Common Issues & Troubleshooting
API Keys option not visible in Advanced settings
Upgrade to a Business or Commerce plan. API access is not available on Personal plans. Go to Settings > Billing to upgrade your subscription.
API key returns 401 Unauthorized error
Verify the key is correctly formatted in your Authorization header as Bearer YOUR_API_KEY. Check that your key has the necessary permissions for the endpoint you're accessing.
Generated API key was lost or not copied
Delete the existing key from the API Keys panel and generate a new one. For security, Squarespace doesn't store or display keys after initial generation.
Integration receiving empty or limited data
Review and expand your API key permissions in Settings > Advanced > API Keys. Edit the key to include Read or Commerce permissions as needed for your integration.