Files & Formats¶
This is an integration guide, not a separate /v1/files endpoint. The supplied specification does not declare a files endpoint. File information is embedded in an asset's formats array.
Find a File¶
- Retrieve an asset using the Assets API.
- Inspect its
formatsarray. - Choose a format supported by your application.
- Inspect
root,resourcesandzip_archive_urlrather than constructing storage URLs. - Check the asset's licence and attribution requirements before downloading or redistributing it.
isPreferredForDownload and isPreferredForGalleryViewer describe intended format preference. Do not assume a matching format always exists. Handle missing or null values.
Formats and Resources¶
The root resource and additional resources each describe a URL, MIME type and relative path. Some formats may rely on additional files; do not assume the root alone is self-contained.
A nullable zip_archive_url is also exposed. The schema does not define archive contents, URL lifetime, resource availability or permission requirements for returned URLs.
Browser Access¶
isCorsAllowed is format metadata. It does not prove the JSON API allows every website origin. Browser access to API JSON and access to resource URLs are separate questions.
Do not automatically attach your API bearer token to arbitrary resource URLs returned in metadata. Validate destinations before a server downloads remote resources, especially when processing user-controlled URLs.
Thumbnails¶
Public thumbnail metadata appears in thumbnail. Account operations for uploading replacement thumbnails use multipart form data with the required field image; see Users.
Deprecated Fields¶
AssetFormat.role is explicitly deprecated. Do not depend on it for format selection.
Schema Reference¶
AssetFormat¶
| Field | Type | Required | Details |
|---|---|---|---|
root | AssetResource or null | No | |
resources | array of AssetResource or null | No | |
formatComplexity | FormatComplexity | Yes | |
formatType | string or null | No | |
zip_archive_url | string or null | No | |
role | string or null | No | This field is deprecated. Do not rely on it for anything. Deprecated. |
isPreferredForDownload | boolean | Yes | |
isPreferredForGalleryViewer | boolean | Yes | |
isCorsAllowed | boolean | Yes |
AssetResource¶
| Field | Type | Required | Details |
|---|---|---|---|
relativePath | string | Yes | |
contentType | string | Yes | |
url | string | Yes |
FormatComplexity¶
| Field | Type | Required | Details |
|---|---|---|---|
triangleCount | integer or null | No | |
lodHint | integer or null | No |
Thumbnail¶
| Field | Type | Required | Details |
|---|---|---|---|
relativePath | string or null | No | |
contentType | string or null | No | |
url | string or null | No |
ImageSchema¶
| Field | Type | Required | Details |
|---|---|---|---|
url | string or null | No |