Skip to main content
DELETE
/
sip
/
hooks
Deletes SIP hooks by host name.
curl --request DELETE \
  --url https://api.sayna.ai/sip/hooks \
  --header 'Content-Type: application/json' \
  --data '
{
  "hosts": [
    "example.com",
    "other.com"
  ]
}
'
{
  "hooks": [
    {
      "host": "example.com",
      "url": "https://webhook.example.com/events"
    }
  ]
}
Remove SIP webhook forwarding entries by host name.
  • Body: { hosts: [] } array of host names (case-insensitive); empty arrays are rejected.
  • Hosts present in server config revert to their config values after deletion; cache-only hosts are removed entirely.
  • Changes apply immediately and persist across restarts. Auth still applies when AUTH_REQUIRED=true; failures return 500 if cache writing fails.

Body

application/json

Request body for deleting SIP hooks.

Contains a list of host names to remove from the SIP hooks cache.

hosts
string[]

List of host names to remove (case-insensitive). Hosts that exist in the original config will revert to their config values.

Example:
["example.com", "other.com"]

Response

Updated list of SIP hooks after deletion

Response body for SIP hooks operations.

hooks
object[]
required

List of all configured SIP hooks