GET
/
configs
/
{slug}
from portkey_ai import Portkey

# Initialize the Portkey client
portkey = Portkey()

# Retrieve the configuration
config = portkey.configs.retrieve(
slug='CONFIG_SLUG'
)

print(config)
{
  "success": true,
  "data": {
    "config": {
      "retry": {
        "attempts": 5,
        "on_status_codes": [
          429,
          529
        ]
      },
      "cache": {
        "mode": "simple",
        "max_age": 3600
      },
      "strategy": {
        "mode": "fallback"
      },
      "targets": [
        {
          "provider": "@openai-xx-23"
        },
        {
          "provider": "@azure-openai-xx-12"
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

slug
string
required

Response

200 - application/json

Config details

The response is of type object.