Authentication
Create a server API key for your environment.
Create a key in the dashboard's Developer tools or from a linked directory:
npx orbytelabs api-key create --name "Usage server"Copy the secret once and set ORBYTE_API_KEY on your server. Never put it in
browser code, a public environment variable, source control, or logs.
npx orbytelabs api-key list --limit 25
npx orbytelabs api-key revoke KEY_IDUse your signed-in account to manage keys. An API key cannot administer other keys.
HTTP requests
curl --fail-with-body https://api.orbytelabs.com/v1/customers/customer_123/balance \
-H "Authorization: Bearer $ORBYTE_API_KEY"An API key selects its own environment. User OAuth tokens use
X-Orbyte-Environment for environment operations and X-Orbyte-Organization for
organization operations.
The CLI uses device login and stores credentials in ~/.orbyte/auth.json.
This login is separate from your application's runtime API key.
