Webhooks
Create a webhook
Creating a webhook generates a new token which can be used to verify that the webhook being sent was sent by Clockify, as it will always be present in the header.
post/v1/workspaces/{workspaceId}/webhooks
Path parameters
workspaceIdstring required
Represents a workspace identifier across the system.
Example:64a687e29ae1f428e7ebe303
Represents a workspace identifier across the system.
Request body
Example request
{
"name": "stripe",
"triggerSource": [
"54a687e29ae1f428e7ebe909",
"87p187e29ae1f428e7ebej56"
],
"triggerSourceType": "PROJECT_ID",
"url": "https://example-clockify.com/stripeEndpoint",
"webhookEvent": "NEW_PROJECT"
}Response
Created
WebhookDtoV1 required— unresolved $ref