---
title: "Generate a new token"
method: PATCH
path: "/v1/workspaces/{workspaceId}/webhooks/{webhookId}/token"
tags: ["Webhooks"]
---

# Generate a new token

`PATCH /v1/workspaces/{workspaceId}/webhooks/{webhookId}/token`

Generates a new webhook token and invalidates previous one

## Path parameters

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

## Response `200`

OK

- WebhookDtoV1 — unresolved $ref

---

[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)
