For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Status
OverviewProductsManageAPI ReferenceTutorialsClient Libraries
OverviewProductsManageAPI ReferenceTutorialsClient Libraries
  • Voice Generation
    • Speech-to-Speech
  • Voice Creation
  • Voice Tools
  • Real-Time Agents
    • Overview
      • Overview
      • List Webhooks
      • Get Webhook
      • Create Webhook
      • Update Webhook
      • Delete Webhook
  • Safety & Detection
Status
LogoLogo
On this page
  • HTTP Request
  • URL Parameters
  • Request Body
  • Example Request
  • Response (Success)
  • Response (Error)
  • See Also
Real-Time AgentsAgent Webhooks

Update Webhook

Was this page helpful?
Previous

Delete Webhook

Next
Built with

Update an existing webhook’s configuration.

HTTP Request

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

URL Parameters

ParameterTypeDescription
agent_uuidstringThe agent’s UUID
idintegerThe webhook ID

Request Body

AttributeTypeDescription
webhook_typestringUpdate webhook type (optional)
webhook_configobjectUpdate webhook configuration (optional)

See Create Webhook for detailed webhook_config structure and validation rules.

Example Request

$curl --request PATCH "https://app.resemble.ai/api/v2/agents/550e8400-e29b-41d4-a716-446655440000/webhooks/1" \
> -H "Authorization: Bearer YOUR_API_TOKEN" \
> -H "Content-Type: application/json" \
> --data '{
> "webhook_config": {
> "api_schema": {
> "url": "https://api.example.com/v2/pre-call",
> "method": "POST"
> },
> "assignments": [],
> "response_timeout_secs": 15
> }
> }'

Response (Success)

1{
2 "success": true,
3 "item": {
4 "id": 1,
5 "webhook_type": "pre_call",
6 "webhook_config": {
7 "api_schema": {
8 "url": "https://api.example.com/v2/pre-call",
9 "method": "POST"
10 },
11 "assignments": [],
12 "response_timeout_secs": 15
13 },
14 "created_at": "2025-01-27T10:00:00Z",
15 "updated_at": "2025-01-27T10:30:00Z"
16 },
17 "message": "Webhook updated successfully"
18}

Response (Error)

1{
2 "success": false,
3 "errors": {
4 "webhook_config": [
5 "api_schema must include 'url'"
6 ]
7 },
8 "message": "Failed to update webhook"
9}

See Also

  • Create Webhook - Create new webhooks
  • Delete Webhook - Remove webhooks
  • Agent Webhooks Overview - Learn about webhook types