Skip to main content
GET
/
api
/
agents
/
{agentId}
/
tools
/
post-call-webhook
curl -X GET "https://api.zudu.ai/api/agents/agent_1234567890abcdef/tools/post-call-webhook" \
  -H "X-API-KEY: sk_Abc123Def456Ghi789Jkl012Mno345Pqr678Stu901Vwx234Yz" \
  -H "X-API-SECRET: s3cr3t_Xyz789Abc123Def456Ghi789Jkl012Mno345Pqr678Stu901Vwx234" \
{
  "message": "Post-call webhook tools retrieved successfully",
  "status": "success",
  "error": null,
  "data": {
    "agent_id": "agent_1234567890abcdef",
    "agent_name": "Customer Support Agent",
    "post_call_webhook_tools": [
      {
        "name": "Call Analytics Webhook",
        "url": "https://your-server.com/webhooks/call-complete",
        "description": "Receives call data after completion",
        "trigger": "post_call"
      }
    ],
    "count": 1
  }
Retrieve all post-call webhook tools configured for a specific agent. This endpoint returns the webhook tools from the agent’s tools list.
curl -X GET "https://api.zudu.ai/api/agents/agent_1234567890abcdef/tools/post-call-webhook" \
  -H "X-API-KEY: sk_Abc123Def456Ghi789Jkl012Mno345Pqr678Stu901Vwx234Yz" \
  -H "X-API-SECRET: s3cr3t_Xyz789Abc123Def456Ghi789Jkl012Mno345Pqr678Stu901Vwx234" \
{
  "message": "Post-call webhook tools retrieved successfully",
  "status": "success",
  "error": null,
  "data": {
    "agent_id": "agent_1234567890abcdef",
    "agent_name": "Customer Support Agent",
    "post_call_webhook_tools": [
      {
        "name": "Call Analytics Webhook",
        "url": "https://your-server.com/webhooks/call-complete",
        "description": "Receives call data after completion",
        "trigger": "post_call"
      }
    ],
    "count": 1
  }

Path Parameters

agentId
string
required
The ID of the agent to retrieve webhook tools for (format: agent_...)Example: agent_1234567890abcdefNote: The agent_ prefix is optional - it will be added automatically if not provided

Headers

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

Response Fields

agent_id
string
The agent ID
agent_name
string
The name of the agent
post_call_webhook_tools
array
Array of post-call webhook tool objectsEach tool object contains:
  • name: Webhook name
  • url: Webhook URL
  • description: Webhook description
  • trigger: Always "post_call" for post-call webhooks
count
integer
Number of post-call webhook tools found

Error Responses

error
string
Unauthorized - Missing or invalid API key/secret
error
string
Not Found - Agent does not exist
{
  "message": "Agent not found",
  "status": "error",
  "error": "Agent not found in organization"
}
error
string
Internal Server Error - Failed to retrieve webhook tools
{
  "message": "Failed to retrieve webhook tools",
  "status": "error",
  "error": "Database connection failed"
}

Notes

  • Results are automatically scoped to your organization based on the API key (organization ID is automatically extracted)
  • This endpoint filters the agent’s tools list to return only post-call webhook tools (where trigger is "post_call")
  • An agent typically has zero or one post-call webhook tool
  • The webhook tools are returned from the agent’s tools array, which is maintained for backward compatibility
  • Use this endpoint to check which webhooks are configured for an agent