What is the Console API?
The Edgee Console API is a management API that allows you to programmatically interact with your Edgee organization. It enables you to:- Export usage and cost data for billing and analysis
- Configure custom provider keys (BYOK) for your organization
- Manage your organization’s settings programmatically
Base URL
All Console API requests use the following base URL:Creating API Tokens
To use the Console API, you need to create an API token from your organization’s settings.Navigate to API Keys
Log in to the Edgee Console and go to the API
Keys section in your account settings.
Name Your Token
Give your API key a descriptive name (e.g., “Production”, “Development”,
“Integration”) to identify its purpose.
Authenticating Requests
The Edgee Console API uses bearer token authentication. Include your API token in theAuthorization header with the Bearer scheme:
Examples
Basic Request:Token Management
In the Edgee Console, you can manage all your API keys:- View tokens: See all created API keys and their creation dates
- Revoke tokens: Immediately disable any token from the console
- Rotate tokens: Create new tokens and revoke old ones for security
- Monitor usage: Track API usage associated with each token
Security
Error Handling
If your token is invalid or expired, the API will return a401 Unauthorized response:
403 Forbidden response:
Next Steps
- Explore Export Cost Data to get usage and cost information
- Learn how to Manage Gateway API Keys for your Gateway requests
- Set up BYOK to manage custom provider keys