| id | string (uuid) | Required | The asset's identifier — stable for its whole life, and the one to store. |
| name | string | Required | Its title, as the organization wrote it. Never empty. |
| type | AssetType | Required | What kind of thing it is. One of: video, audio, image, document, archive, file, subtitles, third_party, other |
| status | AssetStatus | Required | Where it is in its processing: only a ready asset can be played. One of: uploading, processing, awaiting_credit, ready, error |
| workspace_id | string (uuid) | Required | The workspace it is in — the id of one of GET /v1/workspaces. An asset is in exactly
one here, whatever else the organization files it under. |
| description | stringnullable | Required | Its description, as the organization wrote it; null when it has none. |
| external_ref | stringnullable | Required | Your identifier for this asset, when the organization recorded one — the field that
maps an asset of ours to a record of yours. Not unique; null when unset. |
| language | stringnullable | Required | The language of its content, as a BCP 47 tag (fr, en-GB); null when unknown. |
| duration_ms | integernullable | Required | Its running time in milliseconds, for a video or a sound; null when it has none or it is
not known yet. |
| created_at | string (date-time) | Required | When it was created (RFC 3339). Lists are ordered by this instant, then by id. |
| updated_at | string (date-time) | Required | When anything about it last changed (RFC 3339) — but for its tags and its custom fields:
setting them does not move it. |
| third_party | ThirdPartyVideonullable | Required | For an asset of type third_party, the video it plays from another provider's site;
null for every other type. |
| third_party.provider | ThirdPartyProvider | Required | One of: youtube, vimeo, dailymotion, other |
| third_party.video_id | stringnullable | Required | The provider's own identifier of the video — what the address of its page names, such as
the v of a YouTube address — and what to match your own records on. null for other,
and when it is not known. |
| third_party.player_url | string (uri)nullable | Required | The address of its player, https://, to put in an <iframe>; null when none is known,
and the video then plays nowhere. |
| thumbnail_url | string (uri)nullable | Required | The address of its picture — the one the organization chose to show it with, else the one
Videas picked for it — as a JPEG at its own size, at most 3840 pixels a side; null while
it has none.
Stable and anonymous: it needs no key, can be put as it is in a web page's <img>, and
goes on answering the asset's picture when another one is chosen, so store the address
rather than the bytes. Its answers may be held for a few minutes and carry an ETag.
The same address gives other sizes and formats with its last segment changed:
thumbnail.webp or thumbnail.png for the picture at its own size, and
{fit}-{width}x{height}.{ext} for one fitted to a box — fit cover (filling the box,
cropped to it) or contain (inside it, never cropped), ext jpg, webp or png — such
as cover-320x180.jpg or contain-1280x720.webp. A box it does not keep is redirected
(308) to the smallest one it keeps that covers it. A picture is never enlarged.
It answers 404 once the asset is deleted or hidden, or no longer has a picture. |
| excerpt | stringnullable | Required | A short summary of it, as the organization wrote it — what a listing shows under its name
where the description would not fit; null when it has none. |
| copyright | stringnullable | Required | The notice a reuser of it has to carry — who holds its rights, under what terms — as the
organization wrote it; null when it has none. |
| seo_title | stringnullable | Required | The title a web page publishing it gives itself — in a browser's tab and a search engine's
results — where the organization wrote one; null when it has none, and such a page is then
titled with its name. |
| seo_description | stringnullable | Required | The description a web page publishing it gives search engines and link previews, where the
organization wrote one; null when it has none, and such a page then describes it with its
excerpt, else its description. |
| tags | array<TagSummary> | Required | The tags the organization files it under, ordered by name; empty when it has none. A tag a
machine suggested and nobody confirmed is not one of them. |
| tags[].id | string (uuid) | Required | The tag's identifier — the same on every asset that carries it, and kept when the tag is
renamed. |
| tags[].name | string | Required | The word itself, as the organization wrote it. |
| custom_fields | array<CustomFieldValueEntry> | Required | Its values of the organization's custom fields — of those that apply to it, by its
workspace and its type (GET /v1/custom-fields says where each applies) — in the order a
form lays them out; empty when it has none. A field it holds no value of is not in the list.
A field of type record, json or file is not read here yet. |
| custom_fields[].field_id | string (uuid) | Required | The field — the id of one of GET /v1/custom-fields. |
| custom_fields[].slug | string | Required | The field's handle, as that listing answers it. |
| custom_fields[].label | string | Required | The field's label, as that listing answers it. |
| custom_fields[].type | CustomFieldType | Required | The field's type, which decides the shape of value. One of: text, long_text, number, date, boolean, choice, link, record, json, file |
| custom_fields[].value | CustomFieldValue | Required | The value, in the shape its type gives it. |