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

# Restore workspace

> Restore a workspace being deleted, before its purge_at, with everything in it. Needs an organization key or an organization admin.

MCP tool: [`restore_workspace`](/mcp/tools/workspaces#restore_workspace).



## OpenAPI

````yaml /api/openapi.json post /v1/workspaces/{workspace_id}/restore
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/workspaces/{workspace_id}/restore:
    post:
      tags:
        - Workspaces
      summary: Restore workspace
      description: >-
        Restore a workspace being deleted, before its purge_at, with everything
        in it. Needs an organization key or an organization admin.


        MCP tool:
        [`restore_workspace`](/mcp/tools/workspaces#restore_workspace).
      operationId: restore_workspace
      parameters:
        - description: '`ws_…`.'
          in: path
          name: workspace_id
          required: true
          schema:
            description: '`ws_…`.'
            type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                deleting:
                  summary: deleting
                  value:
                    created_at: '2026-12-03T10:15:00Z'
                    id: ws_use_0193f2a1b7c84e6d9a2f5b8c1d4e7f30
                    key_prefix: sk_
                    name: Marketing
                    organization_id: org_01JF3PZ6W8M2Q4T7V9X1B3D5F7
                    purge_at: '2026-12-10T10:15:00Z'
                    rate_limit_per_minute: 600
                    region: us-east
                    status: deleting
                example:
                  summary: example
                  value:
                    created_at: '2026-12-03T10:15:00Z'
                    id: ws_use_0193f2a1b7c84e6d9a2f5b8c1d4e7f30
                    key_prefix: sk_
                    name: Marketing
                    organization_id: org_01JF3PZ6W8M2Q4T7V9X1B3D5F7
                    rate_limit_per_minute: 600
                    region: us-east
                    status: active
              schema:
                properties:
                  created_at:
                    description: RFC 3339.
                    type: string
                  id:
                    description: >-
                      `ws_…`; it starts with its region's code, such as
                      `ws_use_…` for `us-east`.
                    type: string
                  key_prefix:
                    description: >-
                      What its API keys start with: `sk_live_`, `sk_test_` or
                      `sk_`.
                    type: string
                  monthly_spend_cap_cents:
                    description: >-
                      The most its billable work may cost per calendar month, in
                      USD cents; none when absent.
                    format: uint64
                    minimum: 0
                    type:
                      - integer
                      - 'null'
                  name:
                    description: What it's for, such as "Production" or "Acme".
                    type: string
                  organization_id:
                    description: The organization it belongs to, `org_…`.
                    type: string
                  purge_at:
                    description: >-
                      When a deleted workspace is purged, with everything in it
                      (RFC 3339); absent unless it's

                      `deleting`.
                    type:
                      - string
                      - 'null'
                  rate_limit_per_minute:
                    description: Requests per minute its keys may make, together.
                    format: uint32
                    minimum: 0
                    type: integer
                  region:
                    description: Its home region, where its data lives and its renders run.
                    type: string
                  status:
                    $ref: '#/components/schemas/WorkspaceStatus'
                    description: >-
                      `deleting` once it's deleted, until it's purged or
                      restored.
                required:
                  - id
                  - organization_id
                  - name
                  - region
                  - key_prefix
                  - rate_limit_per_minute
                  - status
                  - created_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
                workspace.organization_key_required:
                  summary: workspace.organization_key_required
                  value:
                    error:
                      code: workspace.organization_key_required
                      doc_url: >-
                        https://rendermate.com/docs/errors#workspace.organization_key_required
                      message: >-
                        a workspace's API key acts in its workspace only: use an
                        organization key (sk_org_…), which an organization admin
                        creates in the dashboard
                      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

            - `workspace.organization_key_required`: a workspace's API key acts
            in its workspace only: use an organization key (sk_org_…), which an
            organization admin creates in the dashboard
        '404':
          content:
            application/json:
              examples:
                workspace.not_found:
                  summary: workspace.not_found
                  value:
                    error:
                      code: workspace.not_found
                      doc_url: https://rendermate.com/docs/errors#workspace.not_found
                      message: no such workspace
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: '- `workspace.not_found`: no such 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'
components:
  schemas:
    WorkspaceStatus:
      description: '`active`, or `deleting` from its delete until it''s purged.'
      oneOf:
        - enum:
            - active
          type: string
        - const: deleting
          description: 'Deleted: it''s purged at `purge_at`, and can be restored until then.'
          type: string
    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.