Skip to content
Skip to Content
DevelopersAPI referenceAssets

List the user's stored files

GET
/v1/assets

Every file stored for the user (uploads, banners, screenshots, archives, PDFs, videos and thumbnails), for a storage page. Uploads not yet attached to an item are left out. Each file names its item, or null when it has none or the item is deleted. 50 a page by default; send next_cursor back as cursor (with the same sort and kind) for the next page. API keys need read on assets.

Authorization

bearer
headerAuthorizationBearer <token>

A personal API key (ga_…), sent as Authorization: Bearer ga_…. A key gets 403 on a resource it has no access to, and on anything that changes data without write access.

Query Parameters

sort?string

size: most bytes first (a file with no known size counts as 0). newest: most recently stored first.

Default"size"
Value in"size""newest"
kind?string
Value in"upload""banner""screenshot""archive""pdf""video""thumbnail""product_image""article_image"
cursor?string
limit?integer
Range1 <= value <= 200
Default50

Response Body

A page of files

application/json
  1. response
files*array<>
next_cursor*|

null on the last page

Example Request
curl -X GET 'https://example.com/v1/assets'
Example Response
{  "files": [    {      "id": "string",      "kind": "upload",      "content_type": "string",      "size_bytes": 0,      "width": 0,      "height": 0,      "created_at": "2019-08-24T14:15:22Z",      "url": "string",      "deletable": true,      "item": {        "id": "string",        "kind": "link",        "title": "string",        "url": "string",        "domain": "string"      }    }  ],  "next_cursor": "string"}