v1.0.0OpenAPI 3.1.1

Assets API

Download OpenAPI Document

Upload, organize and fetch the files every job works on.

Upload, organize and fetch the files your jobs work on. Every file you upload, and every result a product saves for you, is an asset in your organization's drive. New here? Read Assets for the whole flow.

Every request

Send your organization API key in the x-api-key header; it starts with uvk_. The key and organization limits count requests over a rolling minute. See Authentication and Rate limits.

Send small files with Upload files. For large files, use a direct upload or a multipart upload: you send the bytes straight to storage, then file them as an asset. Already online? Import a file from a link.

Browse with List assets, and hand a whole directory to a job with List files in a directory. Each file has a storage key and a url. Deleted assets stay in the trash for 30 days.

Directories hold files in the drive. Projects are different: they group the work for one client or job — tasks, the processes filed under them, and their files — and each has its own directory, /Projects/<name>/. They have their own Projects API; start with List projects.

None of these endpoints charge credits.

Server
{{API_BASE_URL}}
Your API environment
Authentication RequiredApiKeyAuth
Your organization API key (starts with `uvk_`). Create one in the Universe app under Settings → API keys.
x-api-key:
Client Libraries
Shell

List assets

List files in a directory

Create a directory

Auth Required

Create a directory in your organization drive (at the root, or inside another directory with parentType=FOLDER and parentId) or at the root of a project drive. Names are unique within the same place. Returns the new directory ID as plain text.

Permission: asset:create. An API key acts with the role of the member who created it.

Bodyrequiredapplication/json

namestringrequired

Name of the directory, without /. Spaces at either end are removed.

Example: Campaign videos
basePathstringrequired

Required, but not used: the place comes from parentType, parentId and projectId. Send an empty string.

Example:
parentTypestringrequired

Where the directory goes: ORGANIZATION (the organization drive root), PROJECT (the root of the projectId drive) or FOLDER (inside the parentId directory).

Enum values:ORGANIZATIONPROJECTFOLDER
Example: ORGANIZATION
parentIdstring

With parentType=FOLDER: the ID of the directory to create it in. Without it, the directory goes at the drive root.

Example: 5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a
projectIdstring

Project whose drive the directory goes in. Omit it for your organization drive. Send it too when parentId is a directory in a project drive.

Example: 1b2c3d4e-5f60-4718-9a2b-3c4d5e6f7a8b

Responses

201The directory was created. The body is its ID as plain text, not JSON.
text/html
bodystring
Example: 5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a
400A field failed validation, for example a name with `/` (`Folder name cannot contain forward slashes`), or the name is blank (`Folder name is required`).
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
401The `x-api-key` header is missing, or the key is invalid, expired or deleted.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
403Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
409A directory with this name is already in the same place (`A folder named "<name>" already exists here.`), or the name is reserved for a system directory at the drive root (`"<name>" is a reserved system folder name. Please choose another name.`).
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
429Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
500Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
POST/v1/assets-management/create-folder
curl '{{API_BASE_URL}}/v1/assets-management/create-folder' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Campaign videos",
  "basePath": "",
  "parentType": "ORGANIZATION",
  "parentId": "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a",
  "projectId": "1b2c3d4e-5f60-4718-9a2b-3c4d5e6f7a8b"
}'
"5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a"

Rename an asset

Move assets

Replace a file with an upload

Add a shortcut

Download as a zip

Get storage usage

Trash

Deleted assets wait here for 30 days, then are deleted for good. Restore them, delete them now, or empty the whole trash.

List the trash

Restore from the trash

Models

AbortMultipartUploadDto
AssetDto
AssetFavoriteDto
AssetListResponseDto
AssetMemberDto
AssetPartUrlDto
AssetPartUrlsResponseDto
AssetRecordDto
AssetSuccessResponseDto
AssetUserDto
CompletedPartDto
CompleteMultipartUploadDto
CreateAliasDto
CreateDriveFolderDto
DownloadZipDto
FolderFileDto
FolderFilesFolderDto
FolderFilesResponseDto
GetPartUrlsDto
ImportFromUrlDto
InitiateAssetMultipartResponseDto
InitiateMultipartUploadDto
MoveAssetsDto
MoveAssetsResponseDto
PresignDirectUploadDto
PresignDirectUploadResponseDto
RegisterDirectUploadDto
RegisteredUploadResponseDto
StorageUsageResponseDto
TrashedAssetDto
TrashListResponseDto
UploadedAssetResultDto