API reference

Files

Assets, uploads, collections, versions and variants.

Scopes for this area: files:read, files:write and files:admin.

62 operations

asset

MethodRouteWhat it doesLevelCommand
GET/assetsList assets with filters.readrivier files asset list
GET/assets/summaryCounts by state and kind, with the brand's limits and use.readrivier files asset summary
GET/assets/expiringAssets whose rights lapse soon.readrivier files asset expiring
GET/assets/existsIs a checksum already held?readrivier files asset exists
GET/assets/used-byThe assets a post, page or agent uses.readrivier files asset used by
POST/assetsUpload a small file as a base64 body.writerivier files asset create
POST/assets/streamUpload a file as the request body, streamed.writerivier files asset stream
GET/assets/{id}One asset with its current version.readrivier files asset get
PATCH/assets/{id}Change an asset's name, description, tags, licence or disclosure.writerivier files asset update
DELETE/assets/{id}Move an asset to the bin, or purge it with ?purge=1. An asset still in use is refused (409 with where it is used) unless ?force=1.writerivier files asset delete
POST/assets/{id}/restoreTake an asset out of the bin.writerivier files asset restore
GET/assets/{id}/contentDownload the bytes, with ranges.readrivier files asset content
POST/assets/{id}/submitSend an asset for review.writerivier files asset submit
POST/assets/{id}/approveApprove an asset (a person's decision).writerivier files asset approve
POST/assets/{id}/rejectSend an asset back with a reason.writerivier files asset reject
POST/assets/{id}/publishGive an approved asset its public address.writerivier files asset publish
POST/assets/{id}/unpublishWithdraw the public address.writerivier files asset unpublish
POST/assets/{id}/archiveArchive an asset.writerivier files asset archive
POST/assets/{id}/reopenReopen a rejected or archived asset as a draft.writerivier files asset reopen
POST/assets/{id}/processWork out a video or audio file's length, a still frame and a waveform and keep them beside it. Needs ffmpeg on the machine.writerivier files asset process
POST/assets/{id}/jobsAsk the media worker for a job on a published file: image sizes and formats with a placeholder and palette, audio peaks and stream, HLS with a sprite, or a transcript. The same version, kind and parameters share one result.writerivier files asset job request
GET/assets/{id}/jobsThe media jobs of a file and where each stands (queued, claimed, processing, ready, failed).readrivier files asset job list
PUT/assets/{id}/media-factsSet chapters, captions, audio tracks or the transcript of a video or audio file. A model's drafts are held as unreviewed until a person reviews them.writerivier files asset media facts
POST/assets/{id}/transcribeHave a speech provider write the transcript of a video or audio file. It is saved marked as written by a model until a person has read it.writerivier files asset transcribe
POST/assets/{id}/streamAsk for adaptive streaming (HLS) of a video or audio file. The build host cuts it and reports back; until then, or where no runner is connected, the original file plays.writerivier files asset adaptive
POST/assets/{id}/stream/readyThe build host's runner reports that a streaming job is done: the job and the https address of the manifest.writerivier files asset adaptive ready
PUT/assets/{id}/transcriptSave the transcript of a video or audio file (text, optional timed segments); say when a model wrote it.writerivier files asset transcript
POST/assets/{id}/quick-publishGive an upload a licence of own, approve it and publish it, as far as the caller's role and the brand's rules allow; says where it stopped and why.writerivier files asset quick publish
GET/assets/{id}/usableWhether an asset may be used now, and why not.readrivier files asset usable

settings

MethodRouteWhat it doesLevelCommand
GET/assets/settingsLimits and rules for the brand's files.readrivier files settings get
PUT/assets/settingsChange limits and rules.writerivier files settings update

upload

MethodRouteWhat it doesLevelCommand
POST/assets/uploadsStart a resumable upload.writerivier files upload begin
GET/assets/uploads/{id}Progress of a resumable upload.readrivier files upload get
PUT/assets/uploads/{id}/parts/{n}Send one part of a resumable upload.writerivier files upload part
POST/assets/uploads/{id}/completeFinish a resumable upload.writerivier files upload complete
DELETE/assets/uploads/{id}Abandon a resumable upload.writerivier files upload abort

collection

MethodRouteWhat it doesLevelCommand
GET/assets/collectionsList collections.readrivier files collection list
POST/assets/collectionsCreate a collection.writerivier files collection create
GET/assets/collections/{id}One collection with its assets.readrivier files collection get
PATCH/assets/collections/{id}Rename or describe a collection.writerivier files collection update
DELETE/assets/collections/{id}Delete a collection (its assets stay).writerivier files collection delete
PUT/assets/collections/{id}/items/{assetId}Put an asset in a collection.writerivier files collection add item
DELETE/assets/collections/{id}/items/{assetId}Take an asset out of a collection.writerivier files collection remove item

version

MethodRouteWhat it doesLevelCommand
GET/assets/{id}/versionsThe versions of an asset.readrivier files version list
POST/assets/{id}/versionsAdd a version from a base64 body.writerivier files version create

variant

MethodRouteWhat it doesLevelCommand
POST/assets/{id}/variants/{label}Add a size, format or theme variant; the body is the file.writerivier files variant add
DELETE/assets/{id}/variants/{label}Remove a variant.writerivier files variant remove
MethodRouteWhat it doesLevelCommand
GET/galleries/{ownerKind}/{ownerId}The ordered pictures and files of a product, room type, service, property, unit, amenity, rate plan or content entry, with caption, alt text, focal point and whether each can show on the site.readrivier files gallery get
PUT/galleries/{ownerKind}/{ownerId}Replace the gallery of an item with this ordered list of library files.writerivier files gallery set

usage

MethodRouteWhat it doesLevelCommand
GET/assets/{id}/usageWhere an asset is used.readrivier files usage list
POST/assets/{id}/usageRecord that something uses an asset.writerivier files usage record
DELETE/assets/{id}/usage/{usageId}Remove a usage record.writerivier files usage remove

media

MethodRouteWhat it doesLevelCommand
POST/galleries/suggestA suggested alt text, caption and tags for a stored picture, marked as made by AI. Nothing is saved.writerivier files media suggest

library

MethodRouteWhat it doesLevelCommand
GET/workspace/filesThe files the business keeps.readrivier files library list
GET/workspace/files/downloadDownload a file.readrivier files library download

creative

MethodRouteWhat it doesLevelCommand
GET/creative/statusWhether picture and video generation are connected for this project, and whether the plan allowance has room for one more of each.readrivier files creative status
GET/creative/generationsPictures and clips asked for, newest first, with their state: running, ready, refused or failed.readrivier files creative list
GET/creative/generations/{id}One generation. A running clip is checked with the provider before the answer, and a finished one is stored in the asset library as a draft for review.readrivier files creative get
POST/creative/imagesGenerate a picture from a description. The brand kit is applied, the plan allowance is checked first, and the result is saved in the asset library as an AI-generated draft waiting for review. Answers 409 not_configured when no picture model is connected, and 422 safety_refusal when the provider declines the description.writerivier files creative image
POST/creative/videosStart a short clip from a description. A clip takes minutes: the answer is a running generation; read it until it is ready, and the clip is then in the asset library as an AI-generated draft waiting for review.writerivier files creative video