Skip to main content

kobana kadu webhooks

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

CommandHTTPDescription
webhooks listGET /v1/webhooksList webhooks
webhooks createPOST /v1/webhooksCreate webhook
webhooks getGET /v1/webhooks/{id}Get webhook details
webhooks updatePATCH /v1/webhooks/{id}Update webhook
webhooks deleteDELETE /v1/webhooks/{id}Delete webhooks (soft delete)
webhooks rotate-secretPOST /v1/webhooks/{id}/rotate-secretRotate the signing secret

webhooks list​

List webhooks

kobana kadu webhooks list [OPTIONS]

GET /v1/webhooks

Query parameters

NameTypeRequiredDescription
cursorstringno
limitnumberno
sort_bystringnoField in snake_case: created_at (default), updated_at or a filterable field.
sort_orderstringnoDefault: desc. Values: asc, desc.

Responses

HTTPDescription
200OK
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

webhooks create​

Create webhook

kobana kadu webhooks create [OPTIONS]

POST /v1/webhooks

The URL is checked against the internal network. signing_secret is returned only in this response (an idempotency replay returns null).

Request body

NameTypeRequiredDescription
labelstringyes
urlstring (uri)yes
authstringyesValues: basic, bearer, header.
workspace_idstring (uuid)no
auth_basic_userstringno
auth_basic_passwordstringno
auth_bearer_tokenstringno
auth_header_keystringno
auth_header_valuestringno
subscribed_eventsarray<string>no
emailsarray<object>no

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

Responses

HTTPDescription
201created
400VALIDATION_ERROR
409IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_REQUEST_IN_PROGRESS (or the route's CONFLICT)
422VALIDATION_ERROR — workspace outside the organization
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

webhooks get​

Get webhook details

kobana kadu webhooks get [ID] [OPTIONS]

GET /v1/webhooks/{id}

Path arguments: id

Responses

HTTPDescription
200OK
404not found
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

webhooks update​

Update webhook

kobana kadu webhooks update [ID] [OPTIONS]

PATCH /v1/webhooks/{id}

Path arguments: id

Request body

NameTypeRequiredDescription
labelstringno
urlstring (uri)no
subscribed_eventsarray<string>no
statusstringnoValues: active, inactive.
emailsarray<object>no
auth_basic_userstringno
auth_basic_passwordstringno
auth_bearer_tokenstringno
auth_header_keystringno
auth_header_valuestringno

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

Responses

HTTPDescription
200OK
400VALIDATION_ERROR
404NOT_FOUND
409IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_REQUEST_IN_PROGRESS (or the route's CONFLICT)
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

webhooks delete​

Delete webhooks (soft delete)

kobana kadu webhooks delete [ID] [OPTIONS]

DELETE /v1/webhooks/{id}

Requires the delete level (or all): write does not delete. Requires the webhooks.delete permission. A webhook declared in kadu.yaml (repo_managed) responds 409 REPO_MANAGED: remove it from there.

Path arguments: id

Responses

HTTPDescription
200OK
404NOT_FOUND
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

webhooks rotate-secret​

Rotate the signing secret

kobana kadu webhooks rotate-secret [ID] [OPTIONS]

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

Returns the new secret only in this response; the previous one keeps signing for 24h (an idempotency replay returns signing_secret: null).

Path arguments: id

Responses

HTTPDescription
200OK
404NOT_FOUND
409IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_REQUEST_IN_PROGRESS (or the route's CONFLICT)
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).