GET/api/v1/asset-types
List the asset types the org can create assets of, with their field definitions and file slots
Each type's fields is the validation contract for fields on POST and PATCH /assets: a declared key must hold a value of its type.
Scopes: assets:read
Response 200AssetTypeList
dataarray of AssetTyperequiredidstring (uuid)requirednamestringrequiredkind"asset"requiredfieldsarray of AssetFieldrequiredThe type's live field definitions, in the app's form order. Deprecated fields, and for an OAuth token the fields its person may not read, are left out.
idstring (uuid)requiredkeystringrequiredThe key a value is stored under in an asset's
fields.namestringrequiredThe field's label, as the app shows it.
typestringrequiredtext | url (a string) · select (one option
value) · multiselect (an array of option values) · date (YYYY-MM-DD) · datetime (epoch milliseconds) · number · reference (an id, or an array of ids whenmultiple). More may be added.requiredbooleanrequiredRequired for the asset to be ready (a workflow gate may wait on it). Not enforced on a write: an asset may be created empty and filled in later.
multiplebooleanrequiredFor a reference field, whether the value is an array of ids.
optionsarray of object or nullrequiredFor select and multiselect, the accepted values (store
value;labelis for display). Null for every other type.valuestringrequiredlabelstringrequired
file_slotsarray of FileSlotrequiredidstring (uuid)requirednamestring or nullrequiredmedia_typestringrequiredvideo | image | audio | document | subtitle
accept_extensionsarray of string or nullrequiredAccepted file extensions, or null for any of the media type.
multiplebooleanrequiredWhether the slot holds several files.
next_cursorstring or nullrequiredAlways null: the list is returned whole.
Other responses
- 401 unauthenticated — no key, or an unknown, revoked or expired one.
- 403 insufficient-scope — the key lacks a required scope.
- 404 not-found.
- 429 rate-limited — the key's request budget is spent; wait Retry-After seconds.
- 500 internal.