Our API uses bearer token authentication to secure your requests.
Bearer Token Authentication
Bearer tokens provide a straightforward way to authenticate API requests. Include your token in the Authorization header of each request.
Getting your bearer token
- Log into your dashboard
- Navigate to Settings > Integrations
- Generate a new API key
- Copy and securely store your token
Keep your API keys secure and never expose them in client-side code or public repositories.
Using bearer tokens
Include your bearer token in the Authorization header:
Error handling
Common authentication errors and how to handle them:
Cause: Invalid or missing authentication credentialsSolution: Verify your API key is correct and included in the Authorization header
Cause: Valid credentials but insufficient permissionsSolution: Check that your API key has the required scopes for the endpoint
Best practices
- Store API keys securely using environment variables or a secrets manager
- Use the minimum required scopes for your integration
- Regularly rotate your API keys
- Never expose keys in client-side code or version control
Testing authentication
You can test your authentication setup by making a request to the organisation endpoint:
A successful response confirms your authentication is working and returns your organisation details.