from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Add a new provider
new_provider = portkey.providers.create(
name="openai provider",
integration_id="",
workspace_id=""
)
print(new_provider){
"id": "<string>",
"slug": "<string>"
}Create Provider
POST
/
providers
from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Add a new provider
new_provider = portkey.providers.create(
name="openai provider",
integration_id="",
workspace_id=""
)
print(new_provider){
"id": "<string>",
"slug": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://portkey-docs-fix-cache-hit-elaborate.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Body
application/json
Integration slug used for the provider creation.
optional, needed when using organisation admin API keys
Slug for the provider. If not passed, slug will be created by adding a random suffix to the name.
Show child attributes
Show child attributes
Example:
{
"credit_limit": 10,
"periodic_reset": "monthly",
"alert_threshold": 8
}Show child attributes
Show child attributes
Last modified on May 21, 2026
Was this page helpful?
⌘I

