Heartbeat

Mobile App Integration Guide

Heartbeat

POST deprecated /?endpoint=heartbeat

Lightweight device keep-alive and config/command sync. Deprecated in favor of poll, which does everything in one round trip. Kept for backward compatibility.

*
Deprecated. Use poll instead. heartbeat is kept for backward compatibility only and may be removed in a future version.

Request Body (all optional)

FieldTypeDescription
service_activebooleantrue if the background service is running.
sms_countintegerTotal SMS messages sent since last reset.
fail_countintegerTotal failed messages since last reset.
whatsapp_enabledbooleantrue if WhatsApp is connected on the device.
is_default_smsbooleantrue if this app is the default SMS handler.
fcm_tokenstringUpdated FCM token (send only when it changes).

Example Request

cURL
curl -X POST "https://api.rcszilla.com/?endpoint=heartbeat" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR-DEVICE-TOKEN" \
  -d '{"service_active": true, "sms_count": 10}'

Response

JSON200 OK
{
  "success": true,
  "message": "ok",
  "config": {},
  "commands": []
}