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

# Downloads a file from a local connector as an octet stream and delete it from source

Download the file corresponding to the safe which api key and name are provided as parameters

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "API Scan",
    "version": "1.0.0",
    "title": "API Scan"
  },
  "paths": {
    "/getfilefromlocal": {
      "get": {
        "summary": "Downloads a file from a local connector as an octet stream and delete it from source",
        "description": "Download the file corresponding to the safe which api key and name are provided as parameters",
        "operationId": "getFileFromLocal",
        "parameters": [
          {
            "in": "header",
            "name": "apikey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "An octet stream file",
            "headers": {
              "remaining": {
                "description": "Number of remaining files in local",
                "schema": {
                  "type": "integer"
                }
              },
              "filename": {
                "description": "filename relative to local connector root",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "No more files available for download (actual http code is 200)",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "boolean",
                      "description": "returns true"
                    },
                    "result": {
                      "type": "integer",
                      "description": "returns 400"
                    },
                    "description": {
                      "type": "integer",
                      "description": "returns \"No files available for download\""
                    },
                    "filename": {
                      "type": "string",
                      "description": "return an empty string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://clouddmax.cybercloudnetworks.net"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```