Server URL Secret keeps getting removed
# support
f
I am putting a server url secret in my vapi assistant advanced settings, but it keeps getting removed somehow. I am not deleting it.
b
had this bug before. Put in your key. then refresh the page (for some reason this saves it). The bug happens when you put in your key then click away different menu, it doesn't save.
k
Hey Fire, could you please record a loom video and share it with me so I can take a look?
@Bryce thanks for helping @Fire.
f
What's happening is that I put the key on the dashboard, apply and leave. When I come back or refresh the page, it is still there. but after a few hours or a day, by websocket stops getting calls, I come back to see it gone.
@Shubham Bajaj
It is saving for me, but being cleared all by itself after some time.
k
Hey Fire can you share your asssistantID, so I can take a look into the logs?
f
f14e167c-1144-4dc8-b078-ef0b21727693
it just disappears sometimes when i go to another tab and publish. happened now.
k
Hey Fire, the server url properties are not updated for your assistant. You have to hit the publish button after entering your server url. Here's how you can do it using API:
Copy code
curl -X PATCH 'https://api.vapi.ai/assistant/{assistant_id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
  "server": {
    "url": "https://your-server-url.com",
    "secret": "your-secret-key",
    "timeoutSeconds": 20,
    "headers": {
      "custom-header": "header-value"
    }
  }
}'
y
Same happening for me as well
Even if you add any header, save it - refresh the page and its gone
Its happening in custom tools, not persisting any secret key or header
So I kind of found the issue: 1. add header or secret from the web interface - doesn’t work 2. add secret from api - doesn’t work 3. add header from api - works (shows in get tool from api but not on web interface) 4. When assistant calls webhook, it is not passing any secret or header added via api but if you do api call to get tool by id header exists.
This may help you resolve the issue
f
I dont think you understand my issue
I go to the dashboard, assistants, select my assistant, go to advanced, scroll down, set a secret key and apply it then publish.
but then, few hours or few days later, when i make some other change in another tab and publish, it disappears.
s
hey @Yuvraj thanks for letting us know, can you put an bug report over here https://roadmap.vapi.ai
BTW add secret using API it works.
@Fire I just tried the thing you mentioned, The secret is saved. But it’s not made visible in the dashboard for security reasons. You can check it out here the process I have followed https://www.loom.com/share/b40ad36c8414492b990810c121e639a5?sid=4d0f71f8-3c23-46a6-a0dc-1c533908de56
b
"the secret key is saved but not visible" is very very confusing. If I wasn't tagged in this support ticket, I would have no idea. Please please consider adding something to the UI.
4 Views