how do I make sure a server event is sent to a ser...
# support
s
how do I make sure a server event is sent to a server URL
v
To ensure a server event is sent to your server URL, set the server URL at the desired priority level (e.g., assistant level) in Vapi. For example, to set it via the API when creating or updating an assistant:
Copy code
json
{
  "server": {
    "url": "https://your-server.com/webhook-endpoint"
  }
}
Once set, Vapi will POST server events (like function calls or status updates) to this URL during calls. Make sure your server is publicly accessible and can handle POST requests from Vapi. [Learn more in the Vapi docs](https://docs.vapi.ai/server-url/setting-server-urls). Sources: - [Setting Server URLs | Vapi Documentation](https://docs.vapi.ai/server-url/setting-server-urls) - [Server Events | Vapi Documentation](https://docs.vapi.ai/server-url/events)
k
Set your server URL at the function, assistant, number, or account level, enable the desired events in assistant settings, optionally add a secret token for security, and ensure your server correctly receives and handles POST requests..