Skip to main content

Overview

Webhooks allow you to receive real-time notifications when calls are completed. When a call ends, CallCow will send a POST request to your configured webhook URL with detailed information about the call.

Setting Up Webhooks

You can create a webhook in the Integration tab. Once you have created a webhook, you can update your custom workflow metadata to use the webhook.

Payload Format

When a call completes, you’ll receive a POST request with a JSON payload containing the following fields:

Field Reference

Handling Webhooks

Your webhook endpoint should:
  1. Accept POST requests with JSON content
  2. Respond with a 2xx status code to acknowledge receipt
  3. Process the webhook asynchronously if needed to avoid timeouts

Example Handler (Node.js)

Best Practices

  • Handle duplicates: Implement idempotency using the call_id field to handle potential duplicate deliveries
  • Respond quickly: Return a 2xx response promptly and process data asynchronously
  • Debug and Verify: Webhook works on browser calls as well. So as soon as you updated your webhook you can trigger a call in your browser test it.