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

Auth Required

Step 1 of a direct upload, for one file of any size up to 5 GB that you can send in a single request. Returns a presigned URL and the storage key. PUT the file's bytes to uploadUrl within an hour, without your API key, sending exactly the headers in headers (Content-Type, the type you asked for), then call Register a direct upload. Nothing appears in your assets until you register it. A file that may not open in a browser tab (HTML, XHTML, SVG and other documents) is kept as a download.

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

Bodyrequiredapplication/json

fileNamestringrequired

Name of the file. Only the last part after any / is kept, up to 200 characters, as the end of the storage key.

Example: quarterly-review.pptx
contentTypestringrequired

MIME type of the file. Send the same Content-Type header when you PUT the bytes, or storage rejects the upload.

Example: application/vnd.openxmlformats-officedocument.presentationml.presentation
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.

Example: 524288000

Responses

201The upload URL and the key it writes to.
application/json
uploadUrlstringrequired

Presigned URL. PUT the file bytes to it, without your API key, sending exactly the headers below.

Example: https://universe-assets.s3.ap-south-1.amazonaws.com/2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/direct-uploads/1d2e3f4a-5b6c-4d7e-8f90-a1b2c3d4e5f6-quarterly-review.pptx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&X-Amz-Signature=…
keystringrequired

Storage key the file is written to. Pass it to Register a direct upload.

Example: 2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/direct-uploads/1d2e3f4a-5b6c-4d7e-8f90-a1b2c3d4e5f6-quarterly-review.pptx
expiresInSecondsintegerrequired

Seconds until uploadUrl expires. Always 3600.

Example: 3600
headersobjectrequired

Headers the PUT must send, exactly: the URL is signed over them. Content-Type, the type you asked for.

Example: {"Content-Type":"application/pdf"}
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 URL could not be created (`Could not create an upload URL`, 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/presign-direct-upload
curl '{{API_BASE_URL}}/v1/assets-management/presign-direct-upload' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "fileName": "quarterly-review.pptx",
  "contentType": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
  "fileSize": 524288000
}'
{
  "uploadUrl": "https://universe-assets.s3.ap-south-1.amazonaws.com/2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/direct-uploads/1d2e3f4a-5b6c-4d7e-8f90-a1b2c3d4e5f6-quarterly-review.pptx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&X-Amz-Signature=…",
  "key": "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/direct-uploads/1d2e3f4a-5b6c-4d7e-8f90-a1b2c3d4e5f6-quarterly-review.pptx",
  "expiresInSeconds": 3600,
  "headers": {
    "Content-Type": "application/pdf"
  }
}

Register a direct upload

Start a multipart upload

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