PUT
/
webhooks
/
{id}
Update webhook
curl --request PUT \
  --url https://api.generect.com/api/v1/webhooks/{id}/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://your-app.com/webhook",
  "events": [],
  "secret": "<string>"
}
'
{
  "id": "<string>",
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "secret": "<string>",
  "is_active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Use Case:

Update a registered webhook endpoint — change its URL, subscribed events, or signing secret. Use PATCH for partial updates.

Authorizations

Authorization
string
header
required

Use the required Token prefix. Example: Authorization: Token xxxxxxxxx

Path Parameters

id
string
required

Body

application/json
url
string
required
Example:

"https://your-app.com/webhook"

events
enum<string>[]
required
Available options:
email.find.bulk.completed,
phone.find.bulk.completed
secret
string

Response

Webhook updated

id
string

Webhook identifier.

url
string

Your HTTPS endpoint that receives events.

events
string[]

Subscribed event types.

secret
string

Secret used for HMAC signature verification.

is_active
boolean
created_at
string<date-time>
updated_at
string<date-time>