Get the device by security code


Get the device details by security code.

Endpoint URL: {service.device.url} received in EndpointFetching

Request Syntax

GET /device/v1/device


Request Headers

ParameterDescriptionRequired
AuthorizationAuthorization token in the form "Bearer {token}."

Value of type: string
true


Request Query Parameters

ParameterDescriptionRequired
securityCodeValue of type: stringtrue


200 Response

OK

Response Payload

DescriptionRequired
Object of type: Registerfalse


Example

Sample request to get device details by security code.

Request

GET device/v1/device/?securityCode={securityCode} HTTP/1.1Host: Endpoint-URLAuthorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJContent-Type: application/json

Response

HTTP/1.1 200 OK{  "error": null,  "data": {    "deviceId": "string",    "securityCode": "123ABC456",    "modelId": "0",    "name": "string",    "mac": "string",    "type": "string",    "cloudConnected": true,    "createdOn": "2016-11-22T22:35:12",    "configuration": {      "wisb": "string",      "wiri": "string",      "status": "string",      "notes": "string"    },    "firmware": {      "wiri": "string",      "status": "string",      "notes": "string"    },    "network": {      "localIpAddress": "192.168.1.1",      "externalIpAddress": "192.4.4.4",      "internalDNSName": "192.168.1.1",      "connectionType": 0,      "httpPort": 0,      "httpPortLocal": 0,      "httpsPort": 0,      "httpsPortLocal": 0,      "notes": "string",      "tunnelId": "string",      "externalURI": "string",      "internalURI": "http://192.168.1.1",      "internalURL": "http://192.168.1.1",      "tunnelBaseURI": "string",      "proxyURL": "string",    }  }}