Account and authentication
This guide explains how to set up your distil labs account and authenticate against the platform API.
Registration
You can register a new account here by selecting “Sign up” at the bottom of the form.
Obtaining your API token
Once your account is set up, you need to generate an API token for programmatic access:
Using your API token
Once you have your token, use it in the Authorization header for all API requests:
The tokens are valid for 1 hour so your code should handle re-authentication when needed.
Troubleshooting authentication issues
- 401 Unauthorized Error: Check that your username and password are correct.
- 403 Forbidden Error: This typically means your token has expired. Generate a new token.
- Connection Errors: Ensure you have proper network connectivity to the API endpoints.
For any account or authentication issues, please contact contact@distillabs.ai.