Connecting to SquareSpace's API via REST
Here's what we've found to connect to SquareSpace via Grow's REST API connector.
Here are the API documents for SquareSpace: https://developers.squarespace.com/commerce-api
Here's a cURL that shows you the authentication strategy (Basic) for SquareSpace:
curl "https://api.squarespace.com/1.0/commerce/orders/56f1806d7b863796cbc2ee81" -H "Authorization: Bearer YOUR_SECRET_API_KEY"
Notice that the end of that cURL shows you the authentication method. The header will be Authorization, and the value will be this exactly: "Bearer" followed with a space and then the API key that you can get from SquareSpace. You can generate that from your SquareSpace account. There should be a settings page where you can generate an API key.
There are some other required parameters and other things you need to include when querying from SquareSpace's API, but it has worked! Comment below if you need help and I'll reach out to help you!
Please sign in to leave a comment.
Comments
0 comments