Skip to main content
GET
/
api
/
keys
List All Keys
curl --request GET \
  --url http://localhost:8080/api/keys
[
  {
    "value": "env.OPENAI_API_KEY",
    "weight": 1,
    "models": [
      "gpt-4o",
      "gpt-4o-mini"
    ],
    "azure_key_config": {
      "endpoint": "https://your-resource.openai.azure.com",
      "deployments": {
        "gpt-4o": "gpt-4o-deployment"
      },
      "api_version": "2024-02-15-preview"
    },
    "vertex_key_config": {
      "project_id": "your-project-id",
      "region": "us-central1",
      "auth_credentials": "env.VERTEX_AUTH_CREDENTIALS"
    },
    "bedrock_key_config": {
      "access_key": "env.AWS_ACCESS_KEY_ID",
      "secret_key": "env.AWS_SECRET_ACCESS_KEY",
      "session_token": "env.AWS_SESSION_TOKEN",
      "region": "us-east-1",
      "arn": "arn:aws:iam::123456789012:role/BedrockRole",
      "deployments": {
        "gpt-4o": "gpt-4o-deployment"
      }
    }
  }
]

Response

200 - application/json

Successful response

value
string
required

API key value or environment variable reference

Example:

"env.OPENAI_API_KEY"

weight
number

Weight for load balancing

Example:

1

models
string[]

Models this key can access

Example:
["gpt-4o", "gpt-4o-mini"]
azure_key_config
object

Azure key configuration

vertex_key_config
object

Vertex key configuration

bedrock_key_config
object