REST endpoints
Update SIP hooks
Adds or replaces SIP hooks in the cache. Hooks with matching hosts (case-insensitive) will be replaced. Hosts defined in the application configuration cannot be modified. The changes take effect immediately and persist across server restarts.
Note: Secrets are NOT stored in the cache. Runtime-added hooks will
use the global hook_secret from the server configuration.
Request Body
Array of hook entries with host and url fields.
Returns
200 OK- Updated list of SIP hooks400 Bad Request- If validation fails (e.g., duplicate hosts)500 Internal Server Error- If writing the cache fails
POST
Updates SIP hooks.
Adds or replaces SIP webhook forwarding entries at runtime. Changes take effect immediately and persist across server restarts.
Request body
Array of hook entries with:host- Host pattern for matching SIP domains (case-insensitive)url- HTTPS URL to forward webhook events toauth_id- Tenant identifier for room ownership
The
auth_id field is required when AUTH_REQUIRED=true. It determines which tenant owns rooms created from inbound SIP calls to this host.Behavior
- Hooks with matching hosts (case-insensitive) are replaced; others are added.
- Hosts defined in the application configuration cannot be modified via this endpoint.
- Secrets are NOT stored in the cache. Runtime-added hooks use the global
hook_secretfrom server configuration.
Error responses
Authorizations
Body
application/json