{
  "opencollection": "1.0.0",
  "info": {
    "name": "Restack Agents Workflows API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Workflows",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Schedule Workflow",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://localhost:6233/api/workflows/:workflowName",
            "params": [
              {
                "name": "workflowName",
                "value": "",
                "type": "path",
                "description": "The name of the workflow to schedule."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Schedule a workflow by name. The workflow will be executed asynchronously and the request will return immediately with a run ID. Long-running workflows persist state across days, months, or years."
        },
        {
          "info": {
            "name": "Get Workflow Run",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:6233/api/workflows/:workflowName/:runId",
            "params": [
              {
                "name": "workflowName",
                "value": "",
                "type": "path"
              },
              {
                "name": "runId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve the status and result of a specific workflow run by run ID."
        }
      ]
    }
  ],
  "bundled": true
}