Welcome to Portkey Forum

K
K2
Offline, last seen 3 weeks ago
Joined November 22, 2024
https://portkey.ai/docs/api-reference/admin-api/control-plane/virtual-keys/create-virtual-key
cannot be triggered on non-enterprise plans ?

Plain Text
import requests

url = "https://api.portkey.ai/v1/virtual-keys"

payload = {
    "provider": "azure-openai",
    "key": "openai-test",
    "name": "Key 1 Azure Open AI",
    "note": "description",
    "apiVersion": "a",
    "deploymentName": "b",
    "resourceName": "c"
}
headers = {
    "x-portkey-api-key": "****",
    "Content-Type": "application/json"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)

>>>{
  "success": false,
  "data": {
    "message": "You do not have enough permissions to execute this request",
    "errorCode": "AB03",
    "request_id": "27c675d5-c322-4f7e-89cc-064c26c913f9"
  }
}
18 comments
W
K
b