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

> Export a document version as an MP4 to download. It renders in the background: call get_export with its ID until it's done. Exporting a version again reuses what was already rendered.

MCP tool: [`create_export`](/mcp/tools/exports#create_export).



## OpenAPI

````yaml /api/openapi.json post /v1/exports
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/exports:
    post:
      tags:
        - Exports
      summary: Create export
      description: >-
        Export a document version as an MP4 to download. It renders in the
        background: call get_export with its ID until it's done. Exporting a
        version again reuses what was already rendered.


        MCP tool: [`create_export`](/mcp/tools/exports#create_export).
      operationId: create_export
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              properties:
                alias:
                  description: >-
                    An alias, such as `latest`; `latest` when neither this nor
                    `version` is given.
                  type: string
                document_id:
                  type: string
                format:
                  anyOf:
                    - $ref: '#/components/schemas/Format'
                    - type: 'null'
                  description: >-
                    `mp4` or `m4a`. Absent, a version with a picture exports as
                    `mp4` and one that has only

                    sound (every node is `audio` or `tone`) as `m4a`, which is
                    also its only format.
                version:
                  description: A version, by number.
                  format: uint64
                  minimum: 0
                  type: integer
              required:
                - document_id
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              example:
                created_at: '2026-12-03T10:15:00Z'
                document_id: doc_01JF3QZ8X6N2V7K4M9P5R1T3WY
                download_url: >-
                  https://api.rendermate.com/download?key=ws_use_0193f2a1b7c84e6d9a2f5b8c1d4e7f30%2Fexports%2Fexp_01JF3R2D7B5K8M1N4Q6S9V2X5Z&name=Q3%20update.mp4&expires=1796465700&kid=1&signature=b64…
                error: null
                file_name: Q3 update.mp4
                id: exp_01JF3R2D7B5K8M1N4Q6S9V2X5Z
                status: succeeded
                updated_at: '2026-12-03T10:16:42Z'
                usage:
                  minutes_rendered: 0.4
                  rendered: 4
                  reused: 16
                  segments: 20
                version: 12
              schema:
                properties:
                  created_at:
                    description: RFC 3339.
                    type: string
                  document_id:
                    description: The document it exports.
                    type: string
                  download_url:
                    description: >-
                      Once it has succeeded, where to download it (ranges work);
                      it expires in about a day.
                    type:
                      - string
                      - 'null'
                  error:
                    description: Why it failed.
                    type:
                      - string
                      - 'null'
                  file_name:
                    description: The file name it downloads as.
                    type: string
                  id:
                    description: '`exp_…`.'
                    type: string
                  status:
                    description: '`queued`, `running`, `succeeded` or `failed`.'
                    type: string
                  updated_at:
                    description: 'RFC 3339: when its status last changed.'
                    type: string
                  usage:
                    anyOf:
                      - $ref: '#/components/schemas/ExportUsageView'
                      - type: 'null'
                    description: >-
                      Once it has succeeded, its video segments (an `m4a`'s
                      audio segments) and how many of them

                      it rendered; the rest were

                      reused from earlier renders (playback, or an identical
                      export) and cost nothing.
                  version:
                    description: The document version it exports.
                    format: uint64
                    minimum: 0
                    type: integer
                required:
                  - id
                  - document_id
                  - version
                  - status
                  - file_name
                  - download_url
                  - error
                  - usage
                  - created_at
                  - updated_at
                type: object
          description: OK
        '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:
                not_found:
                  summary: not_found
                  value:
                    error:
                      code: not_found
                      doc_url: https://rendermate.com/docs/errors#not_found
                      message: >-
                        no document doc_01JF3QZ8X6N2V7K4M9P5R1T3WY in this
                        workspace
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `not_found`: no document doc_01JF3QZ8X6N2V7K4M9P5R1T3WY 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:
                credits.unavailable:
                  summary: credits.unavailable
                  value:
                    error:
                      code: credits.unavailable
                      doc_url: https://rendermate.com/docs/errors#unavailable
                      message: >-
                        your credit balance can't be checked right now: try
                        again shortly
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
                downloads_unavailable:
                  summary: downloads_unavailable
                  value:
                    error:
                      code: downloads_unavailable
                      doc_url: https://rendermate.com/docs/errors#unavailable
                      message: downloads aren't configured on this deployment
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
                media.unavailable:
                  summary: media.unavailable
                  value:
                    error:
                      code: media.unavailable
                      doc_url: https://rendermate.com/docs/errors#unavailable
                      message: this deployment has no media bucket yet
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
                preview.unavailable:
                  summary: preview.unavailable
                  value:
                    error:
                      code: preview.unavailable
                      doc_url: https://rendermate.com/docs/errors#unavailable
                      message: previews aren't available on this api yet
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
                temporal_unavailable:
                  summary: temporal_unavailable
                  value:
                    error:
                      code: temporal_unavailable
                      doc_url: https://rendermate.com/docs/errors#unavailable
                      message: >-
                        renders and exports are unavailable right now; try again
                        shortly
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `preview.unavailable`: previews aren't available on this api yet

            - `media.unavailable`: this deployment has no media bucket yet

            - `temporal_unavailable`: renders and exports are unavailable right
            now; try again shortly

            - `downloads_unavailable`: downloads aren't configured on this
            deployment

            - `credits.unavailable`: your credit balance can't be checked right
            now: try again shortly
components:
  schemas:
    Format:
      description: What file an export makes.
      enum:
        - mp4
        - m4a
      type: string
    ExportUsageView:
      properties:
        minutes_rendered:
          description: >-
            The length of the segments it rendered, in minutes: what it billed
            on the render meter.
          format: double
          type: number
        rendered:
          description: Segments it rendered, and billed.
          format: uint64
          minimum: 0
          type: integer
        reused:
          description: Segments it found already rendered, at no cost.
          format: uint64
          minimum: 0
          type: integer
        segments:
          description: >-
            Its video segments (an `m4a`'s audio segments), each a few seconds
            long.
          format: uint64
          minimum: 0
          type: integer
      required:
        - segments
        - rendered
        - reused
        - minutes_rendered
      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
  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.