Skip to main content
GET
/
api
/
post-call-webhooks
# Get all webhooks
curl -X GET "https://api.zudu.ai/api/post-call-webhooks" \
  -H "X-API-KEY: sk_Abc123Def456Ghi789Jkl012Mno345Pqr678Stu901Vwx234Yz" \
  -H "X-API-SECRET: s3cr3t_Xyz789Abc123Def456Ghi789Jkl012Mno345Pqr678Stu901Vwx234" \

# Get only active webhooks
curl -X GET "https://api.zudu.ai/api/post-call-webhooks?activeOnly=true" \
  -H "X-API-KEY: sk_Abc123Def456Ghi789Jkl012Mno345Pqr678Stu901Vwx234Yz" \
  -H "X-API-SECRET: s3cr3t_Xyz789Abc123Def456Ghi789Jkl012Mno345Pqr678Stu901Vwx234" \
{
  "message": "Post-call webhooks retrieved successfully",
  "status": "success",
  "error": null,
  "data": {
    "webhooks": [
      {
        "id": "webhook_abc123def456...",
        "organization_id": "org_1234567890",
        "name": "Call Analytics Webhook",
        "url": "https://your-server.com/webhooks/call-complete",
        "description": "Receives call data after completion",
        "is_active": true,
        "agent_count": 5,
        "created_at": "2024-01-15T10:30:00Z",
        "updated_at": "2024-01-15T10:30:00Z"
      }
    ],
    "count": 1
  }
Retrieve a list of all post-call webhooks in your organization, optionally filtered to show only active webhooks.
# Get all webhooks
curl -X GET "https://api.zudu.ai/api/post-call-webhooks" \
  -H "X-API-KEY: sk_Abc123Def456Ghi789Jkl012Mno345Pqr678Stu901Vwx234Yz" \
  -H "X-API-SECRET: s3cr3t_Xyz789Abc123Def456Ghi789Jkl012Mno345Pqr678Stu901Vwx234" \

# Get only active webhooks
curl -X GET "https://api.zudu.ai/api/post-call-webhooks?activeOnly=true" \
  -H "X-API-KEY: sk_Abc123Def456Ghi789Jkl012Mno345Pqr678Stu901Vwx234Yz" \
  -H "X-API-SECRET: s3cr3t_Xyz789Abc123Def456Ghi789Jkl012Mno345Pqr678Stu901Vwx234" \
{
  "message": "Post-call webhooks retrieved successfully",
  "status": "success",
  "error": null,
  "data": {
    "webhooks": [
      {
        "id": "webhook_abc123def456...",
        "organization_id": "org_1234567890",
        "name": "Call Analytics Webhook",
        "url": "https://your-server.com/webhooks/call-complete",
        "description": "Receives call data after completion",
        "is_active": true,
        "agent_count": 5,
        "created_at": "2024-01-15T10:30:00Z",
        "updated_at": "2024-01-15T10:30:00Z"
      }
    ],
    "count": 1
  }

Query Parameters

activeOnly
boolean
Filter to show only active webhooks (default: false)
  • true: Returns only webhooks where is_active is true
  • false or omitted: Returns all webhooks
Example: true

Headers

X-API-KEY
string
required
Your API key (format: sk_...)
X-API-SECRET
string
required
Your API secret (format: s3cr3t_...)

Response Fields

webhooks
array
Array of webhook objectsEach webhook object contains:
  • id: Unique webhook identifier
  • organization_id: Organization ID
  • name: Webhook name
  • url: Webhook URL
  • description: Webhook description (if provided)
  • is_active: Whether the webhook is active
  • agent_count: Number of agents using this webhook
  • created_at: Creation timestamp
  • updated_at: Last update timestamp
count
integer
Total number of webhooks returned

Error Responses

error
string
Unauthorized - Missing or invalid API key/secret
error
string
Internal Server Error - Failed to retrieve webhooks
{
  "message": "Failed to retrieve post-call webhooks",
  "status": "error",
  "error": "Database connection failed"
}

Notes

  • Results are automatically scoped to your organization based on the API key (organization ID is automatically extracted)
  • The agent_count field shows how many agents are currently using each webhook
  • Use activeOnly=true to filter for webhooks that are currently active and can be assigned to agents
  • Webhooks are returned in no particular order (use client-side sorting if needed)