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

API reference

Tasks

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

GET/v1/tasksTasks, with estimate vs hours tracked. Anyone can list them (the phone picks from them); bill rates only for people who see rates.

Tasks, with estimate vs hours tracked. Anyone can list them (the phone picks from them); bill rates only for people who see rates.

Query parameters

NameTypeDescription
project_idstring
status"open" | "done"
include_archivedboolean
assignee_idstring
searchstring

Example

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

Responses

200

POST/v1/tasksAdd a task to a project

Add a task to a project

Body (JSON)

NameTypeDescription
project_idrequiredstring
namerequiredstring
estimate_hoursnumber or null
assignee_idsarray of string
status"open" | "done"
billable_rate_centsinteger or null

Example

curl -X POST "https://ca-api.clocklap.com/v1/tasks" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"project_id":"pro_01J…","name":"Example"}'

Responses

200

GET/v1/tasks/{id}Get one task

Get one task

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Responses

200

PATCH/v1/tasks/{id}Edit a task, mark it done (status) or archive it (archived: false restores it)

Edit a task, mark it done (status) or archive it (archived: false restores it)

Path parameters

NameTypeDescription
idrequiredstring

Body (JSON)

NameTypeDescription
namestring
estimate_hoursnumber or null
assignee_idsarray of string
status"open" | "done"
billable_rate_centsinteger or null
archivedboolean
positioninteger

Example

curl -X PATCH "https://ca-api.clocklap.com/v1/tasks/{id}" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Responses

200

DELETE/v1/tasks/{id}Archive a task. Time already tracked on it keeps it.

Archive a task. Time already tracked on it keeps it.

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Responses

200