Service not working
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
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