{
  "openapi": "3.1.1",
  "info": {
    "title": "Assets API",
    "description": "Upload, organize and fetch the files every job works on.",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "{{API_BASE_URL}}",
      "description": "Your API environment"
    }
  ],
  "tags": [
    {
      "name": "Assets"
    },
    {
      "name": "Uploads"
    },
    {
      "name": "Trash"
    }
  ],
  "paths": {
    "/v1/assets-management": {
      "get": {
        "operationId": "list-assets",
        "parameters": [
          {
            "name": "parentId",
            "required": false,
            "in": "query",
            "description": "With `parentType=FOLDER`: the ID of the directory to list. Ignored for the other parent types.",
            "schema": {
              "type": "string",
              "examples": [
                "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a"
              ]
            }
          },
          {
            "name": "parentType",
            "required": false,
            "in": "query",
            "description": "Where to list: `ORGANIZATION` (the drive root, the default), `PROJECT` (the root of the `projectId` drive), `TASK` (the files of `taskId`) or `FOLDER` (inside the `parentId` directory).",
            "schema": {
              "enum": [
                "ORGANIZATION",
                "PROJECT",
                "TASK",
                "FOLDER"
              ],
              "type": "string"
            }
          },
          {
            "name": "projectId",
            "required": false,
            "in": "query",
            "description": "List inside this project's folder (`Projects/<project name>/`). Without `parentId` you get the project folder itself; with `parentType=FOLDER` and `parentId`, the directory must be inside the project, otherwise 404. A `global` search covers the whole project and nothing outside it. 404 when the project doesn't exist or is hidden from you.",
            "schema": {
              "type": "string",
              "examples": [
                "1b2c3d4e-5f60-4718-9a2b-3c4d5e6f7a8b"
              ]
            }
          },
          {
            "name": "taskId",
            "required": false,
            "in": "query",
            "description": "With `parentType=TASK`: the task whose files to list.",
            "schema": {
              "type": "string",
              "examples": [
                "6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f"
              ]
            }
          },
          {
            "name": "keyword",
            "required": false,
            "in": "query",
            "description": "Keep only names that contain these characters in this order, ignoring case (`lnch` finds `product-launch.mp4`).",
            "schema": {
              "type": "string",
              "examples": [
                "launch"
              ]
            }
          },
          {
            "name": "dealId",
            "required": false,
            "in": "query",
            "description": "List inside this deal's folder (`Deals/<deal name>/`), the same way as `projectId`: without `parentId` you get the deal folder itself; a `parentId` must be inside it; a `global` search covers the deal and nothing outside it. 404 when the deal doesn't exist or isn't yours to see.",
            "schema": {
              "type": "string",
              "examples": [
                "1fe69c1f-e880-4762-a961-f3c365fb4134"
              ]
            }
          },
          {
            "name": "includeFavorite",
            "required": false,
            "in": "query",
            "description": "Send `true` to add `favorites` to each item: your own favorite mark on it, if you made one.",
            "schema": {
              "type": "boolean",
              "examples": [
                true
              ]
            }
          },
          {
            "name": "searchScope",
            "required": false,
            "in": "query",
            "description": "Where `keyword` searches: `current` (the place being listed, the default) or `global` (the whole drive, ignoring `parentType` and `parentId`).",
            "schema": {
              "enum": [
                "current",
                "global"
              ],
              "type": "string"
            }
          },
          {
            "name": "createdBy",
            "required": false,
            "in": "query",
            "description": "Keep only assets you created (`me`) or that other members created (`others`). An API key acts as the member who created it. A role restricted to its own work always gets `me`.",
            "schema": {
              "enum": [
                "me",
                "others"
              ],
              "type": "string"
            }
          },
          {
            "name": "modifiedWithin",
            "required": false,
            "in": "query",
            "description": "Keep only assets changed since the start of today (server time), or in the last 7, 30 or 90 days.",
            "schema": {
              "enum": [
                "today",
                "7d",
                "30d",
                "90d"
              ],
              "type": "string"
            }
          },
          {
            "name": "fileCategory",
            "required": false,
            "in": "query",
            "description": "Keep only one kind of asset: `folder` (directories), `image`, `video`, `audio`, `document` (PDF, Office and text files), `archive` (zip, rar, 7z, gzip, tar) or `other` (files that are none of these). Overrides `types`.",
            "schema": {
              "enum": [
                "folder",
                "image",
                "video",
                "audio",
                "document",
                "archive",
                "other"
              ],
              "type": "string"
            }
          },
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page number, from 1. Applies only together with `limit`.",
            "schema": {
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Assets per page. Omit it for every match.",
            "schema": {
              "type": "number",
              "examples": [
                50
              ]
            }
          },
          {
            "name": "sortBy",
            "required": false,
            "in": "query",
            "description": "Sort by `name`, `createdAt` or `type`. Without it, files come before directories, each newest-changed first.",
            "schema": {
              "enum": [
                "name",
                "createdAt",
                "type"
              ],
              "type": "string"
            }
          },
          {
            "name": "sortOrder",
            "required": false,
            "in": "query",
            "description": "Sort direction for `sortBy`. Defaults to `ASC`.",
            "schema": {
              "enum": [
                "ASC",
                "DESC"
              ],
              "type": "string"
            }
          },
          {
            "name": "createdByIds",
            "required": false,
            "in": "query",
            "description": "With `createdBy=others`: comma-separated member IDs to narrow it to. Values that are not UUIDs are dropped.",
            "schema": {
              "type": "string",
              "examples": [
                "7a1c2e3f-4b5d-4c6e-8f90-1a2b3c4d5e6f,9c8b7a6f-5e4d-4c3b-a291-0f1e2d3c4b5a"
              ]
            }
          },
          {
            "name": "types",
            "required": false,
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FILE",
                  "FOLDER"
                ]
              },
              "examples": [
                [
                  "FILE"
                ]
              ]
            },
            "description": "Keep only files (`FILE`) or directories (`FOLDER`). Repeat the parameter for both (`types=FILE&types=FOLDER`). To filter by one kind, `fileCategory` is simpler."
          }
        ],
        "responses": {
          "200": {
            "description": "One page of assets and the total count. If the listing itself fails, the status is still 200 and the body is `{ \"filesAndFolders\": [], \"error\": \"<reason>\" }` instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetListResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Assets"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "List assets",
        "description": "The files and directories in one place of your organization drive: its root by default, a directory with `parentType=FOLDER` and `parentId`, or a project's folder with `projectId`. Files come before directories (`type` in A–Z order), and each group is newest-changed first. Filter by name, kind, creator or date, and page with `page` and `limit`; without `limit` every match is returned. Each row has a `url` you can download the file from.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/alias": {
      "post": {
        "operationId": "add-a-shortcut",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAliasDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The body is plain text: `Alias created successfully`, `Alias already exists at this location` (nothing new was created), `Original asset not found` (`originalAssetId` is not an asset of your organization) or `Error creating alias`. The status is 201 in every case.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string",
                  "examples": [
                    "Alias created successfully"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Assets"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Add a shortcut",
        "description": "Show an existing file or directory in a second place without copying it. The shortcut shares the original's storage `key`, so it takes no extra space; renaming or deleting the shortcut leaves the original alone. A shortcut to a shortcut points at the original. One place can hold only one shortcut to the same original. The result is plain text.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/create-folder": {
      "post": {
        "operationId": "create-a-directory",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDriveFolderDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The directory was created. The body is its ID as plain text, not JSON.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string",
                  "examples": [
                    "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, for example a name with `/` (`Folder name cannot contain forward slashes`), or the name is blank (`Folder name is required`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "A directory with this name is already in the same place (`A folder named \"<name>\" already exists here.`), or the name is reserved for a system directory at the drive root (`\"<name>\" is a reserved system folder name. Please choose another name.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Assets"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Create a directory",
        "description": "Create a directory in your organization drive (at the root, or inside another directory with `parentType=FOLDER` and `parentId`) or at the root of a project drive. Names are unique within the same place. Returns the new directory ID as plain text.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/download-zip": {
      "post": {
        "operationId": "download-as-a-zip",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DownloadZipDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The zip, as `application/zip` with a `Content-Disposition` attachment name.",
            "content": {
              "application/zip": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Too much at once (`That is too much to download at once (2,000 files or 5 GB). Pick fewer items.`), or nothing but empty directories was selected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "None of the ids is an asset you can see (`Nothing to download`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Assets"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Download as a zip",
        "description": "Download files and whole directories as one zip, streamed as it is built. Directories keep their structure inside the zip. Up to 2,000 files or 5 GB per request.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/folder-files": {
      "get": {
        "operationId": "list-files-in-a-directory",
        "parameters": [
          {
            "name": "folderId",
            "required": true,
            "in": "query",
            "description": "ID of the directory to list, from `rows[].id` of List assets.",
            "schema": {
              "type": "string",
              "examples": [
                "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a"
              ]
            }
          },
          {
            "name": "recursive",
            "required": false,
            "in": "query",
            "description": "Include files in subdirectories, at any depth (`true`, the default), or only the files directly inside (`false`).",
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          },
          {
            "name": "category",
            "required": false,
            "in": "query",
            "description": "Keep only `image`, `video` or `audio` files (by MIME type), or `document` (everything else). Omit it for every file.",
            "schema": {
              "enum": [
                "image",
                "video",
                "audio",
                "document"
              ],
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Most files to return, from 1 to 1000. Defaults to 200.",
            "schema": {
              "type": "number",
              "examples": [
                200
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The files under the directory.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderFilesResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`folderId` is not a directory in your organization (`Folder not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Assets"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "List files in a directory",
        "description": "Every file under a directory, with its path from that directory and a URL, ready to hand a whole directory to a job. Subdirectories are included unless `recursive=false`. Narrow it to one media type with `category`. Returns at most `limit` files; `truncated` says when more matched.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/import-from-url": {
      "post": {
        "operationId": "import-a-file-from-a-link",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportFromUrlDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The file was downloaded and is now an asset.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegisteredUploadResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The link is not a public `https://` address (`That link must be a public https:// address.`), could not be downloaded (`The link could not be downloaded (HTTP <status>). It may be private or expired.`), is too large or too slow, is an unsupported type (`Vitra can't import that kind of file. Use a video, audio, image, document or subtitle file.`), is a program (`That link is not a media or document file.`), or is empty (`That link points to an empty file.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The file was downloaded but could not be stored (`The file could not be stored. Try again in a moment.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Uploads"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Import a file from a link",
        "description": "The Acclaro API downloads the file from a public `https://` link and files it as an asset, as if you had uploaded it. Video, audio, image, PDF, Office, subtitle and text files are accepted, up to 2 GB (256 MB when the link does not say how big the file is). The download can take up to 15 minutes, and the call returns when it is done.",
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/move": {
      "put": {
        "operationId": "move-assets",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MoveAssetsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "How many assets were moved, or why nothing was. Check `error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MoveAssetsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Assets"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Move assets",
        "description": "Move files and directories to another place in the same drive: its root, or a directory. All the assets must be in one drive, and moves between drives (organization, project, task) are not supported. A directory cannot go inside itself. A refused move returns 200 with `moved: 0` and the reason in `error`, and nothing is moved.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/multi-upload": {
      "post": {
        "operationId": "upload-files",
        "parameters": [
          {
            "name": "path",
            "required": false,
            "in": "query",
            "description": "Not used: the upload ignores it. Choose the place with `parentType`, `parentId`, `projectId` and `taskId`.",
            "deprecated": true,
            "schema": {
              "type": "string",
              "examples": [
                "campaigns/2026"
              ]
            }
          },
          {
            "name": "parentId",
            "required": false,
            "in": "query",
            "description": "With `parentType=FOLDER`: the ID of the directory.",
            "schema": {
              "type": "string",
              "examples": [
                "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a"
              ]
            }
          },
          {
            "name": "parentType",
            "required": false,
            "in": "query",
            "description": "Where the files go: `ORGANIZATION` (the drive root, the default), `PROJECT` (the root of the `projectId` drive), `TASK` (the files of `taskId`) or `FOLDER` (inside the `parentId` directory).",
            "schema": {
              "enum": [
                "ORGANIZATION",
                "PROJECT",
                "TASK",
                "FOLDER"
              ],
              "type": "string"
            }
          },
          {
            "name": "projectId",
            "required": false,
            "in": "query",
            "description": "Project whose drive the files go in. Omit it for your organization drive. Send it too when `parentId` is a directory in a project drive, or the files won't show in that drive.",
            "schema": {
              "type": "string",
              "examples": [
                "1b2c3d4e-5f60-4718-9a2b-3c4d5e6f7a8b"
              ]
            }
          },
          {
            "name": "taskId",
            "required": false,
            "in": "query",
            "description": "With `parentType=TASK`: the task the files belong to.",
            "schema": {
              "type": "string",
              "examples": [
                "6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "files"
                ],
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "contentMediaType": "application/octet-stream"
                    },
                    "description": "The files to upload, up to 50. Repeat the `files` field once for each file. Each file's name becomes the asset name, and its `Content-Type` its `mimeType`."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "One entry per file, in upload order.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UploadedAssetResultDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "More than 50 files, or a file was sent in a field other than `files` (`Unexpected field - <field>`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "No file was sent, or the upload failed (`Error uploading files`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Uploads"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Upload files",
        "description": "Upload up to 50 files in the `files` form field (`multipart/form-data`). The whole request passes through the API, so use it for smaller files; for large ones, use a direct or multipart upload. Choose where the files go with the query parameters: the root of your organization drive by default. One entry is returned per file, in upload order; a file that fails has an `error` and no asset.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/multipart/abort": {
      "post": {
        "operationId": "abort-a-multipart-upload",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AbortMultipartUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The upload was aborted and its parts discarded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetSuccessResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or `key` was not issued to your organization (`Invalid key for this organization`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The upload could not be aborted, for example because it no longer exists (the storage error).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Uploads"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Abort a multipart upload",
        "description": "Cancel a multipart upload you will not finish. Its uploaded parts are discarded and no asset is created.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/multipart/complete": {
      "post": {
        "operationId": "complete-a-multipart-upload",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteMultipartUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The file was assembled and is now an asset.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetRecordDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or `key` was not issued to your organization (`Invalid key for this organization`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The parts could not be assembled: a part or `ETag` is missing or wrong, or the upload was aborted or expired (`Failed to complete upload`, or the storage error). Start a new multipart upload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Uploads"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Complete a multipart upload",
        "description": "Finish a multipart upload with each part's number and `ETag`, and file it as an asset. Send the file's `name`, `size`, `mimeType` and where it goes here. Returns the new asset.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/multipart/initiate": {
      "post": {
        "operationId": "start-a-multipart-upload",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InitiateMultipartUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The multipart upload was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiateAssetMultipartResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The upload could not be started (`Failed to initiate upload`, or the storage error).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Uploads"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Start a multipart upload",
        "description": "Begin uploading a large file in parts (S3 multipart). Returns an `uploadId` and the storage `key`. Split the file into parts of at least 5 MB each (the last can be smaller), up to 10,000 parts; get a URL for each part with Get part upload URLs, then Complete a multipart upload. Nothing appears in your assets until you complete it. Placement fields sent here are not stored: send them again when you complete.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/multipart/part-urls": {
      "post": {
        "operationId": "get-part-upload-urls",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetPartUrlsDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "One URL per part number.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetPartUrlsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation (part numbers run from 1 to 10000), or `key` was not issued to your organization (`Invalid key for this organization`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "A part URL could not be created (`Failed to presign part`, or the storage error).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Uploads"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Get part upload URLs",
        "description": "Presigned URLs for the parts of a multipart upload. Ask for any part numbers, all at once or in batches. `PUT` each part's bytes to its URL without your API key and keep the `ETag` response header of each. The URLs expire after 6 hours; ask again for fresh ones.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/presign-direct-upload": {
      "post": {
        "operationId": "get-a-direct-upload-url",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PresignDirectUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The upload URL and the key it writes to.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PresignDirectUploadResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The upload URL could not be created (`Could not create an upload URL`, or the storage error).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Uploads"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Get a direct upload URL",
        "description": "Step 1 of a direct upload, for one file of any size up to 5 GB that you can send in a single request. Returns a presigned URL and the storage `key`. `PUT` the file's bytes to `uploadUrl` within an hour, without your API key, sending exactly the headers in `headers` (`Content-Type`, the type you asked for), then call Register a direct upload. Nothing appears in your assets until you register it. A file that may not open in a browser tab (HTML, XHTML, SVG and other documents) is kept as a download.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/register-direct-upload": {
      "post": {
        "operationId": "register-a-direct-upload",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterDirectUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The file is now an asset.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegisteredUploadResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, `key` is not one issued to your organization (`That upload does not belong to this organization.`), or nothing was uploaded to it (`The upload could not be found. Please try uploading the file again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Uploads"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Register a direct upload",
        "description": "Step 2 of a direct upload: once your `PUT` has finished, file the object as an asset. The file must be in storage under `key`; its size is read from there. The asset is kept at a new storage key, returned as `key`, which the upload URL cannot write to; the upload `key` you sent also names the asset wherever a storage key is taken. Registering the same `key` again returns the same asset. HTML, XHTML, SVG and other files that may not open in a browser tab are kept as downloads. A `name` with `/` in it (`brand/2026/logo.png`) creates the directories it names.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/rename/{id}": {
      "put": {
        "operationId": "rename-an-asset",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the file or directory, from `rows[].id` of List assets.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "acc539c5-32f4-4690-95b5-b245fec51066"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The new name, with the extension for files. Spaces at either end are removed.",
                    "examples": [
                      "product-launch-final.mp4"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The body is plain text: `Rename successful`. When `id` is not an asset of your organization, the status is still 200 and the text is `Asset not found`; an unexpected failure returns `Error renaming asset`.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string",
                  "examples": [
                    "Rename successful"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The asset is a system directory (`System folders can't be renamed`), or the key lacks the permission.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Another asset of the same kind in the same place has this name (`A \"<name>\" already exists here.`), or the name is reserved for a system directory at the drive root (`\"<name>\" is a reserved system folder name. Please choose another name.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "No `name` was sent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Assets"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Rename an asset",
        "description": "Change the name of a file or directory. Only the name changes: the storage `key` and `url` stay the same. Names are unique within the same place.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/replace/{id}": {
      "put": {
        "operationId": "replace-a-file-with-an-upload",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "The file to replace.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "sourceId"
                ],
                "properties": {
                  "sourceId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The file just uploaded, whose content is used."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "One of them is a folder or a shortcut, they are not in the same place, or they are the same file.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Either file is not in your organization (`File not found.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Assets"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Replace a file with an upload",
        "description": "Give a file the content of another file you just uploaded to the same place. The file keeps its id, name and place, so anything linked to it (tasks, shortcuts) stays; the uploaded copy is removed.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/storage": {
      "get": {
        "operationId": "get-storage-usage",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Storage used, in bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageUsageResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Assets"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Get storage usage",
        "description": "How many bytes your organization's files take up, including files in the trash.",
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/trash": {
      "get": {
        "operationId": "list-the-trash",
        "parameters": [
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page number, from 1. Applies only together with `limit`.",
            "schema": {
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Assets per page. Omit it for everything in the trash.",
            "schema": {
              "type": "number",
              "examples": [
                50
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of trashed assets and the total count. If the listing fails, the status is still 200 with `rows: []` and `count: 0`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrashListResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Trash"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "List the trash",
        "description": "Files and directories in the trash, most recently changed first, with who deleted each. Assets stay here for 30 days, then are deleted for good. Page with `page` and `limit`; without `limit` everything is returned.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/assets-management/trash/restore": {
      "put": {
        "operationId": "restore-from-the-trash",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "ids"
                ],
                "properties": {
                  "ids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "description": "IDs of the trashed assets to restore.",
                    "examples": [
                      [
                        "acc539c5-32f4-4690-95b5-b245fec51066"
                      ]
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The body is plain text: `Files restored successfully`, or `Error restoring files from trash` when it failed (still 200).",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string",
                  "examples": [
                    "Files restored successfully"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Trash"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `asset:delete`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Restore from the trash",
        "description": "Put trashed files and directories back where they were. IDs that are not in your trash are skipped. The result is plain text.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Your organization API key (starts with `uvk_`). Create one in the Universe app under Settings → API keys."
      }
    },
    "schemas": {
      "AbortMultipartUploadDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "`key` from Start a multipart upload.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4"
            ]
          },
          "uploadId": {
            "type": "string",
            "description": "`uploadId` from Start a multipart upload.",
            "examples": [
              "VXBsb2FkIElEIGZvciA2aWWpbmcncyBteS1tb3ZpZS5tMnRzIHVwbG9hZA.Ex6Lv1YvYr"
            ]
          }
        },
        "required": [
          "key",
          "uploadId"
        ]
      },
      "AssetDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Asset ID. Use it to rename, move, delete or link the asset.",
            "examples": [
              "acc539c5-32f4-4690-95b5-b245fec51066"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name, with the extension for files.",
            "examples": [
              "product-launch.mp4"
            ]
          },
          "key": {
            "type": [
              "string",
              "null"
            ],
            "description": "Storage key of the file. Pass it to a product that takes a `fileKey`. `null` for directories.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "FILE",
              "FOLDER"
            ],
            "description": "`FILE` or `FOLDER` (a directory).",
            "examples": [
              "FILE"
            ]
          },
          "size": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              }
            ],
            "nullable": true,
            "description": "Size in bytes. Listings return it as a string of digits (it is a 64-bit number); upload responses return a number. `null` for directories.",
            "examples": [
              "48213760"
            ]
          },
          "mimeType": {
            "type": [
              "string",
              "null"
            ],
            "description": "MIME type of the file. `null` for directories.",
            "examples": [
              "video/mp4"
            ]
          },
          "thumbnail": {
            "type": [
              "string",
              "null"
            ],
            "description": "Storage key of the preview image, once it has been generated in the background. `null` when there is none.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.thumb.webp"
            ]
          },
          "fk_createdBy": {
            "type": "string",
            "format": "uuid",
            "description": "Member who created the asset.",
            "examples": [
              "7a1c2e3f-4b5d-4c6e-8f90-1a2b3c4d5e6f"
            ]
          },
          "fk_deletedBy": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Member who moved the asset to the trash. `null` unless it is in the trash.",
            "examples": [
              null
            ]
          },
          "fk_organizationId": {
            "type": "string",
            "format": "uuid",
            "description": "Your organization ID.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69"
            ]
          },
          "fk_projectId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Project whose drive holds the asset. `null` for the organization drive.",
            "examples": [
              null
            ]
          },
          "fk_taskId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Task the asset belongs to, if any.",
            "examples": [
              null
            ]
          },
          "parentType": {
            "type": "string",
            "enum": [
              "ORGANIZATION",
              "PROJECT",
              "TASK",
              "FOLDER"
            ],
            "description": "What holds the asset: `ORGANIZATION` (the root of the organization drive), `PROJECT` or `TASK` (the root of that drive), or `FOLDER` (inside a directory).",
            "examples": [
              "FOLDER"
            ]
          },
          "fk_parentId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of what holds the asset: your organization ID, a project ID, a task ID or a directory ID, matching `parentType`.",
            "examples": [
              "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a"
            ]
          },
          "fk_originalAssetId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "For a shortcut, the ID of the original asset it points to. `null` for an original.",
            "examples": [
              null
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Extra data a product attached to the asset, such as the job that produced it. Usually `null`.",
            "examples": [
              null
            ]
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Lifecycle status set by the product that filed the asset.",
            "examples": [
              null
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the asset was created.",
            "examples": [
              "2026-09-14T10:24:31.512Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the asset was last changed.",
            "examples": [
              "2026-09-14T10:24:31.512Z"
            ]
          },
          "deletedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the asset was moved to the trash. `null` unless it is in the trash.",
            "examples": [
              null
            ]
          },
          "createdBy": {
            "description": "The member who created the asset.",
            "allOf": [
              {
                "$ref": "#/components/schemas/AssetMemberDto"
              }
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL of the file in your organization's storage. `null` for directories.",
            "examples": [
              "https://universe-assets.s3.ap-south-1.amazonaws.com/2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4"
            ]
          },
          "thumbnailUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL of the preview image. `null` when there is none.",
            "examples": [
              null
            ]
          },
          "isSystem": {
            "type": "boolean",
            "description": "Whether this is a system directory at the drive root, managed by the platform (such as `Folders`). System directories cannot be renamed, moved or deleted.",
            "examples": [
              false
            ]
          },
          "isLocked": {
            "type": "boolean",
            "description": "Whether the asset is a system directory or anything inside one. Locked assets cannot be moved or deleted.",
            "examples": [
              false
            ]
          },
          "childCount": {
            "type": "integer",
            "description": "Directories only: the number of items directly inside. Not sent for files.",
            "examples": [
              12
            ]
          },
          "favorites": {
            "description": "Only with `includeFavorite=true`: your favorite mark on this asset, as a list of zero or one entry. Empty when you have not marked it.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssetFavoriteDto"
            }
          }
        },
        "required": [
          "id",
          "name",
          "key",
          "type",
          "size",
          "mimeType",
          "fk_createdBy",
          "fk_organizationId",
          "fk_projectId",
          "fk_taskId",
          "parentType",
          "fk_parentId",
          "createdAt",
          "updatedAt",
          "createdBy",
          "url",
          "thumbnailUrl",
          "isSystem",
          "isLocked"
        ]
      },
      "AssetFavoriteDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the favorite mark.",
            "examples": [
              "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a"
            ]
          }
        },
        "required": [
          "id"
        ]
      },
      "AssetListResponseDto": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "description": "Assets matching the filters, across all pages.",
            "examples": [
              42
            ]
          },
          "rows": {
            "description": "Assets on this page.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssetDto"
            }
          }
        },
        "required": [
          "count",
          "rows"
        ]
      },
      "AssetMemberDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Organization member ID.",
            "examples": [
              "7a1c2e3f-4b5d-4c6e-8f90-1a2b3c4d5e6f"
            ]
          },
          "user": {
            "description": "The user behind the member.",
            "allOf": [
              {
                "$ref": "#/components/schemas/AssetUserDto"
              }
            ]
          }
        },
        "required": [
          "id",
          "user"
        ]
      },
      "AssetPartUrlDto": {
        "type": "object",
        "properties": {
          "partNumber": {
            "type": "integer",
            "description": "Part number, from 1.",
            "examples": [
              1
            ]
          },
          "url": {
            "type": "string",
            "description": "Presigned URL for this part. `PUT` the part's bytes to it without your API key and keep the `ETag` response header. Expires after 6 hours.",
            "examples": [
              "https://universe-assets.s3.ap-south-1.amazonaws.com/2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4?partNumber=1&uploadId=VXBsb2FkIElE…&X-Amz-Signature=…"
            ]
          }
        },
        "required": [
          "partNumber",
          "url"
        ]
      },
      "AssetPartUrlsResponseDto": {
        "type": "object",
        "properties": {
          "urls": {
            "description": "One URL per part number you asked for, in the same order.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssetPartUrlDto"
            }
          }
        },
        "required": [
          "urls"
        ]
      },
      "AssetRecordDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Asset ID. Use it to rename, move, delete or link the asset.",
            "examples": [
              "acc539c5-32f4-4690-95b5-b245fec51066"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name, with the extension for files.",
            "examples": [
              "product-launch.mp4"
            ]
          },
          "key": {
            "type": [
              "string",
              "null"
            ],
            "description": "Storage key of the file. Pass it to a product that takes a `fileKey`. `null` for directories.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "FILE",
              "FOLDER"
            ],
            "description": "`FILE` or `FOLDER` (a directory).",
            "examples": [
              "FILE"
            ]
          },
          "size": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              }
            ],
            "nullable": true,
            "description": "Size in bytes. Listings return it as a string of digits (it is a 64-bit number); upload responses return a number. `null` for directories.",
            "examples": [
              "48213760"
            ]
          },
          "mimeType": {
            "type": [
              "string",
              "null"
            ],
            "description": "MIME type of the file. `null` for directories.",
            "examples": [
              "video/mp4"
            ]
          },
          "thumbnail": {
            "type": [
              "string",
              "null"
            ],
            "description": "Storage key of the preview image, once it has been generated in the background. `null` when there is none.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.thumb.webp"
            ]
          },
          "fk_createdBy": {
            "type": "string",
            "format": "uuid",
            "description": "Member who created the asset.",
            "examples": [
              "7a1c2e3f-4b5d-4c6e-8f90-1a2b3c4d5e6f"
            ]
          },
          "fk_deletedBy": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Member who moved the asset to the trash. `null` unless it is in the trash.",
            "examples": [
              null
            ]
          },
          "fk_organizationId": {
            "type": "string",
            "format": "uuid",
            "description": "Your organization ID.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69"
            ]
          },
          "fk_projectId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Project whose drive holds the asset. `null` for the organization drive.",
            "examples": [
              null
            ]
          },
          "fk_taskId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Task the asset belongs to, if any.",
            "examples": [
              null
            ]
          },
          "parentType": {
            "type": "string",
            "enum": [
              "ORGANIZATION",
              "PROJECT",
              "TASK",
              "FOLDER"
            ],
            "description": "What holds the asset: `ORGANIZATION` (the root of the organization drive), `PROJECT` or `TASK` (the root of that drive), or `FOLDER` (inside a directory).",
            "examples": [
              "FOLDER"
            ]
          },
          "fk_parentId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of what holds the asset: your organization ID, a project ID, a task ID or a directory ID, matching `parentType`.",
            "examples": [
              "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a"
            ]
          },
          "fk_originalAssetId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "For a shortcut, the ID of the original asset it points to. `null` for an original.",
            "examples": [
              null
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Extra data a product attached to the asset, such as the job that produced it. Usually `null`.",
            "examples": [
              null
            ]
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Lifecycle status set by the product that filed the asset.",
            "examples": [
              null
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the asset was created.",
            "examples": [
              "2026-09-14T10:24:31.512Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the asset was last changed.",
            "examples": [
              "2026-09-14T10:24:31.512Z"
            ]
          },
          "deletedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the asset was moved to the trash. `null` unless it is in the trash.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "id",
          "name",
          "key",
          "type",
          "size",
          "mimeType",
          "fk_createdBy",
          "fk_organizationId",
          "fk_projectId",
          "fk_taskId",
          "parentType",
          "fk_parentId",
          "createdAt",
          "updatedAt"
        ]
      },
      "AssetSuccessResponseDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ],
            "description": "Always `true` when the request succeeds.",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "success"
        ]
      },
      "AssetUserDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "User ID.",
            "examples": [
              "3e8b6f0a-2c4d-4e1f-9a7b-5c6d7e8f9a0b"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The user's display name.",
            "examples": [
              "Priya Sharma"
            ]
          },
          "email": {
            "type": "string",
            "description": "The user's email address.",
            "examples": [
              "priya@example.com"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "email"
        ]
      },
      "CompletedPartDto": {
        "type": "object",
        "properties": {
          "PartNumber": {
            "type": "integer",
            "description": "Number of the part, from 1 to 10000.",
            "examples": [
              1
            ]
          },
          "ETag": {
            "type": "string",
            "description": "The `ETag` response header from uploading this part, quotes included.",
            "examples": [
              "\"a54357aff0632cce46d942af68356b38\""
            ]
          }
        },
        "required": [
          "PartNumber",
          "ETag"
        ]
      },
      "CompleteMultipartUploadDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "`key` from Start a multipart upload.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4"
            ]
          },
          "uploadId": {
            "type": "string",
            "description": "`uploadId` from Start a multipart upload.",
            "examples": [
              "VXBsb2FkIElEIGZvciA2aWWpbmcncyBteS1tb3ZpZS5tMnRzIHVwbG9hZA.Ex6Lv1YvYr"
            ]
          },
          "parts": {
            "description": "Every part you uploaded, in part-number order.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompletedPartDto"
            }
          },
          "name": {
            "type": "string",
            "description": "Name of the asset, with its extension. Defaults to the last part of `key`.",
            "examples": [
              "product-launch.mp4"
            ]
          },
          "size": {
            "type": "integer",
            "description": "Size of the whole file in bytes. Stored as sent and counted towards your storage usage.",
            "examples": [
              48213760
            ]
          },
          "mimeType": {
            "type": "string",
            "description": "MIME type of the file. Send it to get a preview image for videos, images and PDFs.",
            "examples": [
              "video/mp4"
            ]
          },
          "parentId": {
            "type": "string",
            "description": "With `parentType=FOLDER`: the ID of the directory the file goes in.",
            "examples": [
              "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a"
            ]
          },
          "parentType": {
            "type": "string",
            "enum": [
              "ORGANIZATION",
              "PROJECT",
              "TASK",
              "FOLDER"
            ],
            "description": "Where the file goes: `ORGANIZATION` (the drive root, the default), `PROJECT` (the root of the `projectId` drive), `TASK` (the files of `taskId`) or `FOLDER` (inside the `parentId` directory).",
            "examples": [
              "FOLDER"
            ]
          },
          "projectId": {
            "type": "string",
            "description": "Project whose drive the file goes in. Omit it for your organization drive.",
            "examples": [
              "1b2c3d4e-5f60-4718-9a2b-3c4d5e6f7a8b"
            ]
          },
          "taskId": {
            "type": "string",
            "description": "With `parentType=TASK`: the task the file belongs to.",
            "examples": [
              "6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f"
            ]
          }
        },
        "required": [
          "key",
          "uploadId",
          "parts"
        ]
      },
      "CreateAliasDto": {
        "type": "object",
        "properties": {
          "originalAssetId": {
            "type": "string",
            "description": "ID of the file or directory to add a shortcut to.",
            "examples": [
              "acc539c5-32f4-4690-95b5-b245fec51066"
            ]
          },
          "parentType": {
            "type": "string",
            "description": "Where the shortcut goes: `ORGANIZATION` (the drive root), `PROJECT` or `TASK` (the root of that drive) or `FOLDER` (inside a directory).",
            "enum": [
              "ORGANIZATION",
              "PROJECT",
              "TASK",
              "FOLDER"
            ],
            "examples": [
              "FOLDER"
            ]
          },
          "parentId": {
            "type": "string",
            "description": "ID of the place, matching `parentType`: your organization ID, a project ID, a task ID or a directory ID.",
            "examples": [
              "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a"
            ]
          },
          "projectId": {
            "type": "string",
            "description": "Project whose drive the shortcut goes in. Send it whenever the place is in a project drive, or the shortcut will not show there.",
            "examples": [
              "acc539c5-32f4-4690-95b5-b245fec51068"
            ]
          },
          "taskId": {
            "type": "string",
            "description": "Task the shortcut belongs to, for a place in a task drive.",
            "examples": [
              "acc539c5-32f4-4690-95b5-b245fec51069"
            ]
          }
        },
        "required": [
          "originalAssetId",
          "parentType",
          "parentId"
        ]
      },
      "CreateDriveFolderDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the directory, without `/`. Spaces at either end are removed.",
            "examples": [
              "Campaign videos"
            ]
          },
          "basePath": {
            "type": "string",
            "description": "Required, but not used: the place comes from `parentType`, `parentId` and `projectId`. Send an empty string.",
            "examples": [
              ""
            ]
          },
          "parentType": {
            "type": "string",
            "description": "Where the directory goes: `ORGANIZATION` (the organization drive root), `PROJECT` (the root of the `projectId` drive) or `FOLDER` (inside the `parentId` directory).",
            "enum": [
              "ORGANIZATION",
              "PROJECT",
              "FOLDER"
            ],
            "examples": [
              "ORGANIZATION"
            ]
          },
          "parentId": {
            "type": "string",
            "description": "With `parentType=FOLDER`: the ID of the directory to create it in. Without it, the directory goes at the drive root.",
            "examples": [
              "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a"
            ]
          },
          "projectId": {
            "type": "string",
            "description": "Project whose drive the directory goes in. Omit it for your organization drive. Send it too when `parentId` is a directory in a project drive.",
            "examples": [
              "1b2c3d4e-5f60-4718-9a2b-3c4d5e6f7a8b"
            ]
          }
        },
        "required": [
          "name",
          "basePath",
          "parentType"
        ]
      },
      "DownloadZipDto": {
        "type": "object",
        "properties": {
          "ids": {
            "description": "IDs of the files and directories to put in the zip. A directory brings everything inside it, with its sub-directories as paths.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "acc539c5-32f4-4690-95b5-b245fec51066"
              ]
            ]
          },
          "name": {
            "type": "string",
            "description": "Name for the zip, without `.zip`. Defaults to `download`.",
            "examples": [
              "Brochure DE - Wave 1"
            ]
          }
        },
        "required": [
          "ids"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "description": "Error body returned for every 4xx and 5xx response.",
        "required": [
          "statusCode",
          "message"
        ],
        "properties": {
          "statusCode": {
            "type": "integer",
            "description": "HTTP status code, repeated in the body.",
            "examples": [
              404
            ]
          },
          "message": {
            "description": "What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ],
            "examples": [
              "Booking not found"
            ]
          },
          "error": {
            "type": "string",
            "description": "Short name of the status.",
            "examples": [
              "Not Found"
            ]
          }
        }
      },
      "FolderFileDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Asset ID of the file.",
            "examples": [
              "acc539c5-32f4-4690-95b5-b245fec51066"
            ]
          },
          "name": {
            "type": "string",
            "description": "File name.",
            "examples": [
              "product-launch.mp4"
            ]
          },
          "key": {
            "type": "string",
            "description": "Storage key of the file. Pass it to a product that takes a `fileKey`.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4"
            ]
          },
          "path": {
            "type": "string",
            "description": "Path of the file from the listed directory, with `/` between directory names.",
            "examples": [
              "spring/product-launch.mp4"
            ]
          },
          "mimeType": {
            "type": [
              "string",
              "null"
            ],
            "description": "MIME type of the file.",
            "examples": [
              "video/mp4"
            ]
          },
          "size": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Size in bytes.",
            "examples": [
              48213760
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL of the file in your organization's storage.",
            "examples": [
              "https://universe-assets.s3.ap-south-1.amazonaws.com/2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "key",
          "path",
          "mimeType",
          "size",
          "url"
        ]
      },
      "FolderFilesFolderDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the directory.",
            "examples": [
              "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the directory.",
            "examples": [
              "Campaign videos"
            ]
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "FolderFilesResponseDto": {
        "type": "object",
        "properties": {
          "folder": {
            "description": "The directory you listed.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FolderFilesFolderDto"
              }
            ]
          },
          "files": {
            "description": "Files in the directory, sorted by name at each level. Directories themselves are not listed.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FolderFileDto"
            }
          },
          "skipped": {
            "type": "integer",
            "description": "Files left out because they are not of the `category` asked for.",
            "examples": [
              2
            ]
          },
          "truncated": {
            "type": "boolean",
            "description": "Whether more files matched than `limit`. Only the first `limit` are returned.",
            "examples": [
              false
            ]
          }
        },
        "required": [
          "folder",
          "files",
          "skipped",
          "truncated"
        ]
      },
      "GetPartUrlsDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "`key` from Start a multipart upload.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4"
            ]
          },
          "uploadId": {
            "type": "string",
            "description": "`uploadId` from Start a multipart upload.",
            "examples": [
              "VXBsb2FkIElEIGZvciA2aWWpbmcncyBteS1tb3ZpZS5tMnRzIHVwbG9hZA.Ex6Lv1YvYr"
            ]
          },
          "partNumbers": {
            "description": "Part numbers to get URLs for, each from 1 to 10000. Number the parts of the file in order, from 1.",
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                1,
                2,
                3
              ]
            ]
          }
        },
        "required": [
          "key",
          "uploadId",
          "partNumbers"
        ]
      },
      "ImportFromUrlDto": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Public `https://` link to the file, up to 4096 characters. It must download without signing in.",
            "examples": [
              "https://cdn.example.com/media/product-launch.mp4"
            ]
          },
          "fileName": {
            "type": "string",
            "description": "Name of the asset, up to 255 characters (200 are kept). Defaults to the name the link gives, then the last part of its path.",
            "examples": [
              "product-launch.mp4"
            ]
          },
          "mimeType": {
            "type": "string",
            "description": "MIME type of the file. Overrides the type the link reports; send it when the link only says `application/octet-stream` and the name has no known extension.",
            "examples": [
              "video/mp4"
            ]
          },
          "parentType": {
            "type": "string",
            "enum": [
              "ORGANIZATION",
              "PROJECT",
              "TASK",
              "FOLDER"
            ],
            "description": "Where the file goes: `ORGANIZATION` (the drive root, the default), `PROJECT` (the root of a project drive; `parentId` is the project ID), `TASK` (`parentId` is the task ID) or `FOLDER` (inside the `parentId` directory).",
            "examples": [
              "FOLDER"
            ]
          },
          "parentId": {
            "type": "string",
            "description": "ID of the place the file goes, matching `parentType`. Defaults to your organization drive root.",
            "examples": [
              "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a"
            ]
          }
        },
        "required": [
          "url"
        ]
      },
      "InitiateAssetMultipartResponseDto": {
        "type": "object",
        "properties": {
          "uploadId": {
            "type": "string",
            "description": "Multipart upload ID. Pass it, with `key`, to the other multipart calls.",
            "examples": [
              "VXBsb2FkIElEIGZvciA2aWWpbmcncyBteS1tb3ZpZS5tMnRzIHVwbG9hZA.Ex6Lv1YvYr"
            ]
          },
          "key": {
            "type": "string",
            "description": "Storage key the file is written to.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4"
            ]
          },
          "parentType": {
            "type": "string",
            "enum": [
              "ORGANIZATION",
              "PROJECT",
              "TASK",
              "FOLDER"
            ],
            "description": "The `parentType` you sent, or `ORGANIZATION`. Send the same placement again when you complete the upload: that is where the asset is filed.",
            "examples": [
              "ORGANIZATION"
            ]
          }
        },
        "required": [
          "uploadId",
          "key",
          "parentType"
        ]
      },
      "InitiateMultipartUploadDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "description": "Name of the file, with its extension. The extension is kept on the storage key.",
            "examples": [
              "product-launch.mp4"
            ]
          },
          "mimeType": {
            "type": "string",
            "description": "MIME type of the file, stored with the object.",
            "examples": [
              "video/mp4"
            ]
          },
          "fileSize": {
            "type": "number",
            "description": "The file's size in bytes. Optional: with it, an upload that would take your organization past its plan's storage limit is refused before it starts, not only once storage is already full. The stored size is still read from storage when you complete.",
            "examples": [
              3758096384
            ]
          },
          "path": {
            "type": "string",
            "description": "Not used. The storage key is always chosen by the platform.",
            "examples": [
              "campaigns/spring"
            ]
          },
          "parentId": {
            "type": "string",
            "description": "Not stored: send it again when you complete. With `parentType=FOLDER`: the ID of the directory the file goes in.",
            "examples": [
              "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a"
            ]
          },
          "parentType": {
            "type": "string",
            "enum": [
              "ORGANIZATION",
              "PROJECT",
              "TASK",
              "FOLDER"
            ],
            "description": "Where the file goes: `ORGANIZATION` (the drive root, the default), `PROJECT` (the root of the `projectId` drive), `TASK` (the files of `taskId`) or `FOLDER` (inside the `parentId` directory). Only echoed back here: send it again when you complete the upload.",
            "examples": [
              "FOLDER"
            ]
          },
          "projectId": {
            "type": "string",
            "description": "Not stored: send it again when you complete. Project whose drive the file goes in. Omit it for your organization drive.",
            "examples": [
              "1b2c3d4e-5f60-4718-9a2b-3c4d5e6f7a8b"
            ]
          },
          "taskId": {
            "type": "string",
            "description": "Not stored: send it again when you complete. With `parentType=TASK`: the task the file belongs to.",
            "examples": [
              "6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f"
            ]
          }
        },
        "required": [
          "fileName"
        ]
      },
      "MoveAssetsDto": {
        "type": "object",
        "properties": {
          "ids": {
            "description": "IDs of the files and directories to move. They must all be in the same drive.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "acc539c5-32f4-4690-95b5-b245fec51066"
              ]
            ]
          },
          "parentType": {
            "type": "string",
            "description": "Where to move them: `ORGANIZATION`, `PROJECT` or `TASK` for the root of that drive, or `FOLDER` for inside a directory of the same drive.",
            "enum": [
              "ORGANIZATION",
              "PROJECT",
              "TASK",
              "FOLDER"
            ],
            "examples": [
              "FOLDER"
            ]
          },
          "parentId": {
            "type": "string",
            "description": "ID of the destination, matching `parentType`: your organization ID, the project ID, the task ID or the directory ID.",
            "examples": [
              "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a"
            ]
          }
        },
        "required": [
          "ids",
          "parentType",
          "parentId"
        ]
      },
      "MoveAssetsResponseDto": {
        "type": "object",
        "properties": {
          "moved": {
            "type": "integer",
            "description": "Number of assets moved. `0` when the move was refused.",
            "examples": [
              2
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why nothing was moved, or `null` on success. The status is still 200: `No assets to move`, `Assets not found`, `\"<name>\" is in a system folder and can't be moved`, `All items must be in the same drive`, `Cross-drive moves are not supported yet`, `Target folder not found`, `\"<name>\" is a system folder — items can't be moved into it`, `Cannot move a folder into itself or its subfolder`, or `Error moving assets`.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "moved",
          "error"
        ]
      },
      "PresignDirectUploadDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "description": "Name of the file. Only the last part after any `/` is kept, up to 200 characters, as the end of the storage key.",
            "examples": [
              "quarterly-review.pptx"
            ]
          },
          "contentType": {
            "type": "string",
            "description": "MIME type of the file. Send the same `Content-Type` header when you `PUT` the bytes, or storage rejects the upload.",
            "examples": [
              "application/vnd.openxmlformats-officedocument.presentationml.presentation"
            ]
          },
          "fileSize": {
            "type": "number",
            "description": "The file's size in bytes. Optional: with it, an upload that would take your organization past its plan's storage limit is refused before it starts, not only once storage is already full.",
            "examples": [
              524288000
            ]
          }
        },
        "required": [
          "fileName",
          "contentType"
        ]
      },
      "PresignDirectUploadResponseDto": {
        "type": "object",
        "properties": {
          "uploadUrl": {
            "type": "string",
            "description": "Presigned URL. `PUT` the file bytes to it, without your API key, sending exactly the `headers` below.",
            "examples": [
              "https://universe-assets.s3.ap-south-1.amazonaws.com/2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/direct-uploads/1d2e3f4a-5b6c-4d7e-8f90-a1b2c3d4e5f6-quarterly-review.pptx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&X-Amz-Signature=…"
            ]
          },
          "key": {
            "type": "string",
            "description": "Storage key the file is written to. Pass it to Register a direct upload.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/direct-uploads/1d2e3f4a-5b6c-4d7e-8f90-a1b2c3d4e5f6-quarterly-review.pptx"
            ]
          },
          "expiresInSeconds": {
            "type": "integer",
            "description": "Seconds until `uploadUrl` expires. Always 3600.",
            "examples": [
              3600
            ]
          },
          "headers": {
            "type": "object",
            "description": "Headers the `PUT` must send, exactly: the URL is signed over them. `Content-Type`, the type you asked for.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "Content-Type": "application/pdf"
              }
            ]
          }
        },
        "required": [
          "uploadUrl",
          "key",
          "expiresInSeconds",
          "headers"
        ]
      },
      "RegisterDirectUploadDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "`key` from Get a direct upload URL.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/direct-uploads/1d2e3f4a-5b6c-4d7e-8f90-a1b2c3d4e5f6-quarterly-review.pptx"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the asset, with its extension. Directories named before a `/` (`decks/quarterly-review.pptx`) are found or created under the chosen place.",
            "examples": [
              "quarterly-review.pptx"
            ]
          },
          "mimeType": {
            "type": "string",
            "description": "MIME type of the file. Send it to get a preview image for videos, images and PDFs.",
            "examples": [
              "application/vnd.openxmlformats-officedocument.presentationml.presentation"
            ]
          },
          "size": {
            "type": "integer",
            "description": "Size in bytes. Not used: the size is read from storage.",
            "examples": [
              2483712
            ]
          },
          "parentType": {
            "type": "string",
            "enum": [
              "ORGANIZATION",
              "PROJECT",
              "TASK",
              "FOLDER"
            ],
            "description": "Where the file goes: `ORGANIZATION` (the drive root, the default), `PROJECT` (the root of a project drive; `parentId` is the project ID), `TASK` (`parentId` is the task ID) or `FOLDER` (inside the `parentId` directory).",
            "examples": [
              "FOLDER"
            ]
          },
          "parentId": {
            "type": "string",
            "description": "ID of the place the file goes, matching `parentType`. Defaults to your organization drive root.",
            "examples": [
              "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a"
            ]
          }
        },
        "required": [
          "key",
          "name"
        ]
      },
      "RegisteredUploadResponseDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Storage key of the file. The file is kept at a key of its own, so this is not the `key` from Get a direct upload URL.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/7c3e9a52-1f4b-4d8e-a6c0-5b2d9e8f1a37.pptx"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL of the file in your organization's storage.",
            "examples": [
              "https://universe-assets.s3.ap-south-1.amazonaws.com/2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/7c3e9a52-1f4b-4d8e-a6c0-5b2d9e8f1a37.pptx"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              null
            ],
            "description": "Always `null` when the request succeeds.",
            "examples": [
              null
            ]
          },
          "asset": {
            "description": "The new asset. `size` is read from storage, not from the request.",
            "allOf": [
              {
                "$ref": "#/components/schemas/AssetRecordDto"
              }
            ]
          }
        },
        "required": [
          "key",
          "url",
          "error",
          "asset"
        ]
      },
      "StorageUsageResponseDto": {
        "type": "object",
        "properties": {
          "consumedStorage": {
            "type": "integer",
            "description": "Bytes your organization's files take up, including the trash. Updated on every upload and permanent delete, and reconciled daily.",
            "examples": [
              5368709120
            ]
          }
        },
        "required": [
          "consumedStorage"
        ]
      },
      "TrashedAssetDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Asset ID. Use it to rename, move, delete or link the asset.",
            "examples": [
              "acc539c5-32f4-4690-95b5-b245fec51066"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name, with the extension for files.",
            "examples": [
              "product-launch.mp4"
            ]
          },
          "key": {
            "type": [
              "string",
              "null"
            ],
            "description": "Storage key of the file. Pass it to a product that takes a `fileKey`. `null` for directories.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "FILE",
              "FOLDER"
            ],
            "description": "`FILE` or `FOLDER` (a directory).",
            "examples": [
              "FILE"
            ]
          },
          "size": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              }
            ],
            "nullable": true,
            "description": "Size in bytes. Listings return it as a string of digits (it is a 64-bit number); upload responses return a number. `null` for directories.",
            "examples": [
              "48213760"
            ]
          },
          "mimeType": {
            "type": [
              "string",
              "null"
            ],
            "description": "MIME type of the file. `null` for directories.",
            "examples": [
              "video/mp4"
            ]
          },
          "thumbnail": {
            "type": [
              "string",
              "null"
            ],
            "description": "Storage key of the preview image, once it has been generated in the background. `null` when there is none.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.thumb.webp"
            ]
          },
          "fk_createdBy": {
            "type": "string",
            "format": "uuid",
            "description": "Member who created the asset.",
            "examples": [
              "7a1c2e3f-4b5d-4c6e-8f90-1a2b3c4d5e6f"
            ]
          },
          "fk_deletedBy": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Member who moved the asset to the trash. `null` unless it is in the trash.",
            "examples": [
              null
            ]
          },
          "fk_organizationId": {
            "type": "string",
            "format": "uuid",
            "description": "Your organization ID.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69"
            ]
          },
          "fk_projectId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Project whose drive holds the asset. `null` for the organization drive.",
            "examples": [
              null
            ]
          },
          "fk_taskId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Task the asset belongs to, if any.",
            "examples": [
              null
            ]
          },
          "parentType": {
            "type": "string",
            "enum": [
              "ORGANIZATION",
              "PROJECT",
              "TASK",
              "FOLDER"
            ],
            "description": "What holds the asset: `ORGANIZATION` (the root of the organization drive), `PROJECT` or `TASK` (the root of that drive), or `FOLDER` (inside a directory).",
            "examples": [
              "FOLDER"
            ]
          },
          "fk_parentId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of what holds the asset: your organization ID, a project ID, a task ID or a directory ID, matching `parentType`.",
            "examples": [
              "5d9e3b1a-7c2f-4e8d-a6b4-0f1e2d3c4b5a"
            ]
          },
          "fk_originalAssetId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "For a shortcut, the ID of the original asset it points to. `null` for an original.",
            "examples": [
              null
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Extra data a product attached to the asset, such as the job that produced it. Usually `null`.",
            "examples": [
              null
            ]
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Lifecycle status set by the product that filed the asset.",
            "examples": [
              null
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the asset was created.",
            "examples": [
              "2026-09-14T10:24:31.512Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the asset was last changed.",
            "examples": [
              "2026-09-14T10:24:31.512Z"
            ]
          },
          "deletedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the asset was moved to the trash. `null` unless it is in the trash.",
            "examples": [
              null
            ]
          },
          "deletedBy": {
            "description": "The member who moved the asset to the trash.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/AssetMemberDto"
              }
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL of the file in your organization's storage. `null` for directories.",
            "examples": [
              "https://universe-assets.s3.ap-south-1.amazonaws.com/2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4"
            ]
          },
          "thumbnailUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL of the preview image. `null` when there is none.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "id",
          "name",
          "key",
          "type",
          "size",
          "mimeType",
          "fk_createdBy",
          "fk_organizationId",
          "fk_projectId",
          "fk_taskId",
          "parentType",
          "fk_parentId",
          "createdAt",
          "updatedAt",
          "deletedBy",
          "url",
          "thumbnailUrl"
        ]
      },
      "TrashListResponseDto": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "description": "Assets in the trash, across all pages.",
            "examples": [
              3
            ]
          },
          "rows": {
            "description": "Trashed assets on this page, most recently changed first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrashedAssetDto"
            }
          }
        },
        "required": [
          "count",
          "rows"
        ]
      },
      "UploadedAssetResultDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Storage key of the file.",
            "examples": [
              "2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4"
            ]
          },
          "url": {
            "type": "string",
            "description": "URL of the file in your organization's storage. Empty when this file failed.",
            "examples": [
              "https://universe-assets.s3.ap-south-1.amazonaws.com/2f6b1c3a-8d4e-4f5a-9b7c-1e2d3c4b5a69/0c7d2a4e-91b3-4f6a-8e25-7d3c1b9a4f60.mp4"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why this file could not be stored, or `null` when it was. Files that failed get no asset; the others are still saved.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "key",
          "url",
          "error"
        ]
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
