List Webhooks

Retrieve all webhooks configured for an agent.

HTTP Request

$GET https://app.resemble.ai/api/v2/agents/{agent_uuid}/webhooks

URL Parameters

ParameterTypeDescription
agent_uuidstringThe agent’s UUID

Example Request

$curl --request GET "https://app.resemble.ai/api/v2/agents/550e8400-e29b-41d4-a716-446655440000/webhooks" \
> -H "Authorization: Bearer YOUR_API_TOKEN" \
> -H "Content-Type: application/json"

Response

1{
2 "success": true,
3 "items": [
4 {
5 "id": 1,
6 "webhook_type": "pre_call",
7 "webhook_config": {
8 "api_schema": {
9 "url": "https://api.example.com/pre-call",
10 "method": "POST",
11 "request_headers": {
12 "Authorization": "Bearer secret123"
13 },
14 "request_body": {
15 "agent_id": "{{agent_uuid}}",
16 "caller": "{{caller_phone}}"
17 }
18 },
19 "assignments": [
20 {
21 "source": "response",
22 "attribute_name": "customer_name",
23 "dynamic_variable": "customer_name"
24 }
25 ],
26 "response_timeout_secs": 10
27 },
28 "created_at": "2025-01-27T10:00:00Z",
29 "updated_at": "2025-01-27T10:00:00Z"
30 },
31 {
32 "id": 2,
33 "webhook_type": "post_call",
34 "webhook_config": {
35 "api_schema": {
36 "url": "https://api.example.com/post-call",
37 "method": "POST"
38 },
39 "response_timeout_secs": 5
40 },
41 "created_at": "2025-01-27T10:00:00Z",
42 "updated_at": "2025-01-27T10:00:00Z"
43 }
44 ],
45 "count": 2
46}

Response Body

AttributeTypeDescription
successbooleanIndicates if the request was successful
itemsarrayArray of webhook objects
countintegerTotal number of webhooks
idintegerWebhook ID
webhook_typestringWebhook type: “pre_call” or “post_call”
webhook_configobjectWebhook configuration (varies by type)
created_atstringISO8601 timestamp
updated_atstringISO8601 timestamp