{
  "opencollection": "1.0.0",
  "info": {
    "name": "Microsoft Power Platform REST Applications Flow Runs API",
    "version": "2022-03-01-preview"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Flow Runs",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Flow Runs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.powerplatform.com/powerautomate/environments/:environmentId/flowRuns",
            "params": [
              {
                "name": "environmentId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the environment."
              },
              {
                "name": "workflowId",
                "value": "",
                "type": "query",
                "description": "The workflow ID to retrieve flow runs for."
              },
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "The API version to use for this request."
              }
            ]
          },
          "docs": "Retrieves flow runs by workflow ID for a specific Power Platform environment. Returns a list of flow run records including their status, start time, end time, and trigger information. The environment must have a Microsoft Dataverse database."
        }
      ]
    }
  ],
  "bundled": true
}