curl --request POST \
--url https://brainbase-monorepo-api.onrender.com/api/workers/{workerId}/deployments/voicev1 \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"name": "<string>",
"phoneNumber": "<string>",
"flowId": "<string>",
"objective": "<string>",
"startSentence": "<string>",
"endSentence": "<string>",
"voiceId": "<string>",
"language": "<string>",
"allowedTransferNumbers": [
"<string>"
],
"functions": "<string>",
"model": "<string>",
"resourceKeys": [
"<string>"
],
"wsBaseUrl": "<string>",
"config": {},
"extractions": {}
}'
{
"id": "<string>",
"phoneNumber": "<string>",
"objective": "<string>",
"startSentence": "<string>",
"endSentence": "<string>",
"voiceId": "<string>",
"language": "<string>",
"allowedTransferNumbers": "<string>",
"functions": {},
"model": "<string>",
"resourceKeys": "<string>",
"wsBaseUrl": "<string>"
}
curl --request POST \
--url https://brainbase-monorepo-api.onrender.com/api/workers/{workerId}/deployments/voicev1 \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"name": "<string>",
"phoneNumber": "<string>",
"flowId": "<string>",
"objective": "<string>",
"startSentence": "<string>",
"endSentence": "<string>",
"voiceId": "<string>",
"language": "<string>",
"allowedTransferNumbers": [
"<string>"
],
"functions": "<string>",
"model": "<string>",
"resourceKeys": [
"<string>"
],
"wsBaseUrl": "<string>",
"config": {},
"extractions": {}
}'
{
"id": "<string>",
"phoneNumber": "<string>",
"objective": "<string>",
"startSentence": "<string>",
"endSentence": "<string>",
"voiceId": "<string>",
"language": "<string>",
"allowedTransferNumbers": "<string>",
"functions": {},
"model": "<string>",
"resourceKeys": "<string>",
"wsBaseUrl": "<string>"
}
API key authentication
Voice v1 deployment created
The response is of type object
.