Total Access Docs
Openapi

Unified WhatsApp attendance endpoint

Single endpoint for all WhatsApp attendance operations. The `action` field determines the operation: `record_clock`, `get_status`, `enroll_employee`, etc. Used by the WhatsApp attendance backend service.

POST
/api/v1/time-attendance/whatsapp/unified

Single endpoint for all WhatsApp attendance operations. The action field determines the operation: record_clock, get_status, enroll_employee, etc. Used by the WhatsApp attendance backend service.

Authorization

ApiKeyAuth
X-API-Key<token>

API key for the Public Data API and MCP bridge. Keys are prefixed with ta_sk_ (production) or ta_test_ (sandbox).

X-API-Key: ta_sk_xxxxxxxxxxxxxxxxxxxx

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/time-attendance/whatsapp/unified" \  -H "Content-Type: application/json" \  -d '{    "action": "record_clock"  }'
{  "success": true,  "data": {}}
{  "success": false,  "error": {    "code": "BAD_REQUEST",    "message": "Request body is empty. Expected JSON with action field.",    "request_id": "req_abc123",    "documentation_url": "https://dev-developer.totalaccess.co.za/docs/api-reference/errors#bad_request"  }}