---
title: "List webhook attempts"
method: GET
path: "/workspaces/{ws_id}/attempts"
tags: ["Attempt"]
---

# List webhook attempts

`GET /workspaces/{ws_id}/attempts`

## Query parameters

- `page_no` integer
- `page_size` integer
- `limit` integer
- `sort` 'id.desc' | 'id.asc'
- `after` string
- `before` string
- `created_at` union
  - object
    - `gt` integer
    - `gte` integer
    - `lt` integer
    - `lte` integer
  - integer
- `event_id` string
- `endpoint_id` string
- `status` string
- `attempted_at` union
  - object
    - `gt` integer
    - `gte` integer
    - `lt` integer
    - `lte` integer
  - integer

## Response `200`

OK

- union
  - object
    - `total` integer — Total number of resources.
    - `data` object[] — List of resources
      - `id` string
      - `event_id` string
      - `endpoint_id` string
      - `status` 'INIT' | 'QUEUED' | 'SUCCESSFUL' | 'FAILED' | 'CANCELED'
      - `attempt_number` integer
      - `scheduled_at` integer
      - `attempted_at` integer, nullable
      - `trigger_mode` 'INITIAL' | 'MANUAL' | 'AUTOMATIC'
      - `exhausted` boolean
      - `error_code` 'TIMEOUT' | 'UNKNOWN' | 'ENDPOINT_DISABLED' | 'ENDPOINT_NOT_FOUND', nullable
      - `request` object, nullable
        - `method` string
        - `url` string
        - `headers` object, nullable
        - `body` string, nullable
      - `response` object, nullable
        - `status` number
        - `latency` integer — Latancy of response in milliseconds
        - `headers` object, nullable
        - `body` string, nullable
      - `created_at` integer
      - `updated_at` integer
  - object
    - `next` string, nullable — URI to next page when available.
    - `prev` string, nullable — URI to previous page when available.
    - `data` object[] — List of resources
      - `id` string
      - `event_id` string
      - `endpoint_id` string
      - `status` 'INIT' | 'QUEUED' | 'SUCCESSFUL' | 'FAILED' | 'CANCELED'
      - `attempt_number` integer
      - `scheduled_at` integer
      - `attempted_at` integer, nullable
      - `trigger_mode` 'INITIAL' | 'MANUAL' | 'AUTOMATIC'
      - `exhausted` boolean
      - `error_code` 'TIMEOUT' | 'UNKNOWN' | 'ENDPOINT_DISABLED' | 'ENDPOINT_NOT_FOUND', nullable
      - `request` object, nullable
        - `method` string
        - `url` string
        - `headers` object, nullable
        - `body` string, nullable
      - `response` object, nullable
        - `status` number
        - `latency` integer — Latancy of response in milliseconds
        - `headers` object, nullable
        - `body` string, nullable
      - `created_at` integer
      - `updated_at` integer

---

[API](https://skmtc.net/webhookx-io/apis/webhookx-admin-api.md) · [All operations](https://skmtc.net/webhookx-io/apis/webhookx-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/webhookx-io/webhookx-admin-api/versions/af64d4e6c0c3/schema)
