Device App Register
Endpoints Summary
POST
/device_app_register/
Swagger ↗
The Device App Register API
enablesprovides functionality for registering mobile and desktop applicationsto register themselveswith the backendsystem,system.providingThis endpoint captures comprehensive device and user informationforincludingtracking,hardwareanalytics,identifiers, network details, operating system information, and user credentials for device enrollment and management purposes.
Base URL: https://gate.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Overview
The Device App Register API is designed for applicationsinitial todevice and application enrollment in the Zequenze platform. This API category handles the critical first step of device onboarding, where mobile apps, desktop applications, or other client software register themselves and their associated device informationdevices with the backend systemsystem.
Key the initial setup or authentication process. This registration captures critical device metadata, network information, user credentials, and application details that enable the system to:Capabilities:
-
Device
TrackingIdentification:&CapturesAnalytics:multipleCollecthardware identifiers (IMEI, IMSI, ICCID, MAC address) for comprehensive devicefingerprintstracking
ThisCommon APIIntegration isScenarios:
The registration process typically calledoccurs once perduring application installation or whenfirst significantrun, device/userestablishing changesthe occur.device Theidentity comprehensivethat datawill collectionbe enablesused backendfor systemssubsequent toAPI provideinteractions, personalizedpush experiences, security monitoring,notifications, and targeteddevice communications.management operations.
Endpoints
POST /device_app_register/
Description: Registers a new device and application installationinstance with the backend system,system. capturingThis endpoint should be called during app installation or first launch to establish the device identity and associate it with user credentials. The registration captures comprehensive device metadata,information networkfor information,inventory management, security tracking, and user credentials. This endpoint is essential for establishing device identity, enabling push notifications,notification and linking applications to user accounts.delivery.
Use Cases:
InitialMobile appinstallationfirst-time setup andsetupdeviceprocessenrollment
Full URL Example:
https://gate.zequenze.com/api/v1/device_app_register/
Request Body Parameters:
| Parameter | Type |
|---|
Request Body Structure:
The data parameter should contain a JSON object with the following optional fields:
cURL Example:
curl -X POST "https://gate.zequenze.com/api/v1/device_app_register/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"number": "+1234567890",
"generic_id": "550e8400-e29b-41d4-a716-446655440000"android-id-12345",
"imei": "123456789012345",
"device_brand"mac_addr": "Apple"00:1B:44:11:3A:B7",
"device_model"home_mobile_network_name": "iPhoneVerizon 15 Pro"Wireless",
"device_type"home_mobile_network_mccmnc": "ph",
"os_family": "iOS",
"os_version": "17.2.1"311480",
"app_version": "2.1.0",
"os_family": "Android",
"os_version": "14.0",
"os_api_version": "34",
"device_family": "Galaxy",
"device_brand": "Samsung",
"device_model": "Galaxy S24",
"device_type": "ph",
"push_key": "fcm-token-abc123xyz789",
"username": "john.doe",
"push_key"password": "abc123def456ghi789"securePassword123",
"home_mobile_network_name"user_class": "Verizon",
"home_mobile_network_mccmnc": "31000"premium"
}'
Example Response:
{
"number": "+1234567890",
"generic_id": "550e8400-e29b-41d4-a716-446655440000"android-id-12345",
"imei": "123456789012345",
"imsi": "310000123456789"311480123456789",
"iccid": "8901260123456789012"89014103271234567890",
"mac_addr": "02:00:00:00:00:00"1B:44:11:3A:B7",
"home_mobile_network_name": "Verizon"Verizon Wireless",
"home_mobile_network_mccmnc": "31000"311480",
"app_version": "2.1.0",
"os_family": "iOS"Android",
"os_version": "17.2.1"14.0",
"os_api_version": "17.2"34",
"device_family": "iPhone"Galaxy",
"device_brand": "Apple"Samsung",
"device_model": "iPhoneGalaxy 15 Pro"S24",
"device_type": "ph",
"push_key": "abc123def456ghi789"fcm-token-abc123xyz789",
"username": "john.doe",
"user_external_id": "ext_user_12345"ext-user-456",
"user_class": "premium"
}
Response Codes:
| Status | Description |
|---|---|
| 201 | Created - Device |
| 400 | Bad Request - Invalid data format or missing required fields |
| 401 | Unauthorized - Invalid or missing authentication token |
| 409 | Conflict - Device |
Common Use Cases
Use Case 1: Mobile App First Launch Registration
RegisterWhen a newuser installs and first opens a mobile application installation duringapp, the user'sapplication first launch, capturingcollects device identifiers, network information,information and basicregisters userwith credentialsthe backend. This establishes the device identity for accountfuture creationAPI orcalls login.and enables push notifications.
Required endpoints: POST /device_app_register/
Use Case 2: Cross-PlatformEnterprise UserDevice MigrationEnrollment
RegisterIT aadministrators newdeploying company devices use the registration API to enroll devices in the corporate management system, associating them with employee accounts and applying appropriate device whenpolicies.
Required existingendpoints: userPOST installs the application on an additional device, linking the new device to their existing account while maintaining separate device profiles./device_app_register/
Use Case 3: EnterpriseIoT Device ManagementProvisioning
Register corporateSmart devices withand comprehensiveIoT endpoints register themselves during initial setup, providing hardware identifiers and network information for compliancedevice tracking, security monitoring,management and assetmonitoring.
Required inendpoints: enterprisePOST environments./device_app_register/
Use Case 4: PushCross-Platform NotificationDevice EnablementInventory
RegisterApplications devicerunning pushon notificationmultiple tokensplatforms along(mobile, withdesktop, deviceweb) metadataregister their host devices to enablemaintain targeted,a personalizedunified notificationsinventory basedacross onall deviceuser type,touchpoints location,for security and usercompliance preferences.reporting.
Required endpoints: POST /device_app_register/
Use Case 5: AnalyticsPush and TelemetryNotification Setup
EstablishMobile and desktop applications register their push notification tokens during the device fingerprintsregistration process, enabling the backend to deliver messages and useralerts associationsto forspecific analyticsdevices.
Required enablingendpoints: detailedPOST usage analysis, performance monitoring, and user behavior insights across different device types and network conditions./device_app_register/
Best Practices
-
GradualPrivacyData Collection:Compliance: Only collect deviceinformationidentifiers that are necessary for yourapplication actually needs. Start with essential fields and expand based on specificusecasescase. Be aware of privacy regulations (GDPR, CCPA) when collecting IMEI, MAC addresses, or other persistent identifiers. -
PrivacyUniqueCompliance:Device Identification:EnsureUseuser consent before collecting sensitivemultiple identifierslikewhenIMEI,availableIMSI,(IMEIor+location-relatedMACnetworkaddressdata,+followinggeneric_id)GDPR,toCCPA,createandrobustotherdeviceprivacyfingerprintingregulationswhile having fallback options if some identifiers are unavailable. -
Secure Credential
Handling:Handling:NeverIflogpassing username/password in registration, ensure the API connection uses HTTPS and consider using temporary tokens orcache password fields. Consider using secure authenticationOAuth flows instead ofpassingpermanentpasswordspasswords.directly -
Device Type Classification: Always specify the device_type parameter to enable proper device management policies and user experience optimization based on device capabilities.
Error Handling:Handling: Implement robustretry error handlinglogic for network failuresfailures, duringbut registration,avoid withre-registering retrydevices logicthat andreturn offline409 capability(Conflict) whenresponses, possibleas this indicates the device is already known to the system.
DevicePush TypeToken Detection:Management: UseKeep standardizedpush_key devicetokens typeupdated codesas ('de',they 'la',can 'tb',expire 'ph')or consistentlychange acrosswhen yourapps applicationsare updated or reinstalled. Consider implementing a separate endpoint update mechanism for propertoken categorizationrefresh.
UpdateData Strategy:Validation: Plan for periodic re-registration or update mechanisms whenValidate device informationidentifiers changesformat before sending (OSe.g., updates,IMEI networkshould changes,be etc.)