Skip to main content

Webhook Configuration

The Webhook Configuration API allows managing webhook endpoints to receive real-time notifications about bookkeeping events. Each tenant can have multiple webhook configurations, allowing events to be sent to different destinations.


Data Model

Webhook Configuration

{
"configuration_key": "550e8400-e29b-41d4-a716-446655440000",
"tenant_key": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
"url": "https://example.com/webhook",
"headers": {
"Authorization": "Bearer token",
"X-Custom-Header": "value"
},
"hmac_signature_key": "secret-key"
}

Create Webhook Configuration (POST)

Request

ENDPOINT
/outgoing_webhook/webhook_configuration
METHOD
POST

Request Body

{
"tenant_key": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
"url": "https://example.com/webhook",
"hmac_signature_key": "your-secret-key",
"headers": {
"Authorization": "Bearer token",
"X-Custom-Header": "value"
}
}

Request Body Params

FieldTypeDescription
tenant_key*stringTenant UUID (UUID v4).
url*stringDestination URL to receive webhooks.
hmac_signature_key*stringSecret key for HMAC signature of webhooks.
headersobjectCustom headers to include in requests.

Response

STATUS
201
Response Body
{
"configuration_key": "550e8400-e29b-41d4-a716-446655440000",
"tenant_key": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
"url": "https://example.com/webhook",
"headers": {
"Authorization": "Bearer token",
"X-Custom-Header": "value"
},
"hmac_signature_key": "your-secret-key"
}

Response Body Params

FieldTypeDescription
configuration_keystringUnique webhook configuration key (UUID v4).
tenant_keystringTenant UUID.
urlstringConfigured destination URL.
headersobjectConfigured custom headers.
hmac_signature_keystringSecret key for HMAC signature.

List Webhook Configurations (GET)

Request

ENDPOINT
/outgoing_webhook/webhook_configuration
METHOD
GET

Query Params

FieldTypeDescription
tenant_key*stringTenant UUID to filter configurations.
pageintegerPage number (default: 1).
page_sizeintegerItems per page (default: 100).

Response

STATUS
200
Response Body
{
"data": [
{
"configuration_key": "550e8400-e29b-41d4-a716-446655440000",
"tenant_key": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
"url": "https://example.com/webhook",
"headers": {
"Authorization": "Bearer token"
},
"hmac_signature_key": "your-secret-key"
}
],
"pagination": {
"current_page": 1,
"page_size": 100,
"total_rows": 15,
"total_pages": 1
}
}

Response Body Params

FieldTypeDescription
dataarrayList of webhook configurations.
paginationobjectPagination Object.

Get Webhook Configuration by Key (GET)

Request

ENDPOINT
/outgoing_webhook/webhook_configuration/CONFIGURATION-KEY
METHOD
GET

Path Params

FieldTypeDescriptionCharacters
CONFIGURATION-KEYstringUnique webhook configuration key (UUID v4).36

Response

STATUS
200
Response Body
{
"configuration_key": "550e8400-e29b-41d4-a716-446655440000",
"tenant_key": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
"url": "https://example.com/webhook",
"headers": {
"Authorization": "Bearer token"
},
"hmac_signature_key": "your-secret-key"
}

Response Body Params

FieldTypeDescription
configuration_keystringUnique webhook configuration key (UUID v4).
tenant_keystringTenant UUID.
urlstringConfigured destination URL.
headersobjectConfigured custom headers.
hmac_signature_keystringSecret key for HMAC signature.

Update Webhook Configuration (PUT)

Request

ENDPOINT
/outgoing_webhook/webhook_configuration/CONFIGURATION-KEY
METHOD
PUT

Path Params

FieldTypeDescriptionCharacters
CONFIGURATION-KEYstringUnique webhook configuration key (UUID v4).36

Request Body

{
"url": "https://new-url.com/webhook",
"headers": {
"New-Header": "new-value"
},
"hmac_signature_key": "new-secret-key"
}

Request Body Params

FieldTypeDescription
urlstringNew destination URL to receive webhooks.
headersobjectNew custom headers to include in requests.
hmac_signature_keystringNew secret key for HMAC signature of webhooks.

Response

STATUS
200
Response Body
{
"configuration_key": "550e8400-e29b-41d4-a716-446655440000",
"tenant_key": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
"url": "https://new-url.com/webhook",
"headers": {
"New-Header": "new-value"
},
"hmac_signature_key": "new-secret-key"
}

Response Body Params

FieldTypeDescription
configuration_keystringUnique webhook configuration key (UUID v4).
tenant_keystringTenant UUID.
urlstringConfigured destination URL.
headersobjectConfigured custom headers.
hmac_signature_keystringSecret key for HMAC signature.

Delete Webhook Configuration (DELETE)

Request

ENDPOINT
/outgoing_webhook/webhook_configuration/CONFIGURATION-KEY
METHOD
DELETE

Path Params

FieldTypeDescriptionCharacters
CONFIGURATION-KEYstringUnique webhook configuration key (UUID v4).36

Response

STATUS
200
Response Body
{}