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

Uploads

Four ways to add a file: upload it through the API, send it straight to storage with a direct or multipart upload, or have the Acclaro API import it from a link. Each one files the result as an asset, at the drive root unless you choose a place.

Upload files

Get a direct upload URL

Register a direct upload

Start a multipart upload

Auth Required

Begin uploading a large file in parts (S3 multipart). Returns an uploadId and the storage key. Split the file into parts of at least 5 MB each (the last can be smaller), up to 10,000 parts; get a URL for each part with Get part upload URLs, then Complete a multipart upload. Nothing appears in your assets until you complete it. Placement fields sent here are not stored: send them again when you complete.

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

Bodyrequiredapplication/json

fileNamestringrequired

Name of the file, with its extension. The extension is kept on the storage key.

Example: product-launch.mp4
mimeTypestring

MIME type of the file, stored with the object.

Example: video/mp4
fileSizenumber

The file's size in bytes. Optional: with it, an upload that would take your organization past its plan's storage limit is refused before it starts, not only once storage is already full. The stored size is still read from storage when you complete.

Example: 3758096384
pathstring

Not used. The storage key is always chosen by the platform.

Example: campaigns/spring
parentIdstring

Not stored: send it again when you complete. With parentType=FOLDER: the ID of the directory the file goes in.

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

Where the file goes: ORGANIZATION (the drive root, the default), PROJECT (the root of the projectId drive), TASK (the files of taskId) or FOLDER (inside the parentId directory). Only echoed back here: send it again when you complete the upload.

Enum values:ORGANIZATIONPROJECTTASKFOLDER
Example: FOLDER
projectIdstring

Not stored: send it again when you complete. Project whose drive the file goes in. Omit it for your organization drive.

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

Not stored: send it again when you complete. With parentType=TASK: the task the file belongs to.

Example: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f

Responses

201The multipart upload was started.
application/json
uploadIdstringrequired

Multipart upload ID. Pass it, with key, to the other multipart calls.

Example: VXBsb2FkIElEIGZvciA2aWWpbmcncyBteS1tb3ZpZS5tMnRzIHVwbG9hZA.Ex6Lv1YvYr
keystringrequired

Storage key the file is written to.

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

The parentType you sent, or ORGANIZATION. Send the same placement again when you complete the upload: that is where the asset is filed.

Enum values:ORGANIZATIONPROJECTTASKFOLDER
Example: ORGANIZATION
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
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
500The upload could not be started (`Failed to initiate upload`, or the storage error).
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/multipart/initiate
curl '{{API_BASE_URL}}/v1/assets-management/multipart/initiate' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "fileName": "product-launch.mp4",
  "mimeType": "video/mp4",
  "fileSize": 3758096384,
  "path": "campaigns/spring",
  "parentId": "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a",
  "parentType": "FOLDER",
  "projectId": "1b2c3d4e-5f60-4718-9a2b-3c4d5e6f7a8b",
  "taskId": "6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f"
}'
{
  "uploadId": "VXBsb2FkIElEIGZvciA2aWWpbmcncyBteS1tb3ZpZS5tMnRzIHVwbG9hZA.Ex6Lv1YvYr",
  "key": "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4",
  "parentType": "ORGANIZATION"
}

Get part upload URLs

Complete a multipart upload

Abort a multipart upload

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