Skip to main content
PUT
/
v2
/
webhooks
/
{id}
Webhook Edit
curl --request PUT \
  --url https://app.closerx.ai/api/v2/webhooks/{id}/ \
  --header 'Company-Name: <company-name>' \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '
{
  "webhook_url": "https://webhook.site/abcdefgh123456789",
  "description": "This edited is a test webhook to capture call start and end events.",
  "agent_ids": [
    "570"
  ],
  "events_to_subscribe": [
    "call.started",
    "call.ended"
  ]
}
'
{
  "message": "Webhook updated successfully!",
  "data": {
    "id": 25,
    "webhook_url": "https://webhook.site/abcdefgh123456789",
    "description": "This edited is a test webhook to capture call start and end events.",
    "agents": [
      {
        "id": 570,
        "agent_name": "dan 3"
      }
    ],
    "events_to_subscribe": [
      "call.started"
    ]
  }
}

Authorizations

api_key
string
header
required

Headers

Company-Name
string
required

Schema name for multi-tenancy

Path Parameters

id
integer
required

The ID of the webhook to update

Example:

25

Body

application/json
webhook_url
string<uri>
required

The updated URL where webhook events will be sent

Example:

"https://webhook.site/abcdefgh123456789"

description
string
required

Updated description of the webhook

Example:

"This edited is a test webhook to capture call start and end events."

agent_ids
string[]
required

List of agent IDs this webhook is associated with

events_to_subscribe
string[]
required

Events to subscribe to (e.g., call.started, call.ended)

Response

Webhook updated successfully

message
string
Example:

"Webhook updated successfully!"

data
object