---
updatedAt: 2025-03-08T01:25:55.000Z
agentTools:
  projectIndex: https://docs.cybercloudnetworks.net/llms.txt
---

# Uploads a file for scanning from a multipart request

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "API Scan",
    "version": "1.0.0",
    "title": "API Scan"
  },
  "paths": {
    "/upload": {
      "post": {
        "summary": "Uploads a file for scanning from a multipart request",
        "parameters": [
          {
            "in": "header",
            "name": "apikey",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "description": "The file to upload.",
                    "type": "string",
                    "format": "binary"
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Returns the data_id needed for further queries or download the clean file",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data_id": {
                      "type": "string",
                      "description": "Hash for further request of the scan result"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Invalid credentials (actual http code is 200)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/401ErrorObject"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://clouddmax.cybercloudnetworks.net"
    }
  ],
  "components": {
    "schemas": {
      "ErrorObject": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "description": "100",
            "default": 100
          },
          "result": {
            "type": "integer",
            "description": "Returns the http error code",
            "default": "401 (401, 404, 500, etc, the error code)"
          },
          "description": {
            "type": "string",
            "description": "Error",
            "default": "Error"
          },
          "filename": {
            "type": "string",
            "description": "",
            "default": ""
          }
        }
      },
      "401ErrorObject": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ErrorObject"
          }
        ],
        "properties": {
          "result": {
            "type": "integer",
            "description": "Returns the http error code",
            "default": 401
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```