Skip to main content

kobana dunning webhook-endpoints

Commands of kobana dunning webhook-endpoints. Every global option (Global options) applies here.

CommandHTTPDescription
webhook-endpoints deliveries retryPOST /v1/webhook-endpoints/{id}/deliveries/{deliveryId}/retryRetry delivery
webhook-endpoints deliveries listGET /v1/webhook-endpoints/{id}/deliveriesList endpoint deliveries
webhook-endpoints listGET /v1/webhook-endpointsList webhook endpoints
webhook-endpoints createPOST /v1/webhook-endpointsCreate webhook endpoint
webhook-endpoints getGET /v1/webhook-endpoints/{id}Get webhook endpoint
webhook-endpoints updatePATCH /v1/webhook-endpoints/{id}Update webhook endpoint
webhook-endpoints deleteDELETE /v1/webhook-endpoints/{id}Delete webhook endpoint
webhook-endpoints rotate-secretPOST /v1/webhook-endpoints/{id}/rotate-secretRotate secret
webhook-endpoints testPOST /v1/webhook-endpoints/{id}/testSend test event

webhook-endpoints deliveries retry​

Retry delivery

kobana dunning webhook-endpoints deliveries retry [ID] [DELIVERYID] [OPTIONS]

POST /v1/webhook-endpoints/{id}/deliveries/{deliveryId}/retry

Re-queues a delivery for an immediate retry (status resets to pending). Fails with 409 if the endpoint is inactive or deleted.

Path arguments: id, deliveryId

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Responses

HTTPDescription
200Delivery re-queued.
404Resource not found or outside your organization.
409Conflict with the current resource state (or reused idempotency key).
413Request body larger than 2 MB.

webhook-endpoints deliveries list​

List endpoint deliveries

kobana dunning webhook-endpoints deliveries list [ID] [OPTIONS]

GET /v1/webhook-endpoints/{id}/deliveries

Lists the endpoint’s deliveries (paginated, newest first) with the request/response capture for inspection and debugging.

Path arguments: id

Query parameters

NameTypeRequiredDescription
pageintegernoPage number (starts at 1).
per_pageintegernoItems per page (max 100).
statusstringnoFilter by delivery status. Values: pending, success, failed, exhausted.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Responses

HTTPDescription
200Paginated delivery list.
404Resource not found or outside your organization.
413Request body larger than 2 MB.

webhook-endpoints list​

List webhook endpoints

kobana dunning webhook-endpoints list [OPTIONS]

GET /v1/webhook-endpoints

Lists the organization’s webhook endpoints with delivery counters by status. secret and auth_config never appear in the listing.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Responses

HTTPDescription
200Endpoint list.
404Resource not found or outside your organization.
413Request body larger than 2 MB.

webhook-endpoints create​

Create webhook endpoint

kobana dunning webhook-endpoints create [OPTIONS]

POST /v1/webhook-endpoints

Creates a webhook endpoint. The URL requires HTTPS and is validated against internal addresses (SSRF). The secret is returned only in this response — store it safely.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Request body

NameTypeRequiredDescription
urlstring (uri)yesHTTPS destination URL for deliveries (validated against internal addresses — SSRF).
descriptionstringnoFree-form endpoint description.
eventsarray<string>noSubscribed event types. Empty list = all events.
auth_typestringnoRequest authentication against your endpoint (none | basic | bearer | header), in addition to the HMAC signature (always sent). Values: none, basic, bearer, header.
auth_configobjectnoCredentials for auth_type: basic → {"username","password"}; bearer → {"token"}; header → {"key","value"}. Encrypted at rest; never returned on reads.
custom_metadataobjectnoUser metadata (free-form JSON object, read-write). See custom_data for the legacy field on core resources.

More fields and nested objects: kobana schema dunning.webhook-endpoints.create.

Responses

HTTPDescription
201Endpoint created (includes secret — shown only once).
400Invalid request (validation error).
404Resource not found or outside your organization.
413Request body larger than 2 MB.

webhook-endpoints get​

Get webhook endpoint

kobana dunning webhook-endpoints get [ID] [OPTIONS]

GET /v1/webhook-endpoints/{id}

Returns the endpoint with its latest 20 deliveries. The secret is never returned.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Responses

HTTPDescription
200Endpoint with recent deliveries.
404Resource not found or outside your organization.
413Request body larger than 2 MB.

webhook-endpoints update​

Update webhook endpoint

kobana dunning webhook-endpoints update [ID] [OPTIONS]

PATCH /v1/webhook-endpoints/{id}

Updates the endpoint (partial). The URL, when sent, is re-validated (HTTPS + SSRF); auth_config is encrypted and never returned.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Request body

NameTypeRequiredDescription
urlstring (uri)noHTTPS destination URL for deliveries (validated against internal addresses — SSRF).
descriptionstringnoFree-form endpoint description.
eventsarray<string>noSubscribed event types. Empty list = all events.
is_activebooleannoActive endpoints receive deliveries; inactive ones are skipped by the worker.
auth_typestringnoRequest authentication against your endpoint (none | basic | bearer | header), in addition to the HMAC signature (always sent). Values: none, basic, bearer, header.
auth_configobjectnoCredentials for auth_type: basic → {"username","password"}; bearer → {"token"}; header → {"key","value"}. Encrypted at rest; never returned on reads.
custom_metadataobjectnoUser metadata (free-form JSON object, read-write). See custom_data for the legacy field on core resources.
custom_metadata_modestringnoHow the custom_metadata sent is reconciled with the stored value: replace (default) replaces the whole object; merge deep-merges — nested objects merge, scalars and arrays replace the key, and a key sent as null is stored as null (not removed). Update only. Values: replace, merge.

More fields and nested objects: kobana schema dunning.webhook-endpoints.update.

Responses

HTTPDescription
200Endpoint updated.
400Invalid request (validation error).
404Resource not found or outside your organization.
413Request body larger than 2 MB.

webhook-endpoints delete​

Delete webhook endpoint

kobana dunning webhook-endpoints delete [ID] [OPTIONS]

DELETE /v1/webhook-endpoints/{id}

Soft-deletes the endpoint; pending deliveries stop being processed.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Responses

HTTPDescription
204Endpoint deleted.
404Resource not found or outside your organization.
413Request body larger than 2 MB.

webhook-endpoints rotate-secret​

Rotate secret

kobana dunning webhook-endpoints rotate-secret [ID] [OPTIONS]

POST /v1/webhook-endpoints/{id}/rotate-secret

Generates a new HMAC secret; the previous one stops validating immediately. The new secret is returned only in this response — store it safely.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Responses

HTTPDescription
200New secret (shown only once).
404Resource not found or outside your organization.
413Request body larger than 2 MB.

webhook-endpoints test​

Send test event

kobana dunning webhook-endpoints test [ID] [OPTIONS]

POST /v1/webhook-endpoints/{id}/test

Delivers a REAL webhook.test event to the endpoint through the same pipeline as business events (queue, HMAC signature, request/response capture, retry) — validate your consumer end to end without waiting for a real event. Delivered only to the target endpoint, regardless of the subscribed event list. Fails with 409 if the endpoint is inactive.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Responses

HTTPDescription
202Test event queued for delivery.
404Resource not found or outside your organization.
409Conflict with the current resource state (or reused idempotency key).
413Request body larger than 2 MB.