To be able to use our REST API endpoints, you must first authenticate yourself using the adminTeamId, merchantId and the secretKey provided by Savvy.

This authentication is done by calling the ‘login’ endpoint. Note that the subscription key header must be defined for login (and all endpoints) - see Environments.

The response will contain a Bearer Token which you need to pass in the ‘Authorization’ http header for each request to the REST API endpoint.

The bearer token has a 5-minute lifetime. If you intend to call our endpoints multiple times in a 5 minute window we recommend you persist the bearer token as it will remain valid for 5 minutes.