OpenTV ENTera & OpenTV Platform Documentation

Check device approval status

Request

To check whether the device that the client application is running on is on the account's approved devices list, send a GET request to:

https://<host>:<port>/adm/v1/user/devices/amiapproved

Headers

  • x-correlation-id – identifier for logging, to correlate messages across a call flow

  • nv-tenant-id – the tenant ID

  • token – request authentication token

Mandatory arguments

None

Other arguments

None

Response

A successful request returns an HTTP 201 status. This means that the device is on the approved devices list.

A bad request returns an HTTP 400 status.

An unauthorised request returns an HTTP 401 status.

A forbidden request returns an HTTP 403 status. This means that the devices is not on the approved devices list.

Example

A successful request returns a response like this:

{
    "_id": "abc123"
}

See also

For full details of this API, see the Account and Device Manager (ADM) API documentation.