Skip to content
ClockLap Developers
API reference clocklap.com Get an API key

API reference

Automations

5 endpoints. Click one to see its parameters, fields and an example. Code samples use the region you pick.

GET/v1/automations/meAuth test for Zapier, Make and n8n: the workspace and key this request is made with

Auth test for Zapier, Make and n8n: the workspace and key this request is made with

Example

curl "https://ca-api.clocklap.com/v1/automations/me" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

GET/v1/hooksREST hook subscriptions made by Zapier, Make or n8n

REST hook subscriptions made by Zapier, Make or n8n

Example

curl "https://ca-api.clocklap.com/v1/hooks" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

POST/v1/hooksREST hooks: subscribe a URL to one event (a trigger key such as clock_in, or an event type). Keep the id to unsubscribe

REST hooks: subscribe a URL to one event (a trigger key such as clock_in, or an event type). Keep the id to unsubscribe

Body (JSON)

NameTypeDescription
target_urlrequiredstring (uri)
eventrequiredstring
location_idstring or null
source"zapier" | "make" | "n8n" | "rest_hooks" Default "zapier"

Example

curl -X POST "https://ca-api.clocklap.com/v1/hooks" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"target_url":"https://example.com/clocklap-webhook","event":"string","location_id":"loc_01J…","source":"zapier"}'

Responses

200

DELETE/v1/hooks/{id}REST hooks: unsubscribe

REST hooks: unsubscribe

Path parameters

NameTypeDescription
idrequiredstring

Example

curl -X DELETE "https://ca-api.clocklap.com/v1/hooks/{id}" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

GET/v1/hooks/samples/{event}Recent events of a kind, newest first (samples for building a Zap, and polling triggers). A made-up example when there are none yet

Recent events of a kind, newest first (samples for building a Zap, and polling triggers). A made-up example when there are none yet

Path parameters

NameTypeDescription
eventrequiredstring

Query parameters

NameTypeDescription
limitinteger Default 3

Example

curl "https://ca-api.clocklap.com/v1/hooks/samples/{event}" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200