v1

latestOpenAPI 3.0.02026-07-175989869.3 KB
Upload Tokens

List all active upload tokens

Retrieve a list of all currently active delegated tokens.

get/upload-tokens

Query parameters

sortBy'createdAt' | 'ttl'

Allowed: createdAt, ttl. You can use these to sort by when a token was created, or how much longer the token will be active (ttl - time to live). Date and time is presented in ATOM UTC format.

sortOrder'asc' | 'desc'

Allowed: asc, desc. Ascending is 0-9 or A-Z. Descending is 9-0 or Z-A.

currentPageinteger

Choose the number of search results to return per page. Minimum value: 1

pageSizeinteger

Results per page. Allowed values 1-100, default is 25.

Response

Success

Example response

{
  "pagination": {
    "itemsTotal": 123,
    "pagesTotal": 7,
    "pageSize": 20,
    "currentPage": 3,
    "currentPageItems": 20,
    "links": {
      "first": {
        "rel": "first",
        "uri": "/videos/search?currentPage=1&pageSize=20"
      },
      "previous": {
        "rel": "previous",
        "uri": "/videos/search?currentPage=2&pageSize=20"
      },
      "next": {
        "rel": "next",
        "uri": "/videos/search?currentPage=4&pageSize=20"
      },
      "last": {
        "rel": "last",
        "uri": "/videos/search?currentPage=6&pageSize=20"
      }
    }
  },
  "data": [
    {
      "createdAt": "2019-12-16T08:25:51Z",
      "ttl": 171976544,
      "expiresAt": "2019-12-16T09:25:51Z",
      "token": "to1tcmSFHeYY5KzyhOqVKMKb"
    },
    {
      "createdAt": "2019-12-16T08:25:51Z",
      "ttl": 171976544,
      "expiresAt": "2019-12-16T09:25:51Z",
      "token": "to1tcmSFHeYY5KzyhOqVKMKb"
    }
  ]
}