NNarya Developers
API referenceDevice models

List device models

GET
/integration/v1/device-models

Lists the device models your integration key can reach.

A key limited to one vendor sees only that vendor's models. A key without access to device models gets an empty page. Each model's vendor_id is the one to send when you register a device of that model.

Authorization

integrationKey
headerAuthorizationBearer <token>

Your integration key, sent as Authorization: Bearer nik_<prefix>_<secret>. Narya issues it.

Query Parameters

page?integer
Range1 <= value
Default1
limit?integer
Range1 <= value <= 100
Default20

Response Body

A page of device models

application/json
  1. response
data*array<>
page*integer
Range1 <= value
limit*integer
Range1 <= value <= 100
total_count*integer
Range0 <= value
total_is_capped*boolean
total_pages*integer
Range0 <= value
has_more*boolean
Example Request
curl -X GET 'https://api-narya-staging.pmadvisors.my/integration/v1/device-models'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "vendor_id": "98232994-9d54-43ee-a280-d7c895362d0c",      "name": "string",      "platform": "android",      "architecture": "string",      "status": "active",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "page": 1,  "limit": 1,  "total_count": 0,  "total_is_capped": true,  "total_pages": 0,  "has_more": true}