Docs
API referenceTimesheets

Get a timesheet period

Preview· P9
GET
/timesheet-periods/{period_id}

Returns one timesheet period.

Scope: attendance:read · Plan: Pro and Enterprise in live mode; every plan in test mode.

Authorization

headerAuthorizationBearer <token>

Send Authorization: Bearer <token> on every request. The token is one of:

PrefixWhat it isWhere it may be used
agoo_sk_live_Secret key, live modeYour servers only
agoo_sk_test_Secret key, test modeYour servers only
agoo_pk_live_Publishable key, live modeBrowsers and apps: create pre-registrations and bookings, read public booking types (with their intake questions) and their free slots, read the visit types open for pre-registration with their public forms. Never lists people.
agoo_pk_test_Publishable key, test modeAs above, in test mode

Admins create keys in Console → Developers → API keys and choose each key's scopes. A key is shown once. Never put a secret key in a URL, a browser or a mobile app.

Scope: attendance:read

Path Parameters

period_id*string

The period's ID.

Match^tsp_[0-7][0-9a-hjkmnp-tv-z]{25}$
Example"tsp_01m5a2b3c4d5e6f7g8h9jkmnpr"

Response Body

The period.

application/json
  1. response

A timesheet period: weekly, fortnightly or monthly by your organisation's rules, following on from the one before.

id*TimesheetPeriodId

A timesheet period ID (TypeID with the tsp prefix).

Match^tsp_[0-7][0-9a-hjkmnp-tv-z]{25}$
Example"tsp_01m5a2b3c4d5e6f7g8h9jkmnpr"
kind*string
Value in"weekly""fortnightly""monthly"
starts_on*string
Formatdate
ends_on*string

The period's last day.

Formatdate
label*string
Example"September 2026"
Example"26 Aug to 25 Sep 2026"
payroll_on*|

The payroll date: your organisation's payroll day, or the date HR set for this period; null when there's none.

Formatdate
status*string

open while it runs, closed once it has ended, approved once every timesheet in it is approved.

Value in"open""closed""approved"
counts*
closed_at*|
Formatdate-time
approved_at*|
Formatdate-time
created_at*string
Formatdate-time
curl -X GET 'https://api.agoo.ardent.africa/v1/timesheet-periods/tsp_01m5a2b3c4d5e6f7g8h9jkmnpr'
{  "id": "tsp_01m5a2b3c4d5e6f7g8h9jkmnpr",  "kind": "monthly",  "starts_on": "2026-09-01",  "ends_on": "2026-09-30",  "label": "September 2026",  "payroll_on": "2026-10-02",  "status": "closed",  "counts": {    "open": 0,    "to_confirm": 0,    "to_approve": 3,    "approved": 11  },  "closed_at": "2026-10-01T00:05:00Z",  "approved_at": null,  "created_at": "2026-09-01T00:05:00Z"}