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

API reference

Connections

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

GET/v1/connectionsList connections

List connections

Query parameters

NameTypeDescription
kind"payroll" | "hris" | "accounting" | "field_service"
purpose"payroll" | "hris" | "accounting" | "field_service"
include_disconnectedboolean

Example

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

Responses

200

POST/v1/connectionsAdd a connection. It starts in setup (setup_step 1); POST …/finish makes it live. purpose is required for systems that do payroll and HR

Add a connection. It starts in setup (setup_step 1); POST …/finish makes it live. purpose is required for systems that do payroll and HR

Body (JSON)

NameTypeDescription
providerrequiredstring
namestring
mode"direct" | "file"
purpose"payroll" | "hris" | "accounting" | "field_service"
location_idsarray of string
settingsobject
settings.mode"direct" | "file"
settings.pay_codesobject Default {}
settings.granularity"period_totals" | "daily" | "per_entry"
settings.include"approved" | "approved_submitted" Default "approved"
settings.skip_emptyboolean Default true
settings.rounding"0.01" | "0.25" Default "0.01"
settings.split_by"none" | "location" | "project" | "department" Default "none"
settings.split_mapobject Default {}
settings.holiday_worked"separate" | "regular" Default "separate"
settings.send_whenobject Default {"mode":"manual","days_after":1,"time":"09:00"}
settings.require_reviewboolean Default true
settings.peopleobject Default {"match":["email","employee_no","external_id"],"unmatched":"skip_and_warn"}
settings.deliveryobject Default {"method":"download","recipients":[]}
settings.fileobject
settings.providerobject Default {}
settings.accountingobject
settings.field_serviceobject

Example

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

Responses

200

GET/v1/connections/{id}Get one connection

Get one connection

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Responses

200

PATCH/v1/connections/{id}Update one connection

Update one connection

Path parameters

NameTypeDescription
idrequiredstring

Body (JSON)

NameTypeDescription
namestring
status"active" | "paused"
location_idsarray of string
settingsobject
setup_stepinteger

Example

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

Responses

200

DELETE/v1/connections/{id}Disconnect: revokes the sign-in where possible and deletes credentials; history stays

Disconnect: revokes the sign-in where possible and deletes credentials; history stays

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Responses

200

GET/v1/connections/{id}/accounting/mappingProducts / income accounts per line kind, tax codes and the payments account, with the system’s own lists

Products / income accounts per line kind, tax codes and the payments account, with the system’s own lists

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Responses

200

PUT/v1/connections/{id}/accounting/mappingSet mapping

Set mapping

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Responses

200

GET/v1/connections/{id}/accounting/previewInvoices the next sync would send (new, changed, voided, or with new payments)

Invoices the next sync would send (new, changed, voided, or with new payments)

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Responses

200

POST/v1/connections/{id}/accounting/syncSync now: send pending invoices and payments (or just the ones given). Returns the run

Sync now: send pending invoices and payments (or just the ones given). Returns the run

Path parameters

NameTypeDescription
idrequiredstring

Body (JSON)

NameTypeDescription
invoice_idsarray of string

Example

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

Responses

200

GET/v1/connections/{id}/certificateOwn API project (ADP API Central): the certificate in use and the request (CSR) waiting to be signed. Never the private key

Own API project (ADP API Central): the certificate in use and the request (CSR) waiting to be signed. Never the private key

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Responses

200

POST/v1/connections/{id}/certificate/requestMake the private key (kept encrypted, never shown) and the CSR to upload to the provider. With a certificate in use this starts a renewal; the current one keeps working until the new one is saved

Make the private key (kept encrypted, never shown) and the CSR to upload to the provider. With a certificate in use this starts a renewal; the current one keeps working until the new one is saved

Path parameters

NameTypeDescription
idrequiredstring

Body (JSON)

NameTypeDescription
organizationstring
common_namestring
regenerateboolean

Example

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

Responses

200

POST/v1/connections/{id}/certificate/reuseUse the client ID, secret and certificate of this workspace’s other connection to the same system (e.g. ADP payroll and HR on one API Central project)

Use the client ID, secret and certificate of this workspace’s other connection to the same system (e.g. ADP payroll and HR on one API Central project)

Path parameters

NameTypeDescription
idrequiredstring

Body (JSON)

NameTypeDescription
fromrequiredstring

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/certificate/reuse" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"from":"string"}'

Responses

200

POST/v1/connections/{id}/credentialsSave keys (checked with the provider first) and SFTP secrets

Save keys (checked with the provider first) and SFTP secrets

Path parameters

NameTypeDescription
idrequiredstring

Body (JSON)

NameTypeDescription
fieldsrequiredobject

Example

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

Responses

200

GET/v1/connections/{id}/customersAccounting: your clients and the customer each is matched to in the system, with suggestions

Accounting: your clients and the customer each is matched to in the system, with suggestions

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Responses

200

POST/v1/connections/{id}/customers/auto-matchMatch clients by email, then name (one clear customer each)

Match clients by email, then name (one clear customer each)

Path parameters

NameTypeDescription
idrequiredstring

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/customers/auto-match" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

POST/v1/connections/{id}/customers/matchMatch a client to a customer (remote_id), forget the match (null), leave it out ("ignore") or add it to the system now ("create")

Match a client to a customer (remote_id), forget the match (null), leave it out ("ignore") or add it to the system now ("create")

Path parameters

NameTypeDescription
idrequiredstring

Body (JSON)

NameTypeDescription
customer_idrequiredstring
remote_idstring or null

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/customers/match" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"customer_id":"cus_01J…","remote_id":"rem_01J…"}'

Responses

200

POST/v1/connections/{id}/delivery/testTest SFTP / email delivery (pins the SFTP server key on first connect)

Test SFTP / email delivery (pins the SFTP server key on first connect)

Path parameters

NameTypeDescription
idrequiredstring

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/delivery/test" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

POST/v1/connections/{id}/finishFinish setup: the connection goes live (scheduled sends and syncs start). Direct connections must be signed in

Finish setup: the connection goes live (scheduled sends and syncs start). Direct connections must be signed in

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Responses

200

POST/v1/connections/{id}/job-hoursSend hours on imported jobs back (notes or timecards), or build the hours CSV; preview: true lists what would go. Default window: the last 14 days

Send hours on imported jobs back (notes or timecards), or build the hours CSV; preview: true lists what would go. Default window: the last 14 days

Path parameters

NameTypeDescription
idrequiredstring

Body (JSON)

NameTypeDescription
previewboolean Default false
fromstring
tostring

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/job-hours" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"preview":false}'

Responses

200

GET/v1/connections/{id}/jobsField service: jobs brought in, with the project, client and site each became

Field service: jobs brought in, with the project, client and site each became

Path parameters

NameTypeDescription
idrequiredstring

Query parameters

NameTypeDescription
searchstring
limitinteger

Example

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

Responses

200

POST/v1/connections/{id}/jobs/importBring jobs in now, or preview what would change (preview: true). File systems (ServiceTitan) send the CSV text

Bring jobs in now, or preview what would change (preview: true). File systems (ServiceTitan) send the CSV text

Path parameters

NameTypeDescription
idrequiredstring

Body (JSON)

NameTypeDescription
previewboolean Default false
csvstring

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/jobs/import" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"preview":false}'

Responses

200

POST/v1/connections/{id}/oauth/startURL of the provider’s sign-in page (open it in the browser)

URL of the provider’s sign-in page (open it in the browser)

Path parameters

NameTypeDescription
idrequiredstring

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/oauth/start" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

GET/v1/connections/{id}/pay-codesPay types in use, the current mapping, suggestions and the provider’s own codes

Pay types in use, the current mapping, suggestions and the provider’s own codes

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Responses

200

PUT/v1/connections/{id}/pay-codesSet pay codes

Set pay codes

Path parameters

NameTypeDescription
idrequiredstring

Body (JSON)

NameTypeDescription
pay_codesrequiredobject

Example

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

Responses

200

GET/v1/connections/{id}/peopleMatches, unmatched people on both sides, suggestions

Matches, unmatched people on both sides, suggestions

Path parameters

NameTypeDescription
idrequiredstring

Query parameters

NameTypeDescription
refreshboolean

Example

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

Responses

200

GET/v1/connections/{id}/people-syncPeople sync: settings, field ownership, location and team maps, last run

People sync: settings, field ownership, location and team maps, last run

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Responses

200

PATCH/v1/connections/{id}/people-syncChange people sync settings (maps are replaced as a whole)

Change people sync settings (maps are replaced as a whole)

Path parameters

NameTypeDescription
idrequiredstring

Body (JSON)

NameTypeDescription
ownershipobject
create_peopleboolean
invite_new_peopleboolean
new_people_rolestring
on_termination"suggest" | "deactivate"
location_mapobject
department_location_mapobject
team_mapobject
schedule"manual" | "hourly" | "daily"
auto_applyboolean
import_balancesboolean
leave_type_mapobject
hours_per_daynumber
push_time_offboolean
fileobject
file.source"upload" | "sftp"
file.columnsobject
file.date_format"auto" | "YYYY-MM-DD" | "MM/DD/YYYY" | "DD/MM/YYYY" | "DD.MM.YYYY"
file.sftpobject or null

Example

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

Responses

200

POST/v1/connections/{id}/people-sync/balancesBring time off balances in from the HR system (dry_run: only show the differences)

Bring time off balances in from the HR system (dry_run: only show the differences)

Path parameters

NameTypeDescription
idrequiredstring

Body (JSON)

NameTypeDescription
dry_runboolean Default false

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/people-sync/balances" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"dry_run":false}'

Responses

200

POST/v1/connections/{id}/people-sync/inspect-fileRead a worker file’s columns and first rows, to match its columns before a sync

Read a worker file’s columns and first rows, to match its columns before a sync

Path parameters

NameTypeDescription
idrequiredstring

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/people-sync/inspect-file" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

GET/v1/connections/{id}/people-sync/leave-typesThe HR system’s leave types, the current mapping and suggestions

The HR system’s leave types, the current mapping and suggestions

Path parameters

NameTypeDescription
idrequiredstring

Example

curl "https://ca-api.clocklap.com/v1/connections/{id}/people-sync/leave-types" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

POST/v1/connections/{id}/people-sync/previewRead the HR system and list what would change (nothing changes yet). File systems: send the worker file (multipart, text/csv, an .xlsx, or JSON {csv}).

Read the HR system and list what would change (nothing changes yet). File systems: send the worker file (multipart, text/csv, an .xlsx, or JSON {csv}).

Path parameters

NameTypeDescription
idrequiredstring

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/people-sync/preview" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

GET/v1/connections/{id}/people-sync/runsPeople syncs, balance imports and time off sends, newest first

People syncs, balance imports and time off sends, newest first

Path parameters

NameTypeDescription
idrequiredstring

Query parameters

NameTypeDescription
limitinteger Default 30

Example

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

Responses

200

GET/v1/connections/{id}/people-sync/runs/{run}One sync with its changes

One sync with its changes

Path parameters

NameTypeDescription
idrequiredstring
runrequiredstring

Query parameters

NameTypeDescription
action"create" | "update" | "deactivate" | "reactivate" | "skip"
status"pending" | "applied" | "skipped" | "failed" | "dismissed"

Example

curl "https://ca-api.clocklap.com/v1/connections/{id}/people-sync/runs/{run}" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

POST/v1/connections/{id}/people-sync/runs/{run}/applyApply a preview: every change that applies on its own, or only the ones listed; suggestions (turning people off or back on) only when asked

Apply a preview: every change that applies on its own, or only the ones listed; suggestions (turning people off or back on) only when asked

Path parameters

NameTypeDescription
idrequiredstring
runrequiredstring

Body (JSON)

NameTypeDescription
onlyarray of integer
include_suggestionsboolean

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/people-sync/runs/{run}/apply" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"only":[0],"include_suggestions":true}'

Responses

200

POST/v1/connections/{id}/people-sync/runs/{run}/changes/{idx}/dismissLeave a person as they are (a suggestion isn’t offered again)

Leave a person as they are (a suggestion isn’t offered again)

Path parameters

NameTypeDescription
idrequiredstring
runrequiredstring
idxrequiredinteger

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/people-sync/runs/{run}/changes/{idx}/dismiss" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

POST/v1/connections/{id}/people-sync/sftp/testCheck the SFTP pickup: connect (pins the server key the first time), find the newest file matching the pattern and read it. Nothing is synced or stored.

Check the SFTP pickup: connect (pins the server key the first time), find the newest file matching the pattern and read it. Nothing is synced or stored.

Path parameters

NameTypeDescription
idrequiredstring

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/people-sync/sftp/test" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

GET/v1/connections/{id}/people-sync/suggestionsPeople who left (or came back) in the HR system, waiting for a decision

People who left (or came back) in the HR system, waiting for a decision

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Responses

200

GET/v1/connections/{id}/people-sync/time-offApproved time off sent to the HR system, newest first

Approved time off sent to the HR system, newest first

Path parameters

NameTypeDescription
idrequiredstring

Example

curl "https://ca-api.clocklap.com/v1/connections/{id}/people-sync/time-off" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

POST/v1/connections/{id}/people-sync/time-off/retryTry failed time off sends again now

Try failed time off sends again now

Path parameters

NameTypeDescription
idrequiredstring

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/people-sync/time-off/retry" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

POST/v1/connections/{id}/people-sync/uploadUpload a worker file and preview it (CSV in UTF-8, UTF-16 or Windows-1252, comma/semicolon/tab separated, or an Excel .xlsx; up to 10 MB). Multipart (field "file") or the raw file as the body. The file is read in memory and not kept; the preview run records what was read. Apply it with …/runs/:run/apply.

Upload a worker file and preview it (CSV in UTF-8, UTF-16 or Windows-1252, comma/semicolon/tab separated, or an Excel .xlsx; up to 10 MB). Multipart (field "file") or the raw file as the body. The file is read in memory and not kept; the preview run records what was read. Apply it with …/runs/:run/apply.

Path parameters

NameTypeDescription
idrequiredstring

Query parameters

NameTypeDescription
filenamestring

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/people-sync/upload" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

POST/v1/connections/{id}/people/auto-matchMatch by email, employee number and stored IDs (one clear candidate each)

Match by email, employee number and stored IDs (one clear candidate each)

Path parameters

NameTypeDescription
idrequiredstring

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/people/auto-match" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

POST/v1/connections/{id}/people/matchMatch one person (remote_id), forget a match (null) or leave them out ("ignore")

Match one person (remote_id), forget a match (null) or leave them out ("ignore")

Path parameters

NameTypeDescription
idrequiredstring

Body (JSON)

NameTypeDescription
user_idrequiredstring
remote_idstring or null

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/people/match" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id":"use_01J…","remote_id":"rem_01J…"}'

Responses

200

GET/v1/connections/{id}/runsList runs

List runs

Path parameters

NameTypeDescription
idrequiredstring

Query parameters

NameTypeDescription
kindstring
statusstring
limitinteger Default 25
cursorstring

Example

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

Responses

200

POST/v1/connections/{id}/runsPreview (default) or send hours for a period

Preview (default) or send hours for a period

Path parameters

NameTypeDescription
idrequiredstring

Body (JSON)

NameTypeDescription
kind"push_hours" | "push_time_off" | "pull_people" | "pull_balances" Default "push_hours"
periodstringAny date in the pay period (YYYY-MM-DD). Default: the last closed period.
fromstring
tostring
previewbooleantrue (default): compute lines and show them; nothing is sent Default true

Example

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

Responses

200

GET/v1/connections/{id}/runs/{run}One run: lines, warnings, per-line errors and (for admins) the redacted provider log

One run: lines, warnings, per-line errors and (for admins) the redacted provider log

Path parameters

NameTypeDescription
idrequiredstring
runrequiredstring

Example

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

Responses

200

POST/v1/connections/{id}/runs/{run}/discardThrow away a preview

Throw away a preview

Path parameters

NameTypeDescription
idrequiredstring
runrequiredstring

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/runs/{run}/discard" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

GET/v1/connections/{id}/runs/{run}/fileDownload the run’s file

Download the run’s file

Path parameters

NameTypeDescription
idrequiredstring
runrequiredstring

Example

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

Responses

200

POST/v1/connections/{id}/runs/{run}/retrySend the failed lines again

Send the failed lines again

Path parameters

NameTypeDescription
idrequiredstring
runrequiredstring

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/runs/{run}/retry" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

POST/v1/connections/{id}/runs/{run}/sendSend a preview (refused with preview_outdated if hours changed since)

Send a preview (refused with preview_outdated if hours changed since)

Path parameters

NameTypeDescription
idrequiredstring
runrequiredstring

Example

curl -X POST "https://ca-api.clocklap.com/v1/connections/{id}/runs/{run}/send" \
  -H "Authorization: Bearer $CLOCKLAP_API_KEY"

Responses

200

POST/v1/connections/{id}/testCheck sign-in, read one page of people and pay codes, check file delivery

Check sign-in, read one page of people and pay codes, check file delivery

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Responses

200

GET/v1/connections/catalogSystems ClockLap connects to, with whether each can connect directly here

Systems ClockLap connects to, with whether each can connect directly here

Example

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

Responses

200