{
  "opencollection": "1.0.0",
  "info": {
    "name": "Salesforce Flow REST Flow Definitions API",
    "version": "59.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://login.salesforce.com/services/oauth2/authorize",
      "accessTokenUrl": "https://login.salesforce.com/services/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Flow Definitions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Flow Definitions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v59.0/sobjects/Flow",
            "params": [
              {
                "name": "q",
                "value": "",
                "type": "query",
                "description": "SOQL query string to filter flows"
              }
            ]
          },
          "docs": "Retrieves a list of Flow definitions available in the Salesforce org, including metadata such as API name, label, type, and status."
        },
        {
          "info": {
            "name": "Get Flow Definition",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v59.0/sobjects/Flow/:flowId",
            "params": [
              {
                "name": "flowId",
                "value": "",
                "type": "path",
                "description": "The unique Salesforce ID of the Flow record"
              }
            ]
          },
          "docs": "Retrieves details about a specific Flow definition including its metadata, version, and associated interview settings."
        },
        {
          "info": {
            "name": "Update Flow Definition",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{instance}.salesforce.com/services/data/v59.0/sobjects/Flow/:flowId",
            "params": [
              {
                "name": "flowId",
                "value": "",
                "type": "path",
                "description": "The unique Salesforce ID of the Flow record"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates metadata fields on an existing Flow definition, such as its active status or description."
        },
        {
          "info": {
            "name": "Query Flows with SOQL",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v59.0/query",
            "params": [
              {
                "name": "q",
                "value": "",
                "type": "query",
                "description": "SOQL query string (e.g. SELECT Id, ApiName, Status FROM Flow)"
              }
            ]
          },
          "docs": "Executes a SOQL query to retrieve Flow and FlowInterview records with custom filtering, ordering, and field selection."
        }
      ]
    }
  ],
  "bundled": true
}