property provider should not exist
# support
a
Trying to update my phone number server url and secret and getting error property provider should not exist my payload is
Copy code
{
  "provider": "twilio",
  "server": {
    "url": "https://*****************/",
    "secret": "*****************",
    "timeoutSeconds": 20
  }
}
if i remove
Copy code
"provider": "twilio",
it will let me update but than I am not getting assistant-request to my server
v
@Azeem Shah It seems like there might be a misunderstanding in the payload structure required for updating your phone number's server URL and secret. The
provider
field is not expected in the payload for the update API call, which is why you're encountering the error when it's included. However, removing the
provider
field should not affect the delivery of the assistant-request to your server as long as the
server.url
and
server.secret
are correctly updated. The
provider
information is likely already associated with your phone number configuration on the VAPI platform. To resolve this, please ensure that you are using the correct payload structure without the
provider
field, like so:
Copy code
json
{
  "server": {
    "url": "https://*****************/",
    "secret": "*****************",
    "timeoutSeconds": 20
  }
}
If you update the server URL and secret with this payload and still face issues with receiving assistant-requests, there might be another issue at play. In that case, please check your server logs to ensure it's correctly configured to receive requests, and that there are no network or firewall issues preventing the connection. If the problem persists, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
s
@Azeem Shah could you share your phone number ID so I can check if we are sending the request-assistant server event?
@A. Salem just wanted to confirm, is this the same issue you're facing?
a
Its not the same issue but I’m facing that issue too
s
@Azeem Shah @A. Salem could you record a loom video and share debugging artifacts so i can take a look.
y
@Shubham Bajaj - FYI in the playground it still attaches the provider value by default. When I remove and update through curl it works fine.
s
@yac thanks for letting me know, I will report this to the docs team.