Skip to content

Getting the List of Accounts

Description

Getting the list of accounts linked to OAuth token. The account name is used when configuring resources.

URL: https://api.cdnvideo.ru/app/inventory/v1/accounts/

  • Method: GET
  • Headers: CDN-AUTH-TOKEN
  • Response Data Type: JSON Array

Response Codes and their Meanings

Status Code Response Data Response Format Description
200 Accounts with status and uid JSON Account list
401 None None Unauthorized
503 None None Service unavailable

Request Example

Request example

curl -H 'cdn-auth-token:cdn2_2YXPIWIYRT15SZGQ2Q0JN362PUDXIE' 'https://api.cdnvideo.ru/app/inventory/v1/accounts/'

Successful response example

[
  {
    "status": "active",
    "uid": "1-1-paejgjuv",
    "name": "paejgjuv"
  }
]