Register / Update Device

Mobile App Integration Guide

Register / Update Device

POST /?endpoint=register_device

Updates device metadata (phone numbers, FCM token, dual-SIM flag) on the server. Call this on every app launch to keep the panel in sync.

Request Body

Field Type Description
phone_number string optional SIM 1 phone number. Kept unchanged if omitted.
phone_number2 string optional SIM 2 phone number. Kept unchanged if omitted.
is_dual_sim boolean optional Dual-SIM flag.
fcm_token string optional Firebase Cloud Messaging token. Kept unchanged if omitted.

Example Request

cURL
curl -X POST "https://api.rcszilla.com/?endpoint=register_device" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR-DEVICE-TOKEN" \
  -d '{
    "phone_number": "+40712345678",
    "is_dual_sim": true,
    "phone_number2": "+40798765432"
  }'

Response

JSON200 OK
{
  "success": true,
  "message": "Device registered.",
  "device": {
    "id": 7,
    "name": "My Pixel 7",
    "phone_number": "+40712345678",
    "phone_number2": "+40798765432",
    "is_dual_sim": "1",
    "status": "active"
  }
}