POST
/
user
/
assistants
/
enable-webhook
Enable assistant webhook
curl --request POST \
  --url https://app.autocalls.ai/api/user/assistants/enable-webhook \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "assistant_id": 123,
  "webhook_url": "<string>"
}'
{
  "message": "Webhook enabled successfully",
  "data": []
}
This endpoint enables webhook notifications for an assistant, allowing you to receive real-time updates about call completions and data.

Request Body

assistant_id
integer
required
The ID of the assistant to enable webhook for
webhook_url
string
required
The URL where webhook notifications will be sent

Response

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

Error Responses

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

Webhook Behavior

When webhook is enabled, the assistant will send HTTP POST requests to your webhook URL containing:
  • Call completion data
  • Extracted variables from the conversation
  • Call transcript and metadata
  • Recording URL (if recording is enabled and included in webhook settings)

Notes

  • The assistant must belong to the authenticated user
  • The webhook URL must be a valid URL format
  • For multi-tenant setups, the webhook URL domain may be automatically adjusted
  • This sets both is_webhook_active to true and updates the webhook_url
  • You can later disable the webhook using the disable webhook endpoint