{
  "schemaVersion": "2026.11",
  "publisher": "Zetaleap Power Platform Cloud APIs (https://zetaleap.com)",
  "templateSlug": "sftp-ssh-private-key-erp-nightly-sync",
  "displayName": "SFTP SSH Private Key (PEM) Nightly ERP & Logistics File Sync Without 504 Timeouts",
  "category": "SFTP & Storage",
  "estimatedSetupMinutes": 5,
  "quickstart": {
    "step1_getFreeApiKey": "https://zetaleap.com/login",
    "step2_generateBearerToken": "https://zetaleap.com/profile",
    "step3_optionalCustomConnectorSwagger": "https://zetaleap.com/connectors",
    "step4_pasteHttpActionInPowerAutomate": "Open make.powerautomate.com -> Add an action -> HTTP (or import Zetaleap Custom Connector) -> Paste definition.actions.Zetaleap_Cloud_Action below."
  },
  "definition": {
    "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
    "contentVersion": "1.0.0.0",
    "triggers": {
      "When_Business_Event_Occurs": {
        "type": "Metadata",
        "description": "Scheduled Cloud Flow (Every 15 Minutes or Nightly Batch)"
      }
    },
    "actions": {
      "Zetaleap_Cloud_Action": {
        "type": "Http",
        "inputs": {
          "method": "GET",
          "uri": "https://zetaleap.com/api/sftp/files?path=/outbound",
          "headers": {
            "Authorization": "Bearer zl_YOUR_API_KEY"
          }
        }
      }
    },
    "expectedDynamicOutputs": [
      "success",
      "files[].name",
      "files[].size",
      "files[].modify_time"
    ]
  }
}