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>"
}

Authorizations

x-portkey-api-key
string
header
required

Body

application/json

Response

200 - application/json

Successful response

The response is of type object.