Authorization header:
orbbit_data_ followed by 64 letters and digits. Keep it secret: anyone holding it can call the API as you.
Create a key
- Sign in to the Orbbit console and open API Keys.
- Click New Key.
- Under Name, give the key a name you’ll recognize later, such as
cost-dashboard-prod. - Under Spend budget (USD), set the most this key may spend in a month.
- Under Scope, tick the endpoints the key may call. A key can only call the endpoints you tick.
- Click Create, then copy the key from the Save your key window.
Choose what a key may call
Each endpoint needs its own permission, called a scope. Give each key only the scopes it needs: a leaked key that can only search stores can do far less harm than one that can call everything.
The console labels each scope in plain words —
get-commodity-prices shows as Get Commodity Prices. You can change a key’s name, budget, and scopes at any time from API Keys. The key itself stays the same.
When a key is refused
403 — missing scope
Revoke a key
Open API Keys, find the key by its name and last four characters, and click Revoke. Requests using it are refused with401 straight away. Revoking cannot be undone.
Keep keys safe
- Call the API from your server, never from a browser or mobile app, where anyone can read the key.
- Store keys in a secrets manager or environment variable, not in source code.
- Use a separate key for each app and environment, so you can revoke one without breaking the others.