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.

Tracking API v2 token

The Tracking API v2, used to send orders and parcels, doesn't take the bb1_ key above. It has its own token. A shop owner or admin creates it in the Baback Tracking dashboard, under Settings › API, and picks its scopes: tracking:write to send orders and parcels, tracking:read to list parcels and follow batch imports. The token starts with bb2_ and goes in the same header:

Example request with a Tracking API v2 token

curl "https://api2.baback.co/public/v2/tracking/parcels?since=2026-11-01" \
  -H "Authorization: Bearer {bb2_token}"