---
updatedAt: 2026-05-18T16:44:36.000Z
agentTools:
  projectIndex: https://docs.superwise.ai/llms.txt
---

# Upload Files

Upload files to cloud storage.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/v1/knowledge/upload": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Upload Files",
        "description": "Upload files to cloud storage.",
        "operationId": "upload_files",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_files"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadResponse"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "info": {
    "title": "Superwise Main Entities",
    "description": "API reference",
    "version": "0.1.0"
  },
  "components": {
    "schemas": {
      "Body_upload_files": {
        "properties": {
          "files": {
            "items": {
              "type": "string",
              "format": "binary"
            },
            "type": "array",
            "title": "Files"
          }
        },
        "type": "object",
        "required": [
          "files"
        ],
        "title": "Body_upload_files"
      },
      "FileInfo": {
        "properties": {
          "filename": {
            "type": "string",
            "title": "Filename"
          },
          "content_type": {
            "$ref": "#/components/schemas/SupportedContentType"
          },
          "size": {
            "type": "integer",
            "title": "Size"
          },
          "id": {
            "type": "string",
            "format": "uuid4",
            "title": "Id"
          }
        },
        "type": "object",
        "required": [
          "filename",
          "content_type",
          "size",
          "id"
        ],
        "title": "FileInfo"
      },
      "FileUploadResponse": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/UploadStatus"
          },
          "file_info": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FileInfo"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "FileUploadResponse"
      },
      "SupportedContentType": {
        "type": "string",
        "enum": [
          "application/pdf",
          "text/plain"
        ],
        "title": "SupportedContentType"
      },
      "UploadResponse": {
        "properties": {
          "files": {
            "items": {
              "$ref": "#/components/schemas/FileUploadResponse"
            },
            "type": "array",
            "title": "Files"
          },
          "total_files": {
            "type": "integer",
            "title": "Total Files"
          },
          "total_size": {
            "type": "integer",
            "title": "Total Size"
          }
        },
        "type": "object",
        "required": [
          "files",
          "total_files",
          "total_size"
        ],
        "title": "UploadResponse"
      },
      "UploadStatus": {
        "type": "string",
        "enum": [
          "success",
          "file_too_large",
          "unsupported_file_type",
          "upload_failed"
        ],
        "title": "UploadStatus"
      }
    },
    "securitySchemes": {
      "implicit": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://authentication.superwise.ai/identity/resources/auth/v1/api-token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "implicit": []
    }
  ],
  "servers": [
    {
      "url": "api.superwise.ai",
      "description": "Superwise Api Gateway"
    }
  ]
}
```