> ## 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.

# 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.

MCP tool: [`upload_asset`](/mcp/tools/assets#upload_asset).



## OpenAPI

````yaml /api/openapi.json put /v1/assets/{name}
openapi: 3.1.0
info:
  title: Rendermate API
  version: v1
servers:
  - url: https://api.rendermate.com
security:
  - api_key: []
tags:
  - name: Account
  - name: Workspaces
  - name: Projects
  - name: Documents
  - name: Links
  - name: Exports
  - name: Assets
  - name: Generations
  - name: Persons
  - name: Help
paths:
  /v1/assets/{name}:
    put:
      tags:
        - Assets
      summary: Upload asset
      description: >-
        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.


        MCP tool: [`upload_asset`](/mcp/tools/assets#upload_asset).
      operationId: upload_asset
      parameters:
        - description: >-
            The path to record it under, such as `launch/intro.mp4`. Folders are
            made by naming them.
          in: path
          name: name
          required: true
          schema:
            description: >-
              The path to record it under, such as `launch/intro.mp4`. Folders
              are made by naming them.
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                content_type:
                  default: null
                  description: Guessed from the name's extension when absent.
                  type:
                    - string
                    - 'null'
                multipart:
                  anyOf:
                    - $ref: '#/components/schemas/FinishMultipart'
                    - type: 'null'
                  description: >-
                    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.
                overwrite:
                  default: true
                  description: >-
                    Replace an asset already at this name (the default); false
                    refuses with 409 instead.
                  type: boolean
                project_id:
                  default: null
                  description: >-
                    The project it belongs to; the workspace's default project
                    when absent.
                  type:
                    - string
                    - 'null'
                sha256:
                  default: null
                  description: >-
                    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.
                  type:
                    - string
                    - 'null'
                size:
                  default: null
                  description: The file's size in bytes.
                  format: uint64
                  minimum: 0
                  type:
                    - integer
                    - 'null'
              required: []
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              example:
                asset:
                  content_type: video/mp4
                  created_at: '2026-12-03T10:15:00Z'
                  created_by: api_key_01JF3Q1C5E7G9J2M4N6Q8S0T2W
                  name: launch/intro.mp4
                  project_id: prj_01JF3Q4A8C2E6G0J3K5N7Q9S1V
                  sha256: >-
                    9f2c4e1a7b3d5f8e0c6a2b4d8f1e3c5a7b9d0f2e4c6a8b1d3f5e7c9a0b2d4f6e
                  size: 48211877
                  updated_at: '2026-12-03T10:15:00Z'
                status: recorded
              schema:
                oneOf:
                  - description: >-
                      The asset is recorded: the workspace already had its
                      content.
                    properties:
                      asset:
                        $ref: '#/components/schemas/AssetView'
                      status:
                        const: recorded
                        type: string
                    required:
                      - status
                      - asset
                    type: object
                  - description: >-
                      Send the file with `upload`, then make the same request
                      again to record the asset.
                    properties:
                      status:
                        const: upload_required
                        type: string
                      upload:
                        $ref: '#/components/schemas/Upload'
                    required:
                      - status
                      - upload
                    type: object
                  - description: >-
                      A file over 100 MiB, or one whose size isn't known yet:
                      PUT each part to its URL (parts of

                      `part_size` bytes, the last one the rest), then make the
                      request again with `sha256`,

                      `size` and `multipart` (the upload ID and each part's
                      ETag) to finish the upload and record

                      the asset. While the size isn't known, the same request
                      without `sha256` and `size`, with

                      `multipart`, gets URLs for more parts.
                    properties:
                      multipart:
                        $ref: '#/components/schemas/Multipart'
                      status:
                        const: multipart_upload_required
                        type: string
                    required:
                      - status
                      - multipart
                    type: object
          description: OK
        '202':
          content:
            application/json:
              examples:
                multipart_upload_required:
                  summary: multipart upload required
                  value:
                    multipart:
                      first_part: 1
                      part_size: 67108864
                      parts:
                        - expires_at: '2026-12-03T11:15:00Z'
                          headers:
                            content-type: video/mp4
                            x-amz-checksum-sha256: nyxOGns9X44MKitN8eHFWnudDy4MaLHn5+nJoLLU9m4=
                          method: PUT
                          url: >-
                            https://media.rendermate.com/ws_use_0193f2a1b7c84e6d9a2f5b8c1d4e7f30/blobs/9f2c4e1a7b3d5f8e0c6a2b4d8f1e3c5a7b9d0f2e4c6a8b1d3f5e7c9a0b2d4f6e?partNumber=1&uploadId=2~kT9…&?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20261203T101500Z&X-Amz-Expires=86400&X-Amz-Signature=5d1f…
                        - expires_at: '2026-12-03T11:15:00Z'
                          headers:
                            content-type: video/mp4
                            x-amz-checksum-sha256: nyxOGns9X44MKitN8eHFWnudDy4MaLHn5+nJoLLU9m4=
                          method: PUT
                          url: >-
                            https://media.rendermate.com/ws_use_0193f2a1b7c84e6d9a2f5b8c1d4e7f30/blobs/9f2c4e1a7b3d5f8e0c6a2b4d8f1e3c5a7b9d0f2e4c6a8b1d3f5e7c9a0b2d4f6e?partNumber=2&uploadId=2~kT9…&?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20261203T101500Z&X-Amz-Expires=86400&X-Amz-Signature=5d1f…
                      upload_id: 2~kT9…
                    status: multipart_upload_required
                upload_required:
                  summary: upload required
                  value:
                    status: upload_required
                    upload:
                      expires_at: '2026-12-03T11:15:00Z'
                      headers:
                        content-type: video/mp4
                        x-amz-checksum-sha256: nyxOGns9X44MKitN8eHFWnudDy4MaLHn5+nJoLLU9m4=
                      method: PUT
                      url: >-
                        https://media.rendermate.com/ws_use_0193f2a1b7c84e6d9a2f5b8c1d4e7f30/blobs/9f2c4e1a7b3d5f8e0c6a2b4d8f1e3c5a7b9d0f2e4c6a8b1d3f5e7c9a0b2d4f6e??X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20261203T101500Z&X-Amz-Expires=86400&X-Amz-Signature=5d1f…
              schema:
                oneOf:
                  - description: >-
                      The asset is recorded: the workspace already had its
                      content.
                    properties:
                      asset:
                        $ref: '#/components/schemas/AssetView'
                      status:
                        const: recorded
                        type: string
                    required:
                      - status
                      - asset
                    type: object
                  - description: >-
                      Send the file with `upload`, then make the same request
                      again to record the asset.
                    properties:
                      status:
                        const: upload_required
                        type: string
                      upload:
                        $ref: '#/components/schemas/Upload'
                    required:
                      - status
                      - upload
                    type: object
                  - description: >-
                      A file over 100 MiB, or one whose size isn't known yet:
                      PUT each part to its URL (parts of

                      `part_size` bytes, the last one the rest), then make the
                      request again with `sha256`,

                      `size` and `multipart` (the upload ID and each part's
                      ETag) to finish the upload and record

                      the asset. While the size isn't known, the same request
                      without `sha256` and `size`, with

                      `multipart`, gets URLs for more parts.
                    properties:
                      multipart:
                        $ref: '#/components/schemas/Multipart'
                      status:
                        const: multipart_upload_required
                        type: string
                    required:
                      - status
                      - multipart
                    type: object
          description: Accepted
        '400':
          content:
            application/json:
              examples:
                invalid_request:
                  summary: invalid_request
                  value:
                    error:
                      code: invalid_request
                      doc_url: https://rendermate.com/docs/errors#invalid_request
                      message: >-
                        sha256 is the content's SHA-256 as 64 lowercase hex
                        digits
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `invalid_request`: sha256 is the content's SHA-256 as 64 lowercase
            hex digits
        '401':
          content:
            application/json:
              examples:
                unauthorized:
                  summary: unauthorized
                  value:
                    error:
                      code: unauthorized
                      doc_url: https://rendermate.com/docs/errors#unauthorized
                      message: 'provide a valid API key: Authorization: Bearer sk_…'
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `unauthorized`: provide a valid API key: Authorization: Bearer
            sk_…
        '403':
          content:
            application/json:
              examples:
                key_without_workspace:
                  summary: key_without_workspace
                  value:
                    error:
                      code: key_without_workspace
                      doc_url: https://rendermate.com/docs/errors#key_without_workspace
                      message: >-
                        this API key has no workspace: create a key in the
                        dashboard, under api keys in the workspace it should act
                        in
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `key_without_workspace`: this API key has no workspace: create a
            key in the dashboard, under api keys in the workspace it should act
            in
        '404':
          content:
            application/json:
              examples:
                project.not_found:
                  summary: project.not_found
                  value:
                    error:
                      code: project.not_found
                      doc_url: https://rendermate.com/docs/errors#project.not_found
                      message: no such project in this workspace
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
                upload.not_found:
                  summary: upload.not_found
                  value:
                    error:
                      code: upload.not_found
                      doc_url: https://rendermate.com/docs/errors#upload.not_found
                      message: >-
                        no such upload in this workspace, or it expired: start
                        another
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `project.not_found`: no such project in this workspace

            - `upload.not_found`: no such upload in this workspace, or it
            expired: start another
        '409':
          content:
            application/json:
              examples:
                asset.content_being_deleted:
                  summary: asset.content_being_deleted
                  value:
                    error:
                      code: asset.content_being_deleted
                      doc_url: >-
                        https://rendermate.com/docs/errors#asset.content_being_deleted
                      message: >-
                        the workspace is deleting a file with this content; try
                        again in a few seconds
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
                asset.content_changing:
                  summary: asset.content_changing
                  value:
                    error:
                      code: asset.content_changing
                      doc_url: >-
                        https://rendermate.com/docs/errors#asset.content_changing
                      message: >-
                        this content kept changing while the asset was recorded;
                        try again
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
                asset.name_taken:
                  summary: asset.name_taken
                  value:
                    error:
                      code: asset.name_taken
                      doc_url: https://rendermate.com/docs/errors#asset.name_taken
                      message: an asset named "launch/intro.mp4" already exists
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `asset.content_being_deleted`: the workspace is deleting a file
            with this content; try again in a few seconds

            - `asset.name_taken`: an asset named "launch/intro.mp4" already
            exists

            - `asset.content_changing`: this content kept changing while the
            asset was recorded; try again
        '500':
          content:
            application/json:
              examples:
                internal:
                  summary: internal
                  value:
                    error:
                      code: internal
                      doc_url: https://rendermate.com/docs/errors#internal
                      message: internal error
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: '- `internal`: internal error'
        '503':
          content:
            application/json:
              examples:
                uploads_unavailable:
                  summary: uploads_unavailable
                  value:
                    error:
                      code: uploads_unavailable
                      doc_url: https://rendermate.com/docs/errors#unavailable
                      message: >-
                        uploading new files isn't available yet; assets whose
                        content the workspace already has can still be recorded
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `uploads_unavailable`: uploading new files isn't available yet;
            assets whose content the workspace already has can still be recorded
components:
  schemas:
    FinishMultipart:
      description: >-
        A multipart upload: the parts uploaded so far, or every part to finish
        it.
      properties:
        count:
          default: null
          description: >-
            For an upload of unknown size: how many part URLs, 1 to 100; 8 when
            absent.
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
        from:
          default: null
          description: >-
            For an upload of unknown size: the first part to get a URL for; the
            one after `parts`

            when absent.
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
        parts:
          description: >-
            The parts uploaded, from 1, each with the ETag its PUT answered
            with. Finishing lists them

            all.
          items:
            $ref: '#/components/schemas/UploadedPart'
          type: array
        upload_id:
          type: string
      required:
        - upload_id
      type: object
    AssetView:
      description: An asset as the api shows it.
      properties:
        content_type:
          description: Its media type, such as `video/mp4`.
          type: string
        created_at:
          description: RFC 3339.
          type: string
        created_by:
          description: The API key or member that recorded it.
          type: string
        download_url:
          description: A short-lived URL that downloads it, on a single asset's read.
          type:
            - string
            - 'null'
        name:
          description: Its path in the workspace, such as `launch/intro.mp4`.
          type: string
        project_id:
          description: The project it's in.
          type: string
        sha256:
          description: Its content's SHA-256, lowercase hex.
          type: string
        size:
          description: Bytes.
          format: uint64
          minimum: 0
          type: integer
        source:
          description: What it was made from; absent for an upload.
        updated_at:
          description: RFC 3339.
          type: string
      required:
        - name
        - sha256
        - size
        - content_type
        - project_id
        - created_by
        - created_at
        - updated_at
      type: object
    Upload:
      description: >-
        A presigned request that uploads one blob: send the file as its body
        with exactly these

        headers, which include the content's `x-amz-checksum-sha256`, so the
        bucket refuses any other

        bytes.
      properties:
        expires_at:
          description: RFC 3339; ask again after it.
          type: string
        headers:
          additionalProperties:
            type: string
          description: The headers to send, exactly as given.
          type: object
        method:
          description: The HTTP method, `PUT`.
          type: string
        url:
          description: Where to send the file, signed.
          type: string
      required:
        - method
        - url
        - headers
        - expires_at
      type: object
    Multipart:
      description: >-
        Uploads a file in parts: PUT each part's bytes (`part_size` bytes each,
        the last one the

        rest) to its URL, keep the `ETag` each answers with, then repeat the
        asset's upload request

        with `upload_id` and the parts' ETags to finish it.
      properties:
        credentials:
          anyOf:
            - $ref: '#/components/schemas/PartCredentials'
            - type: 'null'
          description: >-
            For an upload of unknown size to R2: credentials to sign every
            part's upload with

            instead of `parts`, which is then empty.
        first_part:
          description: >-
            The number of `parts`' first URL: 1, unless more URLs were asked for
            an upload of unknown

            size.
          format: uint32
          minimum: 0
          type: integer
        part_size:
          description: Bytes per part; the last part is the rest.
          format: uint64
          minimum: 0
          type: integer
        parts:
          description: In order, from part `first_part`.
          items:
            $ref: '#/components/schemas/Upload'
          type: array
        upload_id:
          description: The multipart upload's ID, to send back with the parts' ETags.
          type: string
      required:
        - upload_id
        - part_size
        - first_part
        - parts
      type: object
    Error:
      properties:
        error:
          properties:
            code:
              description: Stable, such as `asset.name_taken` or `not_available`.
              type: string
            doc_url:
              description: The code's entry on the Errors page.
              type: string
            message:
              description: What went wrong and what to do next.
              type: string
            request_id:
              description: >-
                The request's ID, also in its `x-request-id` header. Quote it
                when you contact support.
              type: string
          required:
            - code
            - message
            - doc_url
            - request_id
          type: object
      required:
        - error
      type: object
    UploadedPart:
      description: A finished part of a multipart upload.
      properties:
        etag:
          description: The `ETag` header the part's PUT answered with.
          type: string
        part_number:
          description: From 1.
          format: int32
          type: integer
      required:
        - part_number
        - etag
      type: object
    PartCredentials:
      description: >-
        Temporary S3 credentials that may only upload parts of one multipart
        upload, for a client to

        sign its own part uploads with, instead of asking for a URL per part.
      properties:
        access_key_id:
          description: The access key ID to sign with.
          type: string
        bucket:
          description: The bucket to upload to.
          type: string
        endpoint:
          description: >-
            The S3 endpoint, for path-style requests: `PUT
            {endpoint}/{bucket}/{key}?partNumber=…&uploadId=…`.
          type: string
        expires_at:
          description: RFC 3339; ask for new ones before then.
          type: string
        key:
          description: The object key of the upload.
          type: string
        region:
          description: The region to sign for.
          type: string
        secret_access_key:
          description: The secret access key to sign with.
          type: string
        session_token:
          description: Send it as `x-amz-security-token`.
          type: string
        upload_id:
          description: The bucket's ID for the multipart upload.
          type: string
      required:
        - access_key_id
        - secret_access_key
        - session_token
        - expires_at
        - endpoint
        - region
        - bucket
        - key
        - upload_id
      type: object
  securitySchemes:
    api_key:
      description: >-
        An API key from the dashboard, such as `sk_live_…`. It acts in its
        workspace.
      scheme: bearer
      type: http

````

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