Assistant creation via node server sdk how to set server secret?
I am creating a assistant in vapi using the node server sdk and it works and all but setting the server webhook secret did not work as expected or i do not yet understand how to properly pass it in. I am currently doing this:
server: {
url: "my-webhook-url",
headers: {
"x-vapi-secret": "my-webhook-secret",
},
},
This does not work. I had to manually set the secret in the dashboard myself. So what is the correct way of doing this?
PS: I cannot find any secret in the types for the assistant creation.
server: {
url: "my-webhook-url",
headers: {
"x-vapi-secret": "my-webhook-secret",
},
},
This does not work. I had to manually set the secret in the dashboard myself. So what is the correct way of doing this?
PS: I cannot find any secret in the types for the assistant creation.