Update

PATCH
/api/v1/webhooks/{id}

Updates an outbound webhook endpoint's URL or description, or pauses and resumes it with enabled. A paused endpoint queues no events. Requires org admin.

Authorization

bearerAuth
headerAuthorizationBearer <token>

An API key created in Capy under Settings → API.

Path parameters

id*string
Match^whe_
Length15 <= length <= 30

Request body

application/json
  1. body
url?string

An https URL that resolves to a public address. Capy posts every event here.

Length1 <= length <= 2048
description?string
Lengthlength <= 255
enabled?boolean

Response body

WebhookEndpoint

application/json
  1. response
id*string
Match^whe_
Length15 <= length <= 30
url*string

An https URL that resolves to a public address. Capy posts every event here.

Length1 <= length <= 2048
description*|null
enabled*boolean
createdAt*string
updatedAt*string
curl -X PATCH "https://api.capy.ai/api/v1/webhooks/{id}" \  -H "Authorization: Bearer $CAPY_API_KEY" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "stringstringstr",  "url": "string",  "description": "string",  "enabled": true,  "createdAt": "string",  "updatedAt": "string"}
Open in Capy