POST
/
user
/
assistants
/
disable-webhook
Disable assistant webhook
curl --request POST \
  --url https://app.autocalls.ai/api/user/assistants/disable-webhook \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "assistant_id": 123
}'
{
  "message": "Webhook disabled successfully",
  "data": []
}
This endpoint disables webhook notifications for an assistant, stopping all real-time updates about call completions and data.

Request Body

assistant_id
integer
required
The ID of the assistant to disable webhook for

Response

message
string
Success message confirming webhook was disabled
data
array
Empty array (reserved for future use)

Error Responses

404 Not Found
422 Validation Error
{
  "message": "Webhook disabled successfully",
  "data": []
}

Webhook Behavior

When webhook is disabled:
  • The assistant will stop sending HTTP POST requests to your webhook URL
  • Both is_webhook_active is set to false and webhook_url is set to null
  • Any ongoing calls will complete normally, but no webhook notifications will be sent
  • Call data will still be available through the API calls endpoints

Notes

  • The assistant must belong to the authenticated user
  • This completely removes the webhook configuration from the assistant
  • You can later re-enable webhooks using the enable webhook endpoint with a new URL
  • Disabling webhooks does not affect call recording or data collection