API referenceDevice models
List device models
GET
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.
integrationKeyheader
AuthorizationBearer <token>Your integration key, sent as Authorization: Bearer nik_<prefix>_<secret>.
Narya issues it.
page?integerRange
1 <= valueDefault
1limit?integerRange
1 <= value <= 100Default
20A page of device models
application/json- response
data*array<>page*integerRange
1 <= valuelimit*integerRange
1 <= value <= 100total_count*integerRange
0 <= valuetotal_is_capped*booleantotal_pages*integerRange
0 <= valuehas_more*booleanExample 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}