API: authentication

Snipcart uses HTTP Basic Auth. All you need to do is create a secret API Key in the dashboard.

You can create as many secret keys as you want. Make sure to not give these keys to anyone as they will be able to access all your account information.

You can create keys in Test or Live mode. Each key will give you the permissions to make requests for the specified mode only. A key created in Test mode will not be valid to get your Live data.

curl -H "Accept: application/json" \
  https://app.snipcart.com/api/orders \
  -u {API_KEY}: