Assets API
Download OpenAPI DocumentUpload, 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.
Assets
Files and directories in your organization drive and in project and task drives. List and search them, create directories, rename, move, add shortcuts and move them to the trash.
- GET/v1/assets-management
- GET/v1/assets-management/folder-files
- POST/v1/assets-management/create-folder
- PUT/v1/assets-management/rename/{id}
- PUT/v1/assets-management/move
- PUT/v1/assets-management/replace/{id}
- POST/v1/assets-management/alias
- POST/v1/assets-management/download-zip
- GET/v1/assets-management/storage
List assets
List files in a directory
Create a directory
Rename an asset
Move assets
Replace a file with an upload
Add a shortcut
Show an existing file or directory in a second place without copying it. The shortcut shares the original's storage key, so it takes no extra space; renaming or deleting the shortcut leaves the original alone. A shortcut to a shortcut points at the original. One place can hold only one shortcut to the same original. The result is plain text.
Permission: asset:create. An API key acts with the role of the member who created it.
Bodyrequiredapplication/json
ID of the file or directory to add a shortcut to.
Where the shortcut goes: ORGANIZATION (the drive root), PROJECT or TASK (the root of that drive) or FOLDER (inside a directory).
ID of the place, matching parentType: your organization ID, a project ID, a task ID or a directory ID.
Project whose drive the shortcut goes in. Send it whenever the place is in a project drive, or the shortcut will not show there.
Task the shortcut belongs to, for a place in a task drive.
Responses
201The body is plain text: `Alias created successfully`, `Alias already exists at this location` (nothing new was created), `Original asset not found` (`originalAssetId` is not an asset of your organization) or `Error creating alias`. The status is 201 in every case.
400Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
401The `x-api-key` header is missing, or the key is invalid, expired or deleted.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
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.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
429Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
500Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
curl '{{API_BASE_URL}}/v1/assets-management/alias' \
--request POST \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"originalAssetId": "acc539c5-32f4-4690-95b5-b245fec51066",
"parentType": "FOLDER",
"parentId": "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a",
"projectId": "acc539c5-32f4-4690-95b5-b245fec51068",
"taskId": "acc539c5-32f4-4690-95b5-b245fec51069"
}'"Alias created successfully"Download as a zip
Get storage usage
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.
- POST/v1/assets-management/multi-upload
- POST/v1/assets-management/presign-direct-upload
- POST/v1/assets-management/register-direct-upload
- POST/v1/assets-management/multipart/initiate
- POST/v1/assets-management/multipart/part-urls
- POST/v1/assets-management/multipart/complete
- POST/v1/assets-management/multipart/abort
- POST/v1/assets-management/import-from-url
Upload files
Get a direct upload URL
Register a direct upload
Start a multipart upload
Get part upload URLs
Complete a multipart upload
Abort a multipart upload
Import a file from a link
Trash
Deleted assets wait here for 30 days, then are deleted for good. Restore them, delete them now, or empty the whole trash.