Create a device
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
YOUR_AUTH_KEY
This class provides the Device Create Request Dto.
The code of the device.
Flag indicating if the device is a mobile app. By default, it is false.
Flag indicating if the device is the default device.
The test mode of the device.
The name of the device.
The phone number of the device.
The operating system of the device.
The version of the operating system of the device.
The iccid of the device.
The imsi of the device.
The imei of the device.
The sim card info of the device.
The tags of the device.
The request was successful.
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
The user has exceeded the rate limit.
POST /api/v1/devices HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 355
{
"type": "Mobile",
"code": "DEV-001",
"isMobileApp": true,
"isDefault": true,
"testMode": false,
"name": "Steve's Android Phone",
"phoneNumber": "+123456789",
"osDevice": "Android",
"appVersionNumber": "3.1.0",
"iccid": "89148000001234567890",
"imsi": "310150123456789",
"imei": "358240051111110",
"simCardInfo": "CarrierX - Plan A",
"tags": "production, android",
"status": "Active"
}
{
"success": true,
"statusCode": 201,
"message": "The request was successful.",
"data": {
"id": "sApKpllz4sAplsmzha",
"type": "Web",
"code": "XYZ123",
"isMobileApp": true,
"tags": "android, smartphone",
"status": "Active",
"isDefault": true,
"testMode": false,
"name": "John's Phone",
"phoneNumber": "+1234567890",
"osDevice": "Android",
"appVersionNumber": "1.0.5",
"iccid": "89148000000000000001",
"imsi": "310260000000000",
"imei": "356938035643809",
"simCardInfo": "Verizon SIM",
"modifiedDate": "2025-07-15T07:34:48.2557029Z"
},
"errors": []
}
Last updated
Was this helpful?