I am trying to test a chatbot on our website but i am getting an invalid API response... I have double checked and it is the correct public key :
error:
index.js:39
POST
https://api.vapi.ai/call/web 401 (Unauthorized)
index.js:39
Response {data: null, error: {…}, type: 'cors', url: 'https://api.vapi.ai/call/web', redirected: false, …}
data
:
null
error
:
error
:
"Unauthorized"
message
:
"Invalid Key. Hot tip, you may be using the private key instead of the public key, or vice versa."
statusCode
:
401
[[Prototype]]
:
Object
constructor
:
ƒ Object()
hasOwnProperty
:
ƒ hasOwnProperty()
isPrototypeOf
:
ƒ isPrototypeOf()
propertyIsEnumerable
:
ƒ propertyIsEnumerable()
toLocaleString
:
ƒ toLocaleString()
toString
:
ƒ toString()
valueOf
:
ƒ valueOf()
__defineGetter__
:
ƒ __defineGetter__()
__defineSetter__
:
ƒ __defineSetter__()
__lookupGetter__
:
ƒ __lookupGetter__()
__lookupSetter__
:
ƒ __lookupSetter__()
__proto__
:
(...)
get __proto__
:
ƒ __proto__()
set __proto__
:
ƒ __proto__()
body
:
(...)
bodyUsed
:
true
headers
:
Headers {}
ok
:
false
redirected
:
false
status
:
401
statusText
:
""
type
:
"cors"
url
:
"https://api.vapi.ai/call/web"
[[Prototype]]
:
Response