List time clocks

Time clocks of your account and whether Timesheets approval is on for each.

GET https://cotlet.dev/api/v1/connecteam/time-clocks

read

Returns every time clock you can open under Time Clock in the left sidebar. timesheets_approval is the switch under Settings > Payroll; it is set for each time clock, so approve_timesheet works only where it is on. Use time_clock_id in the timesheet tools.

Parameters

No parameters.

Request

cURL
curl https://cotlet.dev/api/v1/connecteam/time-clocks \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("connecteam", "list_time_clocks")
Node.js
const result = await cotlet.call('connecteam', 'list_time_clocks');
CLI
cotlet call connecteam list_time_clocks

Example response

JSON

{
  "time_clocks": [
    {
      "time_clock_id": 2041,
      "name": "Main Floor",
      "timesheets_approval": true
    },
    {
      "time_clock_id": 2058,
      "name": "Kitchen",
      "timesheets_approval": false
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.