---
title: "Get logs for a webhook"
method: POST
path: "/v1/workspaces/{workspaceId}/webhooks/{webhookId}/logs"
tags: ["Webhooks"]
---

# Get logs for a webhook

`POST /v1/workspaces/{workspaceId}/webhooks/{webhookId}/logs`

## Path parameters

- `workspaceId` string, required — Represents a workspace identifier across the system.
- `webhookId` string, required — Represents a webhook identifier across the system.

## Query parameters

- `page` integer — Page number.
- `size` integer — Page size.

## Request body

- WebhookLogSearchRequestV1
  - `from` string, date-time — Represents date and time in yyyy-MM-ddThh:mm:ssZ format. If provided, results will include logs which occurred after this value.
  - `sortByNewest` boolean, nullable — If set to true, logs will be sorted with most recent first.
  - `status` 'ALL' | 'SUCCEEDED' | 'FAILED' — Filters logs by status.
  - `to` string, date-time — Represents date and time in yyyy-MM-ddThh:mm:ssZ format. If provided, results will include logs which occurred before this value.

## Response `200`

OK

- WebhookLogDtoV1[]
  - `id` string — Represents log identifier across the system.
  - `requestBody` string — Represents request body.
  - `respondedAt` string — Represents date and time of response.
  - `responseBody` string — Represents response body.
  - `statusCode` integer — Represents response status code.
  - `webhookEventStatusId` string — Represents webhook event status identifier across the system.
  - `webhookId` string — Represents webhook identifier across the system.

---

[API](https://skmtc.dev/clockify/apis/clockify-api.md) · [All operations](https://skmtc.dev/clockify/apis/clockify-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/clockify/clockify-api/revisions/a5b636acbcd8/schema)
