When trying to add my azure openai credentials i always get this response.
{"message":"Couldn't Validate Azure OpenAI Credential. Error: The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.","error":"Bad Request","statusCode":400}%
The endpoint works, the model works, and the API key works just fine if i just use python to test it.
Using this curl. of course with my information.
curl --location 'https://api.vapi.ai/credential' \
--header 'accept: */*' \
--header 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
--header 'authorization: Bearer MYAPIKEYHERE' \
--header 'content-type: application/json' \
--header 'origin:
https://dashboard.vapi.ai' \
--header 'priority: u=1, i' \
--header 'referer:
https://dashboard.vapi.ai/' \
--header 'x-dashboard-version: 5334a312820225a5d26aa779a05c4441a0178223' \
--header 'Cookie: _cfuvid=CUSErOTQze7IfYksWMA7yAByAUDG7qgz41gjoqw2vwU-1737501475592-0.0.1.1-604800000' \
--data '{
"provider": "azure-openai",
"models": [
"insert-your-model-name-here"
],
"region": "insert-your-region-here",
"openAIEndpoint": "insert-your-openaiEndpoint-here",
"openAIKey": "insert-your-openAIKey-here"
}'