On this page6 sections
POST/api/integrations/create-webhookIntegrationsPermission: integrations.create
Create Webhook Subscription
Registers a new outbound HTTPS webhook endpoint with SSRF protection, HMAC-SHA256 signing secret, event selection, and retry count.
Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).
Request
Provide the following fields in the request payload.
namestringrequired
name parameter.
urlstring (uri)required
url parameter.
eventsarray<enum('invoice.created' | 'invoice.voided' | 'product.created' | 'product.updated', ...)>required
events parameter.
logModeenum('Full' | 'Error' | 'None')optionaldefault: Full
log Mode parameter.
customUserAgentstring | nulloptional
custom User Agent parameter.
maxRetriesinteger | nulloptionaldefault: 1
max Retries parameter.
Responses
Select a status code to inspect schema.
OK — Webhook subscription created.application/json
successenum('true')
Success (true).
messagestring
Message.
dataobject | null
Response payload or null.
POST/api/integrations/create-webhook
curl -X POST "https://api.invoger.com/api/integrations/create-webhook" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{ "name": "Order Events", "url": "https://my-app.com/webhooks/invoger", "events": [ "invoice.created", "invoice.voided" ], "logMode": "Full", "maxRetries": 2 }'Interactive playground
Response
application/json
{
"success": true,
"message": "Webhook registered successfully",
"data": {
"id": "w1a2b3c4-d5e6-7f8a-9b0c-1d2e3f4a5b6c",
"name": "Order Events",
"signingSecret": "whsec_..."
}
}