Last updated 11 months ago
Was this helpful?
from portkey_ai import Portkey # Initialize the Portkey client portkey = Portkey( api_key="PORTKEY_API_KEY", ) # Retrieve the configuration config = portkey.configs.list( workspace_id="WORKSPACE_ID" ) print(config)
A list of configs
{ "success": true, "data": [ { "id": "4e54a1a4-109c-43ee-b0f7-11e7d60b0066", "name": "Pplx Cache Test", "slug": "pc-pplx-c-ca7a87", "organisation_id": "472d2804-d054-4226-b4ae-9d4e2e61e69e", "workspace_id": "472d2804-d054-4226-b4ae-9d4e2e61e69e", "is_default": 0, "status": "active", "owner_id": "c4c7996d-be62-429d-b787-5d48fe94da86", "updated_by": "439268ba-94a2-4031-9ca7-ca88ddda5096", "created_at": "2024-05-12T21:37:06.000Z", "last_updated_at": "2024-05-23T23:36:06.000Z" } ] }