Search Documentation

Search API endpoints, webhooks, tools, and guides

On this page6 sections
Is this helpful?
Quick Actions
Download OpenAPI.json
POST/api/integrations/update-webhookIntegrationsPermission: integrations.create

Update Webhook Subscription

Updates an existing webhook subscription's URL, subscribed events, retry settings, active flag, or rotates its signing secret.

Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).

Request

Provide the following fields in the request payload.

Body application/json
idstring (uuid)required

id parameter.

namestringoptional

name parameter.

urlstring (uri)optional

url parameter.

eventsarray<enum('invoice.created' | 'invoice.voided' | 'product.created' | 'product.updated', ...)>optional

events parameter.

logModeenum('Full' | 'Error' | 'None')optional

log Mode parameter.

customUserAgentstring | nulloptional

custom User Agent parameter.

maxRetriesinteger | nulloptional

max Retries parameter.

isActivebooleanoptional

is Active parameter.

rotateSecretbooleanoptional

rotate Secret parameter.

Responses

Select a status code to inspect schema.

OK — Webhook updated.application/json
successenum('true')

Success (true).

messagestring

Message.

dataobject | null

Response payload or null.

POST/api/integrations/update-webhook
curl -X POST "https://api.invoger.com/api/integrations/update-webhook" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{ "id": "w1a2b3c4-d5e6-7f8a-9b0c-1d2e3f4a5b6c", "isActive": true, "rotateSecret": false }'
Interactive playground

Response

application/json
{
  "success": true,
  "message": "Webhook updated successfully",
  "data": {
    "id": "w1a2b3c4-d5e6-7f8a-9b0c-1d2e3f4a5b6c",
    "isActive": true
  }
}