Stampfactory
Dokumentation
Stempelungen

Mobiler Status

Documented exception to the `data`-envelope standard (ADR 0005): the payload stays flat for the mobile clients.

GET
/mobile
AuthentifizierungBearer <token>

Bearer-Token, erhalten über den Login-Endpunkt (POST /rest/login).

Ort: header

Response-Body

application/json

application/json

application/json

curl -X GET "https://example.com/mobile"
{  "clocked_in": true,  "last_event": {    "id": "string",    "employee_id": "string",    "state": "string",    "type": "string",    "timestamp": "string",    "latitude": "string",    "longitude": "string",    "accuracy": "string",    "nfc_tag_id": "string",    "client_ip": "string",    "metadata": "string",    "early": 0,    "created_at": "string",    "updated_at": "string"  },  "next_state": "string",  "target_duration_seconds": 0,  "weekly_target_seconds": 0,  "weekly_seconds": 0,  "today_work_seconds": 0,  "today_pause_seconds": 0,  "overtime_account_seconds": 0,  "overtime_month_seconds": 0,  "company_name": "string"}