Squarespace returns no data using both curl and python Squarespace returns no data using both curl and python curl curl

Squarespace returns no data using both curl and python


Add Bearer before the API KEY!!

import requestsheaders = {    'Authorization': 'Bearer INSERT YOUR API KEY',    'User-Agent': 'QBOS INTEGERATION',    'Content-Type': 'application/json',}print("Hello World")response = requests.get('https://api.squarespace.com/1.0/authorization/website', headers=headers)print(response.text)

The above code is to check your squarespace api key is valid or not. In Authorization you forgot the Bearer, and replace API KEY with your api key which square space provided. I guess that QUBOS integration is the key name of the square space API key.


Squarespace uses some confusing terminology for it's apis. I had not enabled the api I needed.