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

Auth Required

Every file under a directory, with its path from that directory and a URL, ready to hand a whole directory to a job. Subdirectories are included unless recursive=false. Narrow it to one media type with category. Returns at most limit files; truncated says when more matched.

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

Query Parameters

folderIdstringrequired

ID of the directory to list, from rows[].id of List assets.

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

Include files in subdirectories, at any depth (true, the default), or only the files directly inside (false).

Enum values:truefalse
categorystring

Keep only image, video or audio files (by MIME type), or document (everything else). Omit it for every file.

Enum values:imagevideoaudiodocument
limitnumber

Most files to return, from 1 to 1000. Defaults to 200.

Example: 200

Responses

200The files under the directory.
application/json
folderFolderFilesFolderDtorequired

The directory you listed.

Show child attributes
idstring · uuidrequired

ID of the directory.

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

Name of the directory.

Example: Campaign videos
filesFolderFileDto[]required

Files in the directory, sorted by name at each level. Directories themselves are not listed.

Show child attributes
idstring · uuidrequired

Asset ID of the file.

Example: acc539c5-32f4-4690-95b5-b245fec51066
namestringrequired

File name.

Example: product-launch.mp4
keystringrequired

Storage key of the file. Pass it to a product that takes a fileKey.

Example: 2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4
pathstringrequired

Path of the file from the listed directory, with / between directory names.

Example: spring/product-launch.mp4
mimeTypestring | nullrequired

MIME type of the file.

Example: video/mp4
sizeinteger | nullrequired

Size in bytes.

Example: 48213760
urlstring | nullrequired

URL of the file in your organization's storage.

Example: https://universe-assets.s3.ap-south-1.amazonaws.com/2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4
skippedintegerrequired

Files left out because they are not of the category asked for.

Example: 2
truncatedbooleanrequired

Whether more files matched than limit. Only the first limit are returned.

Example: false
400Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).
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
404`folderId` is not a directory in your organization (`Folder not found`).
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
GET/v1/assets-management/folder-files
curl '{{API_BASE_URL}}/v1/assets-management/folder-files?folderId=5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a&limit=200' \
  --header 'x-api-key: YOUR_API_KEY'
{
  "folder": {
    "id": "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a",
    "name": "Campaign videos"
  },
  "files": [
    {
      "id": "acc539c5-32f4-4690-95b5-b245fec51066",
      "name": "product-launch.mp4",
      "key": "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4",
      "path": "spring/product-launch.mp4",
      "mimeType": "video/mp4",
      "size": 48213760,
      "url": "https://universe-assets.s3.ap-south-1.amazonaws.com/2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4"
    }
  ],
  "skipped": 2,
  "truncated": false
}

Create a directory

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