Authentication
The Bilanc Metrics API uses PropelAuth for authentication. All API endpoints require a valid authentication token in the request headers.Obtaining an API Token
You can obtain an API token by:- Logging into your Bilanc dashboard at app.bilanc.co
- Navigating to Settings > API Tokens
- Creating a new API token with the appropriate permissions
Keep your API tokens secure. Do not share them or commit them to public repositories.
Using Your API Token
Include your API token in theAuthorization
header of your requests:
Example Authenticated Request
Here’s an example of how to authenticate your API requests:Authentication Errors
If your authentication token is invalid or missing, the API will return a401 Unauthorized
error:
Token Expiration
API tokens may be configured to expire after a certain period. When a token expires, you’ll need to generate a new one from the dashboard.Token Permissions
API tokens can be created with different permission levels. Ensure your token has the appropriate permissions for the endpoints you’re trying to access.For production applications, we recommend creating tokens with the minimum permissions necessary for your use case.