Skip to content

Authentication

One key per system, sent as a bearer token, with only the scopes it needs.

On this page

Every call carries your key in the Authorization header as Bearer {key}.{secret}. The key decides which account and which mode the call is in; nothing else in the request can change that.

bash
curl "https://api.opentourbase.com/api/supplier/v1/me" \
  -H "Authorization: Bearer $API_KEY"

Scopes

A key holds scopes such as products:read or bookings:write. A call that needs a scope the key lacks is refused with 403 insufficient_scope, and the answer names the scope it needed. Give each system the fewest scopes it can work with.

Keeping keys safe

  • Keep keys on your server, never in a browser, an app or a repository.
  • Use one key per system, so you can revoke one without stopping the others.
  • Limit a key to your servers' IP addresses when they are fixed.
  • Roll the secret when someone who knew it leaves; the old one can keep working for up to 72 hours while you deploy.

A wrong or revoked key answers 401. Thirty failures from one address within a minute are refused with 429 for a minute.

NextTest mode
PricingStart free