hi all
hope you are all healthy and working good.🤲
i am trying to call Api
https://api.vapi.ai/call
*here i changed *
Brearer Token
phoneNumberId
assistantId
number
Api Call
const response = await fetch("https://api.vapi.ai/call", {
method: "POST",
headers: {
"Authorization": "Bearer 2702ab2d-f11....",
"Content-Type": "application/json"
},
body: JSON.stringify({
"assistantId": "e46489ad-dlaksldf-slkdfalsdfk-asdf,asdfas",
"phoneNumberId": "7eca3719-sdfjasdlf-sdflkasdf-asdfalsdk",
"customer": {
"number": "+12345678901"
}
}),
});
const body = await response.json();
console.log(body);
getting response
{
"message": "Couldn't Make Vonage Call. Error: Request failed with status code 401",
"error": "Bad Request",
"statusCode": 400
}
why i am facing this someone can tell me what is missing?