Create a device
Header parameters
Brand-URLstringRequiredExample:
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
Auth-KeystringRequiredExample:
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
YOUR_AUTH_KEY
Body
This class provides the Device Command Request Dto.
typestring · enumRequiredPossible values:
codestring · min: 1Required
The code of the device.
isMobileAppbooleanOptional
Flag indicating if the device is a mobile app. By default, it is false.
tagsstring | nullableOptional
The tags of the device.
statusstring · enumOptionalPossible values:
isDefaultboolean | nullableOptional
Flag indicating if the device is the default device.
testModeboolean | nullableOptional
The test mode of the device.
namestring · min: 1Required
The name of the device.
phoneNumberstring | nullableOptional
The phone number of the device.
osDevicestring · min: 1Required
The operating system of the device.
appVersionNumberstring · min: 1Required
The version of the operating system of the device.
iccidstring | nullableOptional
The iccid of the device.
imsistring | nullableOptional
The imsi of the device.
imeistring | nullableOptional
The imei of the device.
simCardInfostring | nullableOptional
The sim card info of the device.
Responses
201
The request was successful.
application/json
401
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
application/json
429
The user has exceeded the rate limit.
application/json
post
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,
"tags": "production, android",
"status": "Active",
"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"
}
{
"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-06-23T06:56:00.4443514Z"
},
"errors": []
}
Last updated
Was this helpful?