Skip to main content

kobana dashboards webhooks

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

CommandHTTPDescription
webhooks deliveries retryPOST /v1/webhooks/{id}/deliveries/{delivery_id}/retryRetry a webhook delivery
webhooks deliveries listGET /v1/webhooks/{id}/deliveriesList the deliveries of a webhook
webhooks listGET /v1/webhooksList webhook endpoints
webhooks createPOST /v1/webhooksCreate a webhook endpoint
webhooks getGET /v1/webhooks/{id}Get a webhook endpoint
webhooks updatePATCH /v1/webhooks/{id}Update a webhook endpoint
webhooks deleteDELETE /v1/webhooks/{id}Delete a webhook endpoint
webhooks rotate-secretPOST /v1/webhooks/{id}/rotate_secretRotate the webhook secret
webhooks testPOST /v1/webhooks/{id}/testSend a test webhook

webhooks deliveries retry​

Retry a webhook delivery

kobana dashboards webhooks deliveries retry [ID] [DELIVERY_ID] [OPTIONS]

POST /v1/webhooks/{id}/deliveries/{delivery_id}/retry

Puts the delivery back to pending and queues it to be sent again. Sending is asynchronous: follow the outcome in the delivery log.

Path arguments: id, delivery_id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
202Delivery queued to be sent again.
404Resource not found in the current organization.

webhooks deliveries list​

List the deliveries of a webhook

kobana dashboards webhooks deliveries list [ID] [OPTIONS]

GET /v1/webhooks/{id}/deliveries

Delivery log of one endpoint, newest first.

Path arguments: id

Query parameters

NameTypeRequiredDescription
pageintegernoPage (starts at 1). Default: 1.
per_pageintegernoItems per page. Default: 20. Maximum: 100.
sort_bystringnoSort field. Default depends on the resource.
sort_orderstringnoSort direction. Default: desc. Values: asc, desc.
statusstringnopending, delivered or failed. Values: pending, delivered, failed.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200A page of deliveries.
404Resource not found in the current organization.

webhooks list​

List webhook endpoints

kobana dashboards webhooks list [OPTIONS]

GET /v1/webhooks

Lists the webhook endpoints of the workspace, newest first, each with its delivery count.

Query parameters

NameTypeRequiredDescription
pageintegernoPage (starts at 1). Default: 1.
per_pageintegernoItems per page. Default: 20. Maximum: 100.
sort_bystringnoSort field. Default depends on the resource.
sort_orderstringnoSort direction. Default: desc. Values: asc, desc.
statusstringnoactive or inactive. Values: active, inactive.
searchstringnoSubstring of the URL or the description, case-insensitive.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200A page of webhook endpoints.
404Resource not found in the current organization.

webhooks create​

Create a webhook endpoint

kobana dashboards webhooks create [OPTIONS]

POST /v1/webhooks

Creates an active endpoint in the workspace. The response carries the signing secret — it only appears here (and on rotation).

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Request body

NameTypeRequiredDescription
urlstringyesEndpoint URL (required on creation). Must be a valid URL.
eventsarray<string>yesEvent types to receive. At least one.
descriptionstringnoFree-form description. null clears it.
auth_typestringnoDelivery authentication (default none). When changing it, send the matching auth_config too. Values: none, basic, bearer, header.
auth_configobjectnoCredentials for auth_type: basic → { username, password }, bearer → { token }, header → { key, value }. Stored encrypted and never returned.

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

Responses

HTTPDescription
201Endpoint created, with its signing secret.
400Bad request: malformed body, missing required field or a filter with an invalid value.
404Resource not found in the current organization.
422Request body failed validation.

webhooks get​

Get a webhook endpoint

kobana dashboards webhooks get [ID] [OPTIONS]

GET /v1/webhooks/{id}

Returns one webhook endpoint of the workspace. Its deliveries are at GET /webhooks/{id}/deliveries.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200The webhook endpoint.
404Resource not found in the current organization.

webhooks update​

Update a webhook endpoint

kobana dashboards webhooks update [ID] [OPTIONS]

PATCH /v1/webhooks/{id}

Changes the URL, description, subscribed events, active or the authentication. Absent fields are left as they are. When url moves to another origin, path or query string (parameter order aside) and auth_type is not sent in the same request, the stored credentials are dropped (auth_type becomes none): they were given for the previous receiver. The signing secret is kept — call rotate_secret if the endpoint changed hands.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Request body

NameTypeRequiredDescription
urlstringnoEndpoint URL (required on creation). Must be a valid URL.
eventsarray<string>noEvent types to receive. At least one.
descriptionstringnoFree-form description. null clears it.
activebooleannofalse pauses the endpoint; true resumes it.
auth_typestringnoDelivery authentication (default none). When changing it, send the matching auth_config too. Values: none, basic, bearer, header.
auth_configobjectnoCredentials for auth_type: basic → { username, password }, bearer → { token }, header → { key, value }. Stored encrypted and never returned.

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

Responses

HTTPDescription
200Endpoint updated.
400Bad request: malformed body, missing required field or a filter with an invalid value.
404Resource not found in the current organization.
422Request body failed validation.

webhooks delete​

Delete a webhook endpoint

kobana dashboards webhooks delete [ID] [OPTIONS]

DELETE /v1/webhooks/{id}

Deletes the endpoint for good, together with its delivery log. Events stop being sent immediately.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200Endpoint deleted.
404Resource not found in the current organization.

webhooks rotate-secret​

Rotate the webhook secret

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

POST /v1/webhooks/{id}/rotate_secret

Generates a new signing secret. The previous one stops working immediately; the new secret only appears in this response.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200Endpoint with its new secret.
404Resource not found in the current organization.

webhooks test​

Send a test webhook

kobana dashboards webhooks test [ID] [OPTIONS]

POST /v1/webhooks/{id}/test

Sends a signed test.webhook event to the endpoint URL now and records it in the delivery log. Answers 200 with success: false when the endpoint answers non-2xx or cannot be reached, and 422 when the URL points to a blocked (private network) address.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200Outcome of the attempt.
404Resource not found in the current organization.
422Request body failed validation.