Authenticating with the Biron API
Authentication uses a system of API keys sent via Basic Auth
Creating an API key for your organization
Section titled “Creating an API key for your organization”To create an API key, which will run requests on behalf of your organization, follow these steps
- Log in to https://app.biron-analytics.com
- In the side menu, open the Organisation section, then click API keys.
- Click Create an API key.
- Fill in the details and choose the minimum permissions needed.
- Copy the username and password.
Alternative: creating a personal access token
Section titled “Alternative: creating a personal access token”For occasional exploration needs or one-off operations, you can use personal access tokens, which identify you personally on the platform.
It works exactly the same way as an organization API key, but you click your avatar at the bottom of the side menu, then choose Personal Access Tokens in the user panel.
Using the API key
Section titled “Using the API key”For API requests
Section titled “For API requests”Include it in the Authorization header of the HTTP request, encoding username:password in Base64, which gives for example Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
curl -u "username:password" \ -X POST "https://nexus.biron-analytics.com/workspace/birondemo_prod/query/sql/http-sample"For Clickhouse requests
Section titled “For Clickhouse requests”When connecting directly to the data warehouse, provide the username and password exactly as given when the API key was created.