Skip to main content
Skip table of contents

Get number of approved devices and next approval time

Request

To get the number of approved devices for an account and the next available approval time, send a GET request to:

CODE
https://<host>:<port>/adm/v1/devices/canAccountApproveADevice/{accountId}

Headers

  • Authorization: Bearer – bearer token

  • Content-Type: application/json

Mandatory arguments

  • accountId – the ID of the account (in URL)

Other arguments

None

Response

A successful request returns an HTTP 200 status.

A bad request returns an HTTP 400 status.

Example

A successful request returns a response that looks like this:

CODE
{
  "currentNumberOfApprovedDevices": 2,
  "numberOfDevicesApprovedInPeriod": 1,
  "numberOfAllowedApprovalsInPeriod": 1,
  "maximumNumberOfDevicesCanBeApproved": 5,
  "numberOfDaysInApprovalPeriod": 1,
  "nextDeviceCanBeApprovedOn": "2022-07-25T12:57:38.494Z",
  "allowedToApprove": true
}

See also

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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.