Create a webhook
Changed onCreating 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.
Request
- Base URL: https://api.clockify.me/api
- URL: https://api.clockify.me/api/v1/workspaces/{workspaceId}/webhooks
- Auth: one of:
- API key in header x-api-key
- API key in header x-addon-token
Path parameters
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
Changes
- warning
added the new
DEFAULT_BILLABLE_PROJECTenum value to the/response property for the response status - warning
added the new
TIME_ENTRY_ROUNDINGenum value to the/response property for the response status
- warning
- warning
added the new
APPROVAL_REQUEST_HISTORYenum value to the/response property for the response status - warning
added the new
TOILenum value to the/response property for the response status - warning
added the new
TOIL_POLICYenum value to the/response property for the response status - warning
added the new
TOIL_REQUESTenum value to the/response property for the response status - info
added the optional property
to the response with the status - info
response property
deliveryEnableddeprecated - info
response property
enableddeprecated - info
response property
planEnableddeprecated
- warning