> ## Documentation Index
> Fetch the complete documentation index at: https://rendermate.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Assets

> The MCP tools for assets.

## `create_upload_token`

Make an upload token: a short-lived credential to give a browser, such as a recording page, so it uploads assets with upload\_asset's REST route without ever holding your API key. It only records assets whose names start with its prefix, up to max\_size, in one project, and never replaces an existing asset. It lasts 15 minutes unless expires\_in says otherwise.

REST: [`POST /v1/upload-tokens`](https://rendermate.com/docs/api-reference/assets/create-upload-token)

**expires\_in** `integer`

Seconds until it expires, from 60 to 86400; 900 (15 minutes) when absent.

**max\_size** `integer`

The largest file it records, in bytes; any size assets allow when absent.

**prefix** `string` *required*

The token only records assets whose names start with this, such as `recordings/u_42/`.

**project\_id** `string`

The project its assets go in; the workspace's default project when absent.

## `delete_asset`

Delete an asset by name. Documents that use it can't render it anymore.

REST: [`DELETE /v1/assets/{name}`](https://rendermate.com/docs/api-reference/assets/delete-asset) · destructive, idempotent

**name** `string` *required*

## `get_asset`

Get an asset by name: its size, type, hash, what it was made from, and a download URL that expires.

REST: [`GET /v1/assets/{name}`](https://rendermate.com/docs/api-reference/assets/get-asset) · read-only

**name** `string` *required*

## `get_import`

Get an import from import\_asset: running, succeeded with the asset it made, or failed with why.

REST: [`GET /v1/imports/{import_id}`](https://rendermate.com/docs/api-reference/assets/get-import) · read-only

**import\_id** `string` *required*

The import, from import\_asset.

## `import_asset`

Make an asset from a file on the web: Rendermate downloads it from the URL, up to 5 GB, and records it under the name. Use it instead of upload\_asset when the file has a URL. It answers with a running import; call get\_import until its status is succeeded (with the asset) or failed (with why). A taken name is refused unless overwrite is set.

REST: [`POST /v1/imports`](https://rendermate.com/docs/api-reference/assets/import-asset) · destructive

**content\_type** `string`

Its content type; the server's, else guessed from the name's extension, when absent.

**name** `string` *required*

The asset's path in the workspace, such as `launch/intro.mp4`.

**overwrite** `boolean`

Replace an asset already at this name. Without it, a name that's taken is refused with `asset.name_taken`, and so is one taken while the file downloads.

**project\_id** `string`

The project it belongs to; the workspace's default project when absent.

**url** `string` *required*

An http(s) URL on the public internet that Rendermate downloads the file from, up to 5 GB.

## `list_assets`

List the workspace's assets like a directory: the files and folders under a prefix.

REST: [`GET /v1/assets`](https://rendermate.com/docs/api-reference/assets/list-assets) · read-only

**after** `string`

The previous page's `next`, an opaque cursor.

**delimiter** `string`

Folds names under the prefix into subfolders at this separator: `/` (the default) lists one folder's files and subfolders; empty lists every name under the prefix.

**limit** `integer`

Entries (files and folders) per page, up to 100 (the default).

**prefix** `string`

Only names starting with this, such as a folder (`launch/`). The whole workspace when absent.

**project\_id** `string`

Only the assets of this project.

## `move_asset`

Rename an asset, or move a folder (both names ending in `/`) with everything in it. Documents that use the old names don't follow.

REST: [`POST /v1/assets/move`](https://rendermate.com/docs/api-reference/assets/move-asset) · destructive

**from** `string` *required*

An asset's name, or a folder ending in `/` to move everything in it.

**overwrite** `boolean`

Replace assets already at the new names; refused with 409 when false (the default).

**to** `string` *required*

The new name, or for a folder the new folder, ending in `/`.

## `sync_assets`

Make a folder of assets match a local folder in one call: give every file's path, SHA-256 and size. Files the workspace has are recorded at once; you get an upload to make for each of the others, then call again to record them. A file over 100 MiB gets a multipart upload: PUT each part, keep each part's ETag, and in the next call give that file `multipart` (its upload\_id and every part's part\_number and etag).

REST: [`POST /v1/assets/sync`](https://rendermate.com/docs/api-reference/assets/sync-assets) · destructive

**delete\_missing** `boolean`

Also delete the folder's assets that aren't in `files`.

**files** `array` *required*

Every file of the local folder, up to 1000.

**prefix** `string`

The workspace folder, ending in `/`, or empty for the whole workspace.

**project\_id** `string`

The project new assets go in; the workspace's default project when absent.

## `upload_asset`

Upload a file you have locally as an asset. Give its name, SHA-256 and size; if the workspace already has that content, it's recorded without uploading. Otherwise you get an upload to make (method, URL, headers): make it, then call upload\_asset again with the same arguments to record the asset. A file over 100 MiB gets a multipart upload instead: PUT each part to its URL, keep the ETag header each PUT returns, then call upload\_asset again with the same arguments plus `multipart` (its upload\_id and every part's part\_number and etag). For a file still being written, such as a recording, leave out the SHA-256 and size: you get a multipart upload to PUT parts to as the file grows, every part but the last `part_size` bytes; call again with `multipart` (its upload\_id and `from`, the next part's number) for more part URLs, and finish with the SHA-256, the size and every part's ETag. For a file on the web, use import\_asset.

REST: [`PUT /v1/assets/{name}`](https://rendermate.com/docs/api-reference/assets/upload-asset)

**content\_type** `string`

Guessed from the name's extension when absent.

**multipart** `object`

The multipart upload an earlier request answered with. With `sha256` and `size`, it finishes it once every part is up; without them, it asks for more part URLs of an upload of unknown size.

**name** `string` *required*

The path to record it under, such as `launch/intro.mp4`. Folders are made by naming them.

**overwrite** `boolean`

Replace an asset already at this name (the default); false refuses with 409 instead.

**project\_id** `string`

The project it belongs to; the workspace's default project when absent.

**sha256** `string`

The file's SHA-256, lowercase hex. Leave it and `size` out while the file is still being written, such as a recording, to upload it in parts as it grows.

**size** `integer`

The file's size in bytes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.