Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Python
Default
from portkey_ai import Portkey # Initialize the Portkey client portkey = Portkey( api_key="PORTKEY_API_KEY", ) # List virtual keys virtual_keys = portkey.virtual_keys.list() print(virtual_keys)
{ "object": "list", "total": 123, "data": [ { "name": "Open AI Workspace", "note": "randomness", "usage_limits": { "credit_limit": 10, "periodic_reset": "monthly", "alert_threshold": 8 }, "reset_usage": 0, "created_at": "2023-11-07T05:31:56Z", "slug": "<string>", "model_config": {}, "rate_limits": [ { "value": 123 } ], "expires_at": "2023-11-07T05:31:56Z", "object": "virtual-key" } ] }
{ "success": false, "data": { "message": "Unauthorised Request" }}
Current page, defaults to 0
Page size, default to 50
Successful response
list
Total number of virtual keys
Show child attributes
Was this page helpful?