Overview
The Qovery API uses Bearer token authentication. You need an API token to make authenticated requests to the API.Creating an API Token
Via Qovery Console
- Log in to the Qovery Console
- Navigate to Organization Settings
- Click on API Tokens
- Click Generate Token
- Give your token a descriptive name
- Set token permissions and expiration
- Click Create and save the token securely
Token Scopes
When creating a token, you can configure these scopes:Making Authenticated Requests
Include your API token in theAuthorization header:
Authentication Methods
Using cURL
Using Python
Using JavaScript/TypeScript
Using Go
Using Official SDKs
Python SDK
JavaScript/TypeScript SDK
Environment Variables
Store your API token securely using environment variables:Linux/macOS
Add to your.bashrc, .zshrc, or .env file:
Windows PowerShell
Docker
Pass as environment variable:Kubernetes
Create a secret:Authentication Errors
401 Unauthorized
Token is missing or invalid:403 Forbidden
Token doesn’t have required permissions:Token Security Best Practices
Never commit tokens to version control
Never commit tokens to version control
Always use environment variables or secrets management tools. Add
.env files to .gitignore.Use minimal required scopes
Use minimal required scopes
Create tokens with only the permissions needed for their specific use case.
Rotate tokens regularly
Rotate tokens regularly
Set expiration dates and rotate tokens periodically for security.
Monitor token usage
Monitor token usage
Regularly review API token activity in the Qovery Console.
Revoke unused tokens
Revoke unused tokens
Delete tokens that are no longer needed or potentially compromised.
Use separate tokens per environment
Use separate tokens per environment
Create different tokens for development, staging, and production.
Testing Authentication
Test your authentication setup:Next Steps
API Examples
See practical examples of using the authenticated API