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

API reference

Site requests

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

GET/v1/site-requestsMy requests, plus the ones I can decide

My requests, plus the ones I can decide

Query parameters

NameTypeDescription
status"pending" | "approved" | "rejected" | "cancelled"
mineboolean
limitinteger

Example

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

Responses

200

POST/v1/site-requestsAsk to work at a site, or to add a new place (optionally until a date)

Ask to work at a site, or to add a new place (optionally until a date)

Body (JSON)

NameTypeDescription
kindrequired"join_site" | "new_site"
location_idstring
namestring
addressstring or null
latnumber or null
lngnumber or null
radius_mnumber
parent_idstring or null
starts_onstring or null
ends_onstring or null
notestring or null

Example

curl -X POST "https://ca-api.clocklap.com/v1/site-requests" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kind":"join_site"}'

Responses

200

POST/v1/site-requests/{id}/approveApprove (optionally adjusting name, address, geofence size, region or end date)

Approve (optionally adjusting name, address, geofence size, region or end date)

Path parameters

NameTypeDescription
idrequiredstring

Body (JSON)

NameTypeDescription
notestring or null
namestring
addressstring or null
radius_mnumber
parent_idstring or null
ends_onstring or null

Example

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

Responses

200

POST/v1/site-requests/{id}/cancelCancel

Cancel

Path parameters

NameTypeDescription
idrequiredstring

Example

curl -X POST "https://ca-api.clocklap.com/v1/site-requests/{id}/cancel" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

POST/v1/site-requests/{id}/rejectDecline, with an optional note

Decline, with an optional note

Path parameters

NameTypeDescription
idrequiredstring

Body (JSON)

NameTypeDescription
notestring or null
namestring
addressstring or null
radius_mnumber
parent_idstring or null
ends_onstring or null

Example

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

Responses

200

GET/v1/site-requests/optionsWhether people can ask for sites here, and the sites they could ask to join

Whether people can ask for sites here, and the sites they could ask to join

Example

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

Responses

200