List an item's files, with signed download URLs
bearerAuthorizationBearer <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.
id*stringThe item's files. Thumbnails are not listed here; they are on the item.
application/json- response
assets*array<>curl -X GET 'https://example.com/v1/items/string/assets'{ "assets": [ { "id": "string", "item_id": "string", "kind": "upload", "content_type": "string", "size_bytes": 0, "width": 0, "height": 0, "url": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ]}Start an upload POST
Returns a signed URL to PUT the file to (valid 15 minutes), with the headers to send. Then create an image or pdf item, or a note from a Markdown file, with `upload_id`, or attach it to an item with POST /v1/items/{id}/assets. Unused uploads are removed after 24 hours.
Attach an uploaded file to an item POST
An attached image only becomes the card thumbnail when the item has none. Send `as_thumbnail: true` to make it replace the current thumbnail (for example when a crawl picked a poor image). `as_thumbnail` needs an image; any other file is refused with 422.