API Reference Guide

Getting Started

To get started with the API we suggest using a tool for testing APIs. Bruno and Postman are both great for testing out API requests and getting your workflow right before you start programming.

Getting started with Bruno

To get started you will need to download and install Bruno. Bruno is a great open source tool for testing out API requests and getting your workflow right, before you start programming.

Import our Bruno Collection by downloading this file to add all our endpoints and parameters.
Import collection into Bruno
Authentication is done via API key by adding the request header "apiKey".
How to add API key into Bruno
The API key can be generated in Portal Settings API

Getting started with Postman

To get started you will need to download and install Postman. Postman is a great tool for testing out API requests and getting your workflow right, before you start programming.

Import our Postman Collection by copying this link to add all our endpoints and parameters.
Import collection into Postman
Authentication is done via API key by adding the request header "apiKey".
How to add API key into Postman
The API key can be generated in Portal Settings API

Reference

Backup Get

Checks an API key and returns the company it belongs to, along with the record types you can back up with Backup Records Get.

Example Query

GET https://timeclock.kiwi/api/backup

Example response

{
    "api_version": 1,
    "company": {
        "id": "8c1f5a2e-4b7d-4e19-9a3c-2f6d8e0b1a47",
        "name": "Harbour Joinery",
        "country": "NZ"
    },
    "entities": ["people", "groups", "kiosks", "jobs", "tasks", "shifts", "scheduled_shifts", "time_off", "visits"]
}

Backup Records Get

Returns your records a page at a time, oldest change first, so you can keep your own copy of them.

Keep asking with next_cursor until has_more is false, then save the last next_cursor. Next time, send it to get only what has changed since. The last page's cursor repeats the previous two hours of changes, so update records you already have rather than adding them again.

Parameters

PropertyDescriptionTypeRequirementDefault
entityThe kind of records to return: one of the record types below. Part of the path, for example /api/backup/shifts.StringRequired
cursorThe next_cursor from the previous page. Leave it out to start from the beginning.StringOptional
limitHow many records to return in one page, from 1 to 1000.IntegerOptional500

Record types

Record typeDescription
peopleEveryone in the account, including people who have been deleted. Each has a role and the IDs of their groups.
groupsGroups and locations, with their addresses, GPS radius and time zones.
kiosksKiosks and the location each one is at.
jobsAll jobs, including completed and deleted ones.
tasksAll tasks.
shiftsWorked shifts with their start and end times, total hours, hours worked and break hours, plus each event in the shift with its job, task, location and GPS position.
scheduled_shiftsShifts on published rosters. A shift that is no longer on a published roster comes back with on_published_roster set to false.
time_offTime off requests and their status.
visitsVisitors signing in and out on site sign in kiosks.

Example Query

GET https://timeclock.kiwi/api/backup/shifts?limit=500&cursor=eyJ0IjoiMjAyNi0xMS0xMSAxNDo0MjowMi4xMjM0NTYiLCJpZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInIiOjEyMH0

Example response

{
    "data": [
        {
            "id": "3f2b8c41-9d6e-4a57-b1c0-7e5d2a9f4c18",
            "person_id": "b6cc9e4b-cccb-4206-92a0-a387ff121c69",
            "start_time": "2026-11-10T19:00:00.000Z",
            "end_time": "2026-11-11T03:30:00.000Z",
            "timezone": "Pacific/Auckland",
            "ongoing": false,
            "deleted": false,
            "total_hours": 8.5,
            "hours_worked": 8,
            "break_hours": 0.5,
            "job_ids": ["055fdff9-c264-4c5d-a98e-e98bab581d1a"],
            "events": [
                {
                    "type": "clock_in",
                    "time": "2026-11-10T19:00:00.000Z",
                    "recorded_time": "2026-11-10T19:02:41.512Z",
                    "edited": true,
                    "timezone": "Pacific/Auckland",
                    "kiosk_id": null,
                    "location_id": "cd4ba9ad-ec05-4f60-84d6-d9f6cc558b67",
                    "location_edited": false,
                    "latitude": -36.88181,
                    "longitude": 174.62938,
                    "gps_accuracy_metres": 12,
                    "gps_mocked": false,
                    "job_name": "63 Handover Rd",
                    "task_name": null,
                    "break_minutes": null,
                    "paid": null,
                    "notes": null,
                    "deleted": false
                },
                {
                    "type": "break_start",
                    "time": "2026-11-10T23:00:00.000Z",
                    "...": "..."
                }
            ],
            "created": "2026-11-10T19:02:41.512Z",
            "last_updated": "2026-11-11T03:30:12.044Z"
        }
    ],
    "next_cursor": "eyJ0IjoiMjAyNi0xMS0xMSAxNjozMDoxMi4wNDQwMDAiLCJpZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInIiOjEyMH0",
    "has_more": false
}

Groups Get

Returns information about the group objects. Will return all the groups.

Example Query

GET https://timeclock.kiwi/api/groups

Example response

[
    {
        "id": "d2358de1-3631-428a-a314-f1bdb8ab53a2",
        "name": "Auckland",
        "deleted": false,
        "last_updated": "2024-06-06T21:19:17.622Z",
        "created": "2024-06-06T21:19:17.622Z"
    },
    {
        "id": "369b6e85-b90f-4262-9fab-08da623fe3bd",
        "name": "Christchurch",
        "deleted": false,
        "last_updated": "2024-08-12T20:00:36.701Z",
        "created": "2024-08-12T20:00:36.701Z"
    }
]

Jobs Get

Returns information about the job objects. By default will return all the jobs.

Parameters

PropertyDescriptionTypeRequirementDefault
idProviding an ID will return the specific job. Not providing this value will return all jobs.UUIDOptional
completedReturn only jobs completed field matches the value.BooleanOptionalfalse
deletedReturn only jobs deleted field matches the value.BooleanOptionalfalse

Example Query

GET https://timeclock.kiwi/api/jobs?id=01d2aa95-1866-4718-8d86-08aa5182f20d&completed=true&deleted=true

Example response

[
    {
        "id": "055fdff9-c264-4c5d-a98e-e98bab581d1a",
        "name": "63 Handover Rd",
        "description": "",
        "cost_code": null,
        "due_date": null,
        "completed": false,
        "permanent": false,
        "deleted": false,
        "budget_hours": 120,
        "priority": false,
        "last_updated": "2024-11-01T02:22:56.973Z",
        "created": "2024-11-01T02:22:56.973Z",
        "groups": [
            {
                "id": "f8a97df7-85b9-4331-a284-9463c68810b8",
                "name": "Mosgiel"
            }
        ],
        "people": null
    },
]

Jobs Add

Adds a job object.

Body

PropertyDescriptionTypeRequirementDefault
nameThe name of the job.StringRequired
descriptionThe description of the job.StringOptional
permanentIs this a job that can be marked as completed?BooleanOptionalfalse
due_dateThe date the job is due to be completed.StringRequired if permanent == false
cost_codeThe cost code for the job.StringOptional
completedHas this job been completed?BooleanOptionalfalse
deletedHas this job been deleted?BooleanOptionalfalse
budget_hoursThe labour hours budgeted (quoted) for the job. null for no budget.NumberOptionalnull
priorityIs this a priority job? Priority jobs show first on the kiosk.BooleanOptionalfalse

Example Query

POST https://timeclock.kiwi/api/jobs
{
    "name": "99 Bamford St",
    "description": "Renovating kitchen in 6 apartments",
    "permanent": false,
    "due_date": "2024-11-30 09:00",
    "cost_code": "123456",
    "budget_hours": 120,
    "priority": false,
    "completed": false,
    "deleted": false
}

Example response

{
    "name": "99 Bamford St",
    "description": "Renovating kitchen in 6 apartments",
    "permanent": false,
    "due_date": "2024-11-30 09:00",
    "cost_code": "123456",
    "budget_hours": 120,
    "priority": false,
    "completed": false,
    "deleted": false,
    "id": "b6dac400-5097-4763-8021-137222cb1ad4"
}

Jobs Delete

Deletes listed job objects.

Body

PropertyDescriptionTypeRequirementDefault
UUIDA list of UUIDs for all jobs to be deleted.UUIDRequired

Example Query

DELETE https://timeclock.kiwi/api/jobs
["01d2aa95-1866-4718-8d86-08aa5182f20d", "13074d81-2483-46ea-8bce-b8d761c2580e"]

Example response

{
    "status": 200
}

Jobs Update

Updates a job object.

Body

PropertyDescriptionTypeRequirementDefault
idThe UUID of the job that you want to modify.UUIDRequired
nameThe name of the job.StringRequired
descriptionThe description of the job.StringOptional
permanentIs this a job that can be marked as completed?BooleanOptionalfalse
due_dateThe date the job is due to be completed.StringRequired if permanent == false
cost_codeThe cost code for the job.StringOptional
completedHas this job been completed?BooleanOptionalfalse
deletedHas this job been deleted?BooleanOptionalfalse
budget_hoursThe labour hours budgeted (quoted) for the job. null for no budget.NumberOptionalnull
priorityIs this a priority job? Priority jobs show first on the kiosk.BooleanOptionalfalse
groupsThe UUIDs of all the groups this job is a part of.UUIDOptional
peopleThe UUIDs of all the people this job will be visible to.UUIDOptional
materialsA list of all the materials that have been used on this job. Materials have to have been used by a person.UUIDOptional
notesAdds a new note to the job.UUIDOptional

Example Query

PUT https://timeclock.kiwi/api/jobs
{
    "id": "dfb37a1e-692e-44d5-bedf-309b44b9e136",
    "name": "99 Bamford St",
    "description": "Renovating kitchen in 6 apartments",
    "permanent": true,
    "due_date": "2024-11-30 09:00",
    "cost_code": "123456",
    "completed": true,
    "deleted": true,
    "groups": ["d2358de1-3631-428a-a314-f1bdb8ab53a2","d2358de1-3631-428a-a314-f1bdb8ab53a3"],
    "people": ["d2358de1-3631-428a-a314-f1bdb8ab53a2","d2358de1-3631-428a-a314-f1bdb8ab53a3"],
    "materials": [{ "id": "03b133a9-4546-4e73-89c8-119fb5042fdb", "person_id": "017a1008-de92-4df2-a533-4e17b643123e", "quantity": 5}],
    "notes": [{ "person_id": "017a1008-de92-4df2-a533-4e17b643123e", "note": "Concrete has cat paw prints on it."}]
}

Example response

{
    "status": 200
}

Kiosks Get

Returns information about the kiosk objects. Will return all the kiosks.

Example Query

GET https://timeclock.kiwi/api/kiosks

Example response

[
    {
        "id": "353e1f09-9851-42c8-9b2c-e536ce2cd3bb",
        "name": "Back Stairs",
        "deleted": false,
        "status": "Offline",
        "last_updated": "2024-06-10T00:09:43.169Z",
        "created": "2024-06-10T00:09:43.169Z"
    },
    {
        "id": "7276d2e1-0fe2-4b64-8d89-1e9b65f4a969",
        "name": "Factory Front",
        "deleted": false,
        "status": "Offline",
        "last_updated": "2024-06-10T02:22:51.027Z",
        "created": "2024-06-10T02:22:51.027Z"
    }
]

Materials Get

Returns information about the material objects. Will return all the materials.

Example Query

GET https://timeclock.kiwi/api/materials

Example response

[
    {
        "id": "03b133a9-4546-4e73-89c8-119fb5042fdb",
        "name": "M2 Screw",
        "cost_code": "0001",
        "unit": "none",
        "description": "2mm thick screw",
        "last_updated": "2024-08-19T21:42:33.021Z",
        "created": "2024-08-19T21:42:33.021Z"
    },
    {
        "id": "c127106f-0570-485c-9466-dcf543d9ffbd",
        "name": "MDF18",
        "cost_code": "ABC123",
        "unit": "m²",
        "description": "18mm MDF",
        "last_updated": "2024-08-05T03:08:12.870Z",
        "created": "2024-08-05T03:08:12.870Z"
    }
]

People Get

Returns information about the people objects. Will return all the people.

Example Query

GET https://timeclock.kiwi/api/people

Example response

[
    {
        "id": "b6cc9e4b-cccb-4206-92a0-a387ff121c69",
        "first_name": "Aspen",
        "last_name": "Brewster",
        "email": "[email protected]",
        "pin_enabled": false,
        "permission": 3,
        "last_updated": "2024-09-09T02:44:06.604Z",
        "created": "2024-09-09T02:44:06.604Z"
    },
    {
        "id": "2d68300b-f34e-45f9-a1a5-fdf0daa59729",
        "first_name": "Bryne",
        "last_name": "Lynton",
        "email": null,
        "pin_enabled": false,
        "permission": 3,
        "last_updated": "2024-09-09T02:44:06.604Z",
        "created": "2024-09-09T02:44:06.604Z"
    }
]

Shifts Get

Returns information about the shift objects.

Parameters

PropertyDescriptionTypeRequirementDefault
start-dateFirst day of shifts to return (inclusive).ISO 8601 date (YYYY-MM-DD)Required
end-dateLast day of shifts to return (inclusive).ISO 8601 date (YYYY-MM-DD)Required
group-idReturn only shifts for people belonging to this group.UUIDOptional
person-idReturn only shifts for this person.UUIDOptional

Example Query

GET https://timeclock.kiwi/api/shifts?start-date=2026-02-20&end-date=2026-02-27&group-id=752d68b5-5d57-4727-8c1c-85383b76fecf&person-id=a8b3e429-d307-4cd1-bde4-1c2510b6b8ef

Example response

[
  {
    "person_id": "a8b3e429-d307-4cg1-bde4-1c2510b8b8ef",
    "first_name": "Ada",
    "last_name": "Nicodemou",
    "days": [
      {
        "date": "2026-02-20",
        "total_hours": 6.82,
        "hours_worked": 6.57,
        "break_hours": 0.25
      },
      {
        "date": "2026-02-21",
        "total_hours": 6.98,
        "hours_worked": 6.73,
        "break_hours": 0.25
      },
      {
        "date": "2026-02-22",
        "total_hours": 7.02,
        "hours_worked": 6.77,
        "break_hours": 0.25
      }
    ]
  },
  {
    "person_id": "b1d8859f-84cc-49c0-ba94-175c8a1e16c4",
    "first_name": "Fred",
    "last_name": "Flinstone",
    "days": [
      {
        "date": "2026-02-20",
        "total_hours": 8.12,
        "hours_worked": 7.95,
        "break_hours": 0.17
      },
      {
        "date": "2026-02-21",
        "total_hours": 8.13,
        "hours_worked": 7.88,
        "break_hours": 0.25
      },
      {
        "date": "2026-02-22",
        "total_hours": 1.97,
        "hours_worked": 1.72,
        "break_hours": 0.25
      }
    ]
  }
]

We are always happy to help.
Reach out to us and we will do our best to make our employee attendance system work for you.