Skip to main content

kobana inbox webhooks

Commands of kobana inbox webhooks. Every global option (Global options) applies here.

CommandHTTPDescription
webhooks deliveries getGET /v1/webhooks/{id}/deliveries/{deliveryId}Get webhook delivery
webhooks deliveries replayPOST /v1/webhooks/{id}/deliveries/{deliveryId}/replayReplay a webhook delivery
webhooks deliveries listGET /v1/webhooks/{id}/deliveriesList webhook deliveries
webhooks listGET /v1/webhooksList webhooks
webhooks createPOST /v1/webhooksCreate webhook
webhooks updatePUT /v1/webhooksCreate or update webhook
webhooks getGET /v1/webhooks/{id}Get webhook
webhooks deleteDELETE /v1/webhooks/{id}Delete webhook
webhooks regenerate-secretPOST /v1/webhooks/{id}/regenerate-secretRotate the signing secret
webhooks testPOST /v1/webhooks/{id}/testSend a webhook.ping event

webhooks deliveries get​

Get webhook delivery

kobana inbox webhooks deliveries get [ID] [DELIVERYID] [OPTIONS]

GET /v1/webhooks/{id}/deliveries/{deliveryId}

Accepts either the internal UUID or the resource external_id.

Path arguments: id, deliveryId

Headers

NameTypeRequiredDescription
x-origin-shared-secretstringnoShared secret between CloudFront and the origin. Required in production; ignored in development unless CF_ORIGIN_SHARED_SECRET is set.

Responses

HTTPDescription
200Success.
404Resource not found or filtered out by soft-delete.

webhooks deliveries replay​

Replay a webhook delivery

kobana inbox webhooks deliveries replay [ID] [DELIVERYID] [OPTIONS]

POST /v1/webhooks/{id}/deliveries/{deliveryId}/replay

Accepts either the internal UUID or the resource external_id.

Path arguments: id, deliveryId

Headers

NameTypeRequiredDescription
x-origin-shared-secretstringnoShared secret between CloudFront and the origin. Required in production; ignored in development unless CF_ORIGIN_SHARED_SECRET is set.

Responses

HTTPDescription
202Accepted and queued.
404Resource not found or filtered out by soft-delete.

webhooks deliveries list​

List webhook deliveries

kobana inbox webhooks deliveries list [ID] [OPTIONS]

GET /v1/webhooks/{id}/deliveries

Accepts either the internal UUID or the resource external_id.

Path arguments: id

Query parameters

NameTypeRequiredDescription
limitintegerno
cursorstringnoOpaque cursor returned in meta.next_cursor of the previous page.
sort_bystringnoField to order by. Allowed: created_at, attempt, status. Without it the order is created_at descending. Values: created_at, attempt, status.
sort_orderstringnoasc (default) or desc. Needs sort_by. Values: asc, desc.
statusstringnoEquality. Also status[in]=a,b. Values: pending, success, failed.
attemptintegernoEquality. Also attempt[in]=a,b and attempt[gt|gte|lt|lte].
attempt[gte]integerno
attempt[lte]integerno
response_statusintegernoEquality. Also response_status[in]=a,b and response_status[gt|gte|lt|lte].
response_status[gte]integerno
response_status[lte]integerno
system_event_idstringnoEquality. Also system_event_id[in]=a,b.
created_atstringnoEquality. Also created_at[in]=a,b and created_at[gt|gte|lt|lte].
created_at[gte]stringno
created_at[lte]stringno
delivered_atstringnoEquality. Also delivered_at[in]=a,b and delivered_at[gt|gte|lt|lte].
delivered_at[gte]stringno
delivered_at[lte]stringno

Headers

NameTypeRequiredDescription
x-origin-shared-secretstringnoShared secret between CloudFront and the origin. Required in production; ignored in development unless CF_ORIGIN_SHARED_SECRET is set.

Responses

HTTPDescription
200Page of results.
400Body failed Zod validation. error.details carries formErrors/fieldErrors.
404Resource not found or filtered out by soft-delete.

webhooks list​

List webhooks

kobana inbox webhooks list [OPTIONS]

GET /v1/webhooks

Keyset-paginated. Filters are typed query params (field=value, field[op]=value); unknown filters, unsortable fields and malformed values are rejected with 400 VALIDATION_ERROR.

Query parameters

NameTypeRequiredDescription
limitintegerno
cursorstringnoOpaque cursor returned in meta.next_cursor of the previous page.
sort_bystringnoField to order by. Allowed: created_at, updated_at, label. Without it the order is created_at descending. Values: created_at, updated_at, label.
sort_orderstringnoasc (default) or desc. Needs sort_by. Values: asc, desc.
statusstringnoEquality. Also status[in]=a,b. Values: active, inactive.
inbox_idstringnoEquality. Also inbox_id[in]=a,b.
external_idstringnoEquality. Also external_id[in]=a,b.
created_atstringnoEquality. Also created_at[in]=a,b and created_at[gt|gte|lt|lte].
created_at[gte]stringno
created_at[lte]stringno
updated_atstringnoEquality. Also updated_at[in]=a,b and updated_at[gt|gte|lt|lte].
updated_at[gte]stringno
updated_at[lte]stringno

Headers

NameTypeRequiredDescription
x-origin-shared-secretstringnoShared secret between CloudFront and the origin. Required in production; ignored in development unless CF_ORIGIN_SHARED_SECRET is set.

Responses

HTTPDescription
200Page of results.
400Body failed Zod validation. error.details carries formErrors/fieldErrors.
404Resource not found or filtered out by soft-delete.

webhooks create​

Create webhook

kobana inbox webhooks create [OPTIONS]

POST /v1/webhooks

Headers

NameTypeRequiredDescription
x-origin-shared-secretstringnoShared secret between CloudFront and the origin. Required in production; ignored in development unless CF_ORIGIN_SHARED_SECRET is set.

Request body

NameTypeRequiredDescription
labelstringyes
urlstring (uri)yes
external_idstringnoOptional. Defaults to the generated internal id.
inbox_idstring (uuid)no
subscribed_eventsarray<string>no
authstringnoValues: none, basic, bearer, header.
auth_basic_userstringno
auth_basic_passwordstringno
auth_bearer_tokenstringno
auth_header_keystringno
auth_header_valuestringno
signing_secretstringnoOptional. Bring your own signing secret: whsec_ + standard base64 of 24-64 random bytes. Generated (32 bytes) when omitted. Returned in plaintext only in this response.
custom_metadataobjectnoUser metadata, free-form. Send null to clear it. Max 64 KB serialized, 16 levels deep.

More fields and nested objects: kobana schema inbox.webhooks.create.

Responses

HTTPDescription
201Success.
400Body failed Zod validation. error.details carries formErrors/fieldErrors.
404Resource not found or filtered out by soft-delete.
409Unique constraint violated (e.g. external_id or inbox email already in use).
422Body validation that requires server-side context (e.g. inbox domain mismatch).

webhooks update​

Create or update webhook

kobana inbox webhooks update [OPTIONS]

PUT /v1/webhooks

Upsert. Takes the same body as POST plus the lookup keys id and external_id, matched in that order. A match is updated in place and returns 200 — fields absent from the body keep their stored value. No key, or no match, creates the webhook exactly as POST would and returns 201.

Headers

NameTypeRequiredDescription
x-origin-shared-secretstringnoShared secret between CloudFront and the origin. Required in production; ignored in development unless CF_ORIGIN_SHARED_SECRET is set.

Request body

NameTypeRequiredDescription
labelstringyes
urlstring (uri)yes
external_idstringnoMatch on the source-system id. Also stored on the record when it is created.
inbox_idstring (uuid)no
subscribed_eventsarray<string>no
authstringnoValues: none, basic, bearer, header.
auth_basic_userstringno
auth_basic_passwordstringno
auth_bearer_tokenstringno
auth_header_keystringno
auth_header_valuestringno
signing_secretstringnoOptional. Bring your own signing secret: whsec_ + standard base64 of 24-64 random bytes. Generated (32 bytes) when omitted. Returned in plaintext only in this response.
custom_metadataobjectnoUser metadata, free-form. Send null to clear it. Max 64 KB serialized, 16 levels deep.
idstring (uuid)noMatch on the internal id. Checked before external_id.

More fields and nested objects: kobana schema inbox.webhooks.update.

Responses

HTTPDescription
200Success.
201Success.
400Body failed Zod validation. error.details carries formErrors/fieldErrors.
404Resource not found or filtered out by soft-delete.
409Unique constraint violated (e.g. external_id or inbox email already in use).
422Body validation that requires server-side context (e.g. inbox domain mismatch).

webhooks get​

Get webhook

kobana inbox webhooks get [ID] [OPTIONS]

GET /v1/webhooks/{id}

Accepts either the internal UUID or the resource external_id.

Path arguments: id

Headers

NameTypeRequiredDescription
x-origin-shared-secretstringnoShared secret between CloudFront and the origin. Required in production; ignored in development unless CF_ORIGIN_SHARED_SECRET is set.

Responses

HTTPDescription
200Success.
404Resource not found or filtered out by soft-delete.

webhooks delete​

Delete webhook

kobana inbox webhooks delete [ID] [OPTIONS]

DELETE /v1/webhooks/{id}

Accepts either the internal UUID or the resource external_id.

Path arguments: id

Headers

NameTypeRequiredDescription
x-origin-shared-secretstringnoShared secret between CloudFront and the origin. Required in production; ignored in development unless CF_ORIGIN_SHARED_SECRET is set.

Responses

HTTPDescription
200Deleted (soft delete).
404Resource not found or filtered out by soft-delete.

webhooks regenerate-secret​

Rotate the signing secret

kobana inbox webhooks regenerate-secret [ID] [OPTIONS]

POST /v1/webhooks/{id}/regenerate-secret

Replaces the signing secret and returns the new value once. By default the previous secret keeps signing deliveries for 24 hours (previous_secret_grace_hours), during which every delivery carries one signature per secret so the receiver can switch keys without dropping events. Pass 0 to revoke the previous secret immediately (leaked secret). Accepts either the internal UUID or the resource external_id.

Path arguments: id

Headers

NameTypeRequiredDescription
x-origin-shared-secretstringnoShared secret between CloudFront and the origin. Required in production; ignored in development unless CF_ORIGIN_SHARED_SECRET is set.

Request body

NameTypeRequiredDescription
signing_secretstringnoOptional. Bring your own signing secret: whsec_ + standard base64 of 24-64 random bytes. Generated (32 bytes) when omitted. Returned in plaintext only in this response.
previous_secret_grace_hoursintegernoHours the previous secret remains valid after the rotation. 0 revokes it immediately.

More fields and nested objects: kobana schema inbox.webhooks.regenerate-secret.

Responses

HTTPDescription
200New signing secret (shown once).
404Resource not found or filtered out by soft-delete.

webhooks test​

Send a webhook.ping event

kobana inbox webhooks test [ID] [OPTIONS]

POST /v1/webhooks/{id}/test

Accepts either the internal UUID or the resource external_id.

Path arguments: id

Headers

NameTypeRequiredDescription
x-origin-shared-secretstringnoShared secret between CloudFront and the origin. Required in production; ignored in development unless CF_ORIGIN_SHARED_SECRET is set.

Responses

HTTPDescription
202Accepted and queued.
404Resource not found or filtered out by soft-delete.