Account and authentication
This guide explains how to set up your distil labs account and authenticate against the platform.
Registration
You can create a new distil labs account using either the CLI or the web app. Both methods will set up your account with a username and password that you can use to authenticate.
Using the CLI:
Using the web app:
Visit app.distillabs.ai/sign-up and follow the sign-up process.
CLI authentication
Once you have an account, log in using the CLI:
You can verify your identity with:
To log out:
API authentication
If you need to interact with the distil labs API directly, you can obtain an API token using your username and password:
Use the token in the Authorization header for all API requests:
API tokens are valid for 1 hour. Your code should handle re-authentication when needed.
Troubleshooting
- 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.
