Skip to main content

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
Important: Console API vs Gateway APIDo not confuse the Console API with the AI Gateway API:
  • Console API (https://api.edgee.app) - For managing your organization, exporting data, and configuring provider keys
  • AI Gateway API (https://edgee.io) - For making LLM requests (chat completions, messages, token counting)
The Console API uses tokens created in the Console settings, while the AI Gateway API uses API keys created in the API Keys section. They are separate systems with different purposes.

Base URL

All Console API requests use the following base URL:

Create a personal API token

  1. Open your account menu in the console.
  2. Open Account settings → Personal API Tokens (/~/account/tokens).
  3. Create a token, give it a descriptive name, and store its value securely.
  4. Use this token for management requests to https://api.edgee.app.
Do not use an organization API Keys value here: those keys authenticate LLM requests to the Gateway API. A personal token acts with your account’s access to organizations; do not give it to a coding agent as its Gateway key. To find an organization ID for the examples below, call GET /v1/organizations with your personal token and select the organization you intend to manage.

Authenticating Requests

The Edgee Console API uses bearer token authentication. Include your API token in the Authorization header with the Bearer scheme:

Examples

Basic Request:
With Environment Variable:

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

Your API tokens carry many privileges, so be sure to keep them secure!
  • Never commit tokens to version control
  • Don’t share tokens in publicly accessible areas
  • Don’t expose them in client-side code
  • Store them in environment variables or secure credential management systems
  • Revoke tokens if you suspect they’ve been compromised
  • Create separate tokens for different environments (development, staging, production)
  • Rotate your tokens regularly as part of your security practices

Error Handling

If your token is invalid or expired, the API will return a 401 Unauthorized response:
If your token doesn’t have permission to access a resource, you’ll receive a 403 Forbidden response:

Next Steps