Skip to content
Get started

List worker webhook executions

workers.webhooks.list_executions(worker_id, **kwargs) -> WebhookExecutionList { logs, page, page_count, total_count }
GET/api/workers/{workerId}/webhook/executions

List recent webhook delivery attempts for a worker, newest first, paginated 50 per page. Only the worker creator can read execution history.

ParametersExpand Collapse
worker_id: String
page: Integer

Page number (1-indexed). Defaults to 1.

minimum1
ReturnsExpand Collapse
class WebhookExecutionList { logs, page, page_count, total_count }
logs: Array[WebhookExecution { id, created_at, duration_ms, 7 more } ]
id: String
created_at: Time
formatdate-time
duration_ms: Integer

Wall-clock time spent on the delivery attempt.

error_message: String

Failure reason when requestStatus is error.

request_status: :success | :error

success when the endpoint returned a 2xx response, error otherwise.

One of the following:
:success
:error
response_status: Integer

HTTP status returned by the endpoint, when reachable.

task_id: String

Task that triggered the delivery, when available.

task_title: String

Title of the originating task, when available.

url: String

Endpoint Handinger attempted to deliver to.

worker_id: String
page: Integer

Current page number.

page_count: Integer

Total number of pages available.

total_count: Integer

Total number of executions recorded.

List worker webhook executions

require "handinger"

handinger = Handinger::Client.new(api_key: "My API Key")

webhook_execution_list = handinger.workers.webhooks.list_executions("t_org_123_w_01HZY2ZJQ8G7K42W2D7WF6V4GM")

puts(webhook_execution_list)
{
  "logs": [
    {
      "id": "whe_01HZY31W2SZJ8MJ2FQTR3M1K9D",
      "createdAt": "2019-12-27T18:11:19.117Z",
      "durationMs": 0,
      "errorMessage": "errorMessage",
      "requestStatus": "success",
      "responseStatus": 0,
      "taskId": "taskId",
      "taskTitle": "taskTitle",
      "url": "url",
      "workerId": "workerId"
    }
  ],
  "page": 0,
  "pageCount": 0,
  "totalCount": 0
}
Returns Examples
{
  "logs": [
    {
      "id": "whe_01HZY31W2SZJ8MJ2FQTR3M1K9D",
      "createdAt": "2019-12-27T18:11:19.117Z",
      "durationMs": 0,
      "errorMessage": "errorMessage",
      "requestStatus": "success",
      "responseStatus": 0,
      "taskId": "taskId",
      "taskTitle": "taskTitle",
      "url": "url",
      "workerId": "workerId"
    }
  ],
  "page": 0,
  "pageCount": 0,
  "totalCount": 0
}