All API requests must be authenticated using a bearer token in the Authorization header.
Include your API key in the Authorization header of every request:
Authorization: Bearer offly_sk_live_...Navigate to Settings → API Keys in the Offly app and click Create API Key. Give it a descriptive name and select the scopes you need. Copy the key immediately — it won't be shown again.
Keys follow the format: offly_sk_live_...
Here's how to make an authenticated request to list users:
curl https://api.offly.net/api/v1/users \
-H "Authorization: Bearer offly_sk_live_abc123..."⚠️ Security warning
Never expose API keys in frontend code, public repositories, or client-side applications. Only use API keys from backend systems and server-side code.
To rotate a key, create a new one in Settings → API Keys, update your systems to use the new key, then revoke the old one. This ensures zero downtime during rotation.
To revoke a key, go to Settings → API Keys, find the key, and click Revoke. The key will immediately stop working. Any requests made with a revoked key will receive a 401 Unauthorized response.