{
  "openapi": "3.1.1",
  "info": {
    "title": "FlowPrime file",
    "description": "File processing for a FlowPrime organization. Tenant is resolved from the {org} subdomain or the X-Org-Slug header.",
    "version": "3.0.4-6fb96fc"
  },
  "servers": [
    {
      "url": "https://{org}.file.fastflow.tech",
      "description": "Tenant host. The org slug is also accepted as the X-Org-Slug header.",
      "variables": {
        "org": {
          "default": "your-org",
          "description": "Your FlowPrime organization slug"
        }
      }
    }
  ],
  "paths": {
    "/auth/login": {
      "get": {
        "tags": [
          "File"
        ],
        "parameters": [
          {
            "name": "returnUrl",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "login_hint",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "prompt",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/auth/callback": {
      "get": {
        "tags": [
          "File"
        ],
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/my-accounts": {
      "get": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/switch-account": {
      "post": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/auth/logout": {
      "get": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/agent/config": {
      "get": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/manifest/report": {
      "post": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/agent/sync-tasks": {
      "get": {
        "tags": [
          "File"
        ],
        "parameters": [
          {
            "name": "folderId",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/relay/{transferId}": {
      "put": {
        "tags": [
          "File"
        ],
        "parameters": [
          {
            "name": "transferId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/files/{folderId}/{path}": {
      "get": {
        "tags": [
          "RelayEndpoints"
        ],
        "parameters": [
          {
            "name": "folderId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "path",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/admin/databases": {
      "get": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/health": {
      "get": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/health/live": {
      "get": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/health/ready": {
      "get": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/agent/version": {
      "get": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/agent/ff-file": {
      "get": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/agent/{filename}": {
      "get": {
        "tags": [
          "File"
        ],
        "parameters": [
          {
            "name": "filename",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/install.ps1": {
      "get": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/install.sh": {
      "get": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/devices/register": {
      "post": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/devices/connect": {
      "post": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/devices/{id}/status": {
      "get": {
        "tags": [
          "File"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/devices": {
      "get": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/devices/{id}": {
      "delete": {
        "tags": [
          "File"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/devices/{id}/heartbeat": {
      "post": {
        "tags": [
          "File"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/folders": {
      "post": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/folders/{id}/status": {
      "get": {
        "tags": [
          "File"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/rules": {
      "get": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/rules/{id}": {
      "get": {
        "tags": [
          "File"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "File"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "File"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/rules/{id}/toggle": {
      "put": {
        "tags": [
          "File"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/backups/targets": {
      "get": {
        "tags": [
          "File"
        ],
        "description": " Request body: free-form JSON, read and validated field by field by the handler. No request schema is published because none is modelled - see the endpoint's own validation for the fields it requires.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "File"
        ],
        "description": " Request body: free-form JSON, read and validated field by field by the handler. No request schema is published because none is modelled - see the endpoint's own validation for the fields it requires.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/backups/targets/{id}": {
      "delete": {
        "tags": [
          "File"
        ],
        "description": " Request body: free-form JSON, read and validated field by field by the handler. No request schema is published because none is modelled - see the endpoint's own validation for the fields it requires.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/backups/snapshots": {
      "post": {
        "tags": [
          "File"
        ],
        "description": " Request body: free-form JSON, read and validated field by field by the handler. No request schema is published because none is modelled - see the endpoint's own validation for the fields it requires.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "File"
        ],
        "description": " Request body: free-form JSON, read and validated field by field by the handler. No request schema is published because none is modelled - see the endpoint's own validation for the fields it requires.",
        "parameters": [
          {
            "name": "product",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "orgSlug",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/backups/snapshots/batch": {
      "post": {
        "tags": [
          "File"
        ],
        "description": " Request body: free-form JSON, read and validated field by field by the handler. No request schema is published because none is modelled - see the endpoint's own validation for the fields it requires.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/backups/snapshots/latest": {
      "get": {
        "tags": [
          "File"
        ],
        "description": " Request body: free-form JSON, read and validated field by field by the handler. No request schema is published because none is modelled - see the endpoint's own validation for the fields it requires.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/backups/discover": {
      "post": {
        "tags": [
          "File"
        ],
        "description": " Request body: free-form JSON, read and validated field by field by the handler. No request schema is published because none is modelled - see the endpoint's own validation for the fields it requires.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/backups/scans": {
      "get": {
        "tags": [
          "File"
        ],
        "description": " Request body: free-form JSON, read and validated field by field by the handler. No request schema is published because none is modelled - see the endpoint's own validation for the fields it requires.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "File"
        ],
        "description": " Request body: free-form JSON, read and validated field by field by the handler. No request schema is published because none is modelled - see the endpoint's own validation for the fields it requires.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/backups/scans/{id}": {
      "put": {
        "tags": [
          "File"
        ],
        "description": " Request body: free-form JSON, read and validated field by field by the handler. No request schema is published because none is modelled - see the endpoint's own validation for the fields it requires.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "File"
        ],
        "description": " Request body: free-form JSON, read and validated field by field by the handler. No request schema is published because none is modelled - see the endpoint's own validation for the fields it requires.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/tenants/provision": {
      "post": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/tenants/activate": {
      "post": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/tenants/deactivate": {
      "post": {
        "tags": [
          "File"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/tenants/{orgSlug}": {
      "delete": {
        "tags": [
          "File"
        ],
        "parameters": [
          {
            "name": "orgSlug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "File"
    },
    {
      "name": "RelayEndpoints"
    }
  ]
}