API Reference
Virtual Keys
Prompts
- POSTCreate Prompt
- GETList Prompts
- GETRetrieve Prompt
- PUTUpdate Prompt
- DELDelete Prompt
- PUTPublish Prompt
- GETList Prompt Versions
- GETRetrieve Prompt Version
- PUTUpdate Prompt Version
- Prompt Partials
- Prompt Labels
- Prompt Collections
API Keys
Analytics [BETA]
- Summary
- Groups Paginated Data
- Graphs - Time Series Data
User Invites
Workspaces
Workspace Members
Audit Logs
OpenAPI
Retrieve Config
GET
/
configs
/
{slug}
Copy
Ask AI
from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey()
# Retrieve the configuration
config = portkey.configs.retrieve(
slug='CONFIG_SLUG'
)
print(config)
Copy
Ask AI
{
"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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Response
200 - application/json
Config details
The response is of type object
.
Was this page helpful?
Copy
Ask AI
from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey()
# Retrieve the configuration
config = portkey.configs.retrieve(
slug='CONFIG_SLUG'
)
print(config)
Copy
Ask AI
{
"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"
}
]
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.