Get account data
Account states
- An account comprises devices and profiles (future) relevant to clients.
- Logging into an account in SUSPENDED or CANCELLED states will result in errors.
- Account status changes are reflected in a re-fetch of access token (maximum lag of one hour)
- Device and stream limits are applied as per the profiles linked to account.
Request
To get the data for an account, send a GET request to:
https://<server>:<port>/adm/v1/user/accounts
This does not take any parameters and does not have a payload. The header must contain a token to identify the account; for details of the header fields see Account and Device Manager (ADM) API documentation.
Headers
x-correlation-id
– identifier for logging, to correlate messages across a call flow.nv-tenant-id
– the tenant ID.token
– request authentication token.
Response
The status reflected in the response should be considered for any corner cases in case of suspension, restricted and cancelled. For example:
A successful request returns an HTTP 200 status.
A bad request returns an HTTP 400 status.
If the supplied credentials (token) are not valid, the request returns an HTTP 401 status.
A forbidden request returns an HTTP 403 status.
If the resource does not exist, the request returns an HTTP 404 status.
An internal server error returns an HTTP 500 status.
See also
For full details of this API, see Account and Device Manager (ADM) API documentation.