Authentication

You'll need to authenticate your requests to access any of the endpoints in the Baback API. In this guide, we'll look at how authentication works. Baback offers to authenticate your API requests with a Bearer token generated in the baback backoffice.

Generate your API key

You can generate your key by oppening the Integration page. The key is available inside the first panel Configuration. It starts with bb1_

Authenticate your request

With the token, you can authorise your api call. Include it in the header as a Bearer token. Here's how to add the token to the request header using cURL:

Example request with bearer token

curl https://web.baback.co/api/shop/reasons \
  -H "Authorization: Bearer {token}"

Always keep your token safe and reset it if you suspect it has been compromised.