Getting Started
To start using the Onoff Business API follow the next steps
- Authentication: Obtain your API key from the dashboard in b2bconsole (coming soon)
- Base URL: All API requests should be made to the base URL https://public-apigateway.onoffapp.net
- Headers: Include your API key in the request headers
- Format: All requests and responses should use JSON format
Authorization
API keys are essential for securing APIs. Onoff generates a unique API key per organization, which can be created in the B2B console by users with admin role permissions. This mechanism prevents unauthorized access and protects Onoff's infrastructure from attacks.
The API key provides an initial layer of security and must be included in the HTTP headers as follows.
x-api-key: <token>