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

# Asynchronic scan receiving a base64 encoded file

receives a base64 encoded file, scans it and returns a file identifier

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "API Scan",
    "version": "1.0.0",
    "title": "API Scan"
  },
  "paths": {
    "/addtolocalbase64": {
      "post": {
        "summary": "Asynchronic scan receiving a base64 encoded file",
        "description": "receives a base64 encoded file, scans it and returns a file identifier",
        "parameters": [
          {
            "in": "header",
            "name": "APIKEY",
            "required": true,
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Content-type",
            "required": true,
            "description": "Value MUST be application/json for this to work otherwise the response will be a code 500 error",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "filename",
                  "file",
                  "folder"
                ],
                "properties": {
                  "filename": {
                    "type": "string",
                    "description": "Name of the file (extension included)"
                  },
                  "file": {
                    "type": "string",
                    "description": "Base64 encoded file"
                  },
                  "folder": {
                    "type": "string",
                    "description": "Relative path for file"
                  }
                }
              }
            }
          },
          "description": "The user to create."
        },
        "responses": {
          "200": {
            "description": "Sucessful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "uploaded": {
                      "type": "string",
                      "example": "success"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Invalid credentials",
            "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
  }
}
```