Docs
API referenceAttendance

Update attendance settings

Preview· P9
PATCH
/attendance/settings

Changes methods and evidence settings, publishes notices and sets how long evidence is kept. Send only what changes.

  • Switching evidence on (face or geofence in methods, or a selfie_mode other than off) needs a published notice for it, now or before; otherwise validation_failed at body.notices.<evidence>.
  • Notices: each one you send becomes a new version with its basis, legal_basis (for required) and text. Employees acknowledge (or consent to) the current version.
  • Data protection decisions (notices and retention) need the Data & privacy permission, held by Owners and Admins: keys and OAuth apps get forbidden.
  • At least one method stays on, organisation-wide and at every site; PIN can be off (for example "face only"). The Wi-Fi check is for phone clock-in, so it needs geofence.
  • Methods and evidence your plan doesn't include return plan_required.
  • Switching face off deletes every enrolled face template from your kiosks.

Scope: attendance:manage · 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:manage

Request Body

application/json
  1. body
Properties1 <= properties
methods?array<>

At least one. PIN can be off; the kiosk still offers it as the flagged fallback after a failed face match.

Items1 <= items
selfie_mode?SelfieMode

off, optional or required (for QR, PIN, NFC and phone punches; never face or terminal punches).

Value in"off""optional""required"
location_evidence?string
Value in"result""coordinates"
wifi_check?boolean
wifi_identifiers?boolean
face_fallback_approval?boolean
shift_reminder_minutes?integer
Range0 <= value <= 120
clock_out_reminder_minutes?integer
Range0 <= value <= 240
break_punches?boolean
selfie_retention_days?|
Range1 <= value <= 3650
coordinates_retention_days?|
Range1 <= value <= 3650
notices?

Notices to publish, each as a new version. legal_basis is required with basis required and left out with consent.

Response Body

The updated settings.

application/json
  1. response

How people clock in across your organisation and what evidence punches record.

methods*array<>

Methods on organisation-wide (at least one). Sites can change this.

selfie_mode*SelfieMode

off, optional or required (for QR, PIN, NFC and phone punches; never face or terminal punches).

Value in"off""optional""required"
location_evidence*string

With phone clock-in (geofence): keep the location check's result only, or the coordinates too.

Value in"result""coordinates"
wifi_check*boolean

Phone punches may pass by a site Wi-Fi network instead of GPS.

wifi_identifiers*boolean

Keep the network's SSID and BSSID on the punch.

face_fallback_approval*boolean

A fallback after a failed face match needs a supervisor's approval at the kiosk.

shift_reminder_minutes*integer

Remind people on the Agoo Workspace app this many minutes before a rostered shift starts, if they haven't clocked in (10 by default). 0: never.

Range0 <= value <= 120
clock_out_reminder_minutes*integer

Remind people on the Agoo Workspace app this many minutes after a rostered shift ends, if they're still clocked in (30 by default). 0: never.

Range0 <= value <= 240
break_punches*boolean

Break punches: Start break and End break on the kiosks and in the Agoo Workspace app, organisation-wide (off by default). A punched break replaces the automatic one for that day. Sites can change this.

selfie_retention_days*|

How long selfies are kept, in days (90 by default). null: until deleted.

Range1 <= value <= 3650
coordinates_retention_days*|

How long coordinates are kept, in days (90 by default); the check's result and accuracy stay with the punch. null: until deleted.

Range1 <= value <= 3650
notices*

The current notice for each evidence type, or null where none was published.

updated_at*string
Formatdate-time
curl -X PATCH 'https://api.agoohq.com/v1/attendance/settings' \  -H 'Content-Type: application/json' \  -d '{  "methods": [    "qr",    "pin",    "geofence",    "terminal"  ],  "wifi_check": true}'
{  "methods": [    "qr",    "pin",    "face",    "geofence",    "terminal"  ],  "selfie_mode": "optional",  "location_evidence": "result",  "wifi_check": true,  "wifi_identifiers": false,  "face_fallback_approval": false,  "shift_reminder_minutes": 10,  "clock_out_reminder_minutes": 30,  "selfie_retention_days": 90,  "coordinates_retention_days": 90,  "notices": {    "face": {      "version": 2,      "basis": "required",      "legal_basis": "legitimate_interests",      "text": "Ridge Medical uses face matching on its reception kiosk to record your attendance…",      "effective_on": "2026-10-01",      "published_at": "2026-09-28T10:00:00Z"    },    "selfie": {      "version": 1,      "basis": "consent",      "legal_basis": null,      "text": "With your consent, the app takes a photo when you clock in on your phone…",      "effective_on": "2026-10-01",      "published_at": "2026-09-28T10:00:00Z"    },    "location": {      "version": 1,      "basis": "required",      "legal_basis": "employment_contract",      "text": "When you clock in on your phone, the app checks that you are at the clinic…",      "effective_on": "2026-10-01",      "published_at": "2026-09-28T10:00:00Z"    }  },  "updated_at": "2026-09-28T10:00:00Z"}

Get attendance settings GET

Returns how people may clock in across your organisation, the evidence each punch records, the current notice and basis for each evidence type, and how long selfies and coordinates are kept. - **Methods:** `qr` (the kiosk scans a staff QR badge), `phone_badge` (the kiosk scans the staff badge the Workspace app shows, which changes every 30 seconds), `rotating_qr` (a phone scans the kiosk's code, which changes every 30 seconds), `pin`, `nfc`, `face` (on a kiosk), `geofence` (a phone inside the site's area) and `terminal` (your own terminal, through the API). At least one is on; sites can change them. A method that's off isn't offered, with one exception: after a failed face match the kiosk offers a fallback (PIN, a badge, NFC or a supervisor-assisted punch, method `assisted`), recorded `face_check: not_verified` for review, so nobody is ever locked out. - **Evidence** (face, selfie, location) is off until you switch it on, and each type needs a published notice. Its `basis` is `required` (your organisation requires it under its legal basis; employees acknowledge the notice and capture goes ahead either way) or `consent` (captured only for people who consented). **Scope:** `attendance:read` · **Plan:** Pro and Enterprise in live mode; every plan in test mode.

Get a site's attendance settings GET

Returns the site's own methods and selfie mode (`null` where it uses your organisation's), its geofence and Wi-Fi networks, and what applies there (`effective`). **Scope:** `attendance:read` · **Plan:** Pro and Enterprise in live mode; every plan in test mode.