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

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

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



## OpenAPI

````yaml /api/openapi.json post /v1/upload-tokens
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/upload-tokens:
    post:
      tags:
        - Assets
      summary: Create upload token
      description: >-
        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.


        MCP tool:
        [`create_upload_token`](/mcp/tools/assets#create_upload_token).
      operationId: create_upload_token
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              properties:
                expires_in:
                  default: null
                  description: >-
                    Seconds until it expires, from 60 to 86400; 900 (15 minutes)
                    when absent.
                  format: uint64
                  minimum: 0
                  type:
                    - integer
                    - 'null'
                max_size:
                  default: null
                  description: >-
                    The largest file it records, in bytes; any size assets allow
                    when absent.
                  format: uint64
                  minimum: 0
                  type:
                    - integer
                    - 'null'
                prefix:
                  description: >-
                    The token only records assets whose names start with this,
                    such as `recordings/u_42/`.
                  type: string
                project_id:
                  default: null
                  description: >-
                    The project its assets go in; the workspace's default
                    project when absent.
                  type:
                    - string
                    - 'null'
              required:
                - prefix
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              example:
                expires_at: '2026-12-03T11:15:00Z'
                max_size: 2147483648
                prefix: uploads/
                project_id: prj_01JF3Q4A8C2E6G0J3K5N7Q9S1V
                token: ut_eyJhbGciOiJIUzI1NiJ9.eyJwcmVmaXgiOiJ1cGxvYWRzLyJ9.c2ln…
              schema:
                properties:
                  expires_at:
                    description: RFC 3339.
                    type: string
                  max_size:
                    description: The largest file it uploads, in bytes.
                    format: uint64
                    minimum: 0
                    type: integer
                  prefix:
                    description: Every asset name it uploads starts with this.
                    type: string
                  project_id:
                    description: The project its assets go in.
                    type: string
                  token:
                    description: >-
                      Send it as `Authorization: Bearer <token>` to `PUT
                      /v1/assets/{name}`.
                    type: string
                required:
                  - token
                  - prefix
                  - max_size
                  - project_id
                  - expires_at
                type: object
          description: Created
        '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: >-
                        prefix names the folder or name start the token may
                        upload to, such as recordings/u_42/
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `invalid_request`: prefix names the folder or name start the token
            may upload to, such as recordings/u_42/
        '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
              schema:
                $ref: '#/components/schemas/Error'
          description: '- `project.not_found`: no such project in this workspace'
        '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:
                upload_tokens.unavailable:
                  summary: upload_tokens.unavailable
                  value:
                    error:
                      code: upload_tokens.unavailable
                      doc_url: https://rendermate.com/docs/errors#unavailable
                      message: upload tokens aren't available on this api
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `upload_tokens.unavailable`: upload tokens aren't available on
            this api
components:
  schemas:
    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
  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.