Skip to main content
GET
/
api
/
governance
/
virtual-keys
List virtual keys
curl --request GET \
  --url http://localhost:8080/api/governance/virtual-keys
{
  "virtual_keys": [
    {
      "id": "<string>",
      "name": "<string>",
      "value": "<string>",
      "description": "<string>",
      "team_id": "<string>",
      "customer_id": "<string>",
      "budget": {
        "id": "<string>",
        "max_limit": 123,
        "reset_duration": "<string>",
        "last_reset": "2023-11-07T05:31:56Z",
        "current_usage": 123
      },
      "rate_limit": {
        "id": "<string>",
        "token_max_limit": 123,
        "token_reset_duration": "<string>",
        "request_max_limit": 123,
        "request_reset_duration": "<string>",
        "token_last_reset": "2023-11-07T05:31:56Z",
        "request_last_reset": "2023-11-07T05:31:56Z",
        "token_current_usage": 123,
        "request_current_usage": 123
      },
      "provider_configs": [
        {
          "id": 123,
          "provider": "<string>",
          "weight": 123,
          "allowed_models": [
            "<string>"
          ],
          "budget": {
            "id": "<string>",
            "max_limit": 123,
            "reset_duration": "<string>",
            "last_reset": "2023-11-07T05:31:56Z",
            "current_usage": 123
          },
          "rate_limit": {
            "id": "<string>",
            "token_max_limit": 123,
            "token_reset_duration": "<string>",
            "request_max_limit": 123,
            "request_reset_duration": "<string>",
            "token_last_reset": "2023-11-07T05:31:56Z",
            "request_last_reset": "2023-11-07T05:31:56Z",
            "token_current_usage": 123,
            "request_current_usage": 123
          },
          "key_ids": [
            "<string>"
          ]
        }
      ],
      "mcp_configs": [
        {
          "id": 123,
          "mcp_client_name": "<string>",
          "tools_to_execute": [
            "<string>"
          ]
        }
      ],
      "is_active": true,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "count": 123
}

Response

Successful response

List virtual keys response

virtual_keys
object[]
count
integer