Skip to main content

Device Service

Manages device registration and trust for security tracking.

Capture Device Info

POST /v1/devices/trust

Registers device information when a user opens the application. Used for security monitoring and device trust management.

Request Body:

{
"device_id": "a1b2c3d4e5f6...",
"user_id": "cus_abc12345",
"device_name": "iPhone 15 Pro",
"manufacturer": "Apple",
"model": "iPhone15,3",
"os": "iOS 18.0",
"ip_address": "192.168.1.100",
"created_at": "2025-01-15T10:00:00Z"
}
FieldTypeRequiredDescription
device_idstringYesDevice IMEI hash (SHA-256)
user_idstringYesAssociated customer ID
device_namestringYesHuman-readable device name
manufacturerstringNoDevice manufacturer
modelstringNoDevice model identifier
osstringNoOperating system and version
ip_addressstringYesDevice IP address
created_attimestampYesTimestamp of the access

Response:

{
"trusted": "true"
}

Get Device Info

GET /v1/devices/{device_id}

Retrieves information about a registered device.

Path Parameters:

ParameterTypeDescription
device_idstringHashed device IMEI

Response:

{
"object": "device",
"device_exists": true
}

If the device is not registered:

{
"object": "device",
"device_exists": false
}