Skip to content

Create webhook

POST
/api/v1/tenants/{tenant_id}/workspaces/{workspace_id}/webhooks

Create a new webhook subscription.

X-Workspace-ID
Any of:
string
X-API-Key
Any of:
string
X-Tenant-ID
Any of:
string
WebhookCreate

Create webhook request.

object
url
required
Url

Webhook endpoint URL

string
<= 500 characters
events
required
Events

Event types to subscribe to

Array<string>
>= 1 items
secret
Any of:
string
<= 255 characters
is_active
Is Active
boolean
default: true
Examples

Create webhook for invoice events

{
"url": "https://erp.obs.ng/integrations/zutax/webhooks",
"events": [
"invoice.submitted",
"invoice.validated",
"invoice.dispatched"
],
"secret": "whsec_live_x7v9q1e5b8t2",
"is_active": true
}

Successful Response

Examples

Created webhook response

{
"id": "f2f07352-1259-4a10-9fe3-2234f0ebdf8a",
"url": "https://erp.obs.ng/integrations/zutax/webhooks",
"events": [
"invoice.submitted",
"invoice.validated",
"invoice.dispatched"
],
"is_active": true,
"created_at": "2026-02-11T12:14:00Z"
}

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examples

422 response example

{
"detail": [
{
"loc": [],
"msg": "string",
"type": "string"
}
]
}