{
  "opencollection": "1.0.0",
  "info": {
    "name": "APIContext Workflows API",
    "version": "v2026-09-02"
  },
  "items": [
    {
      "info": {
        "name": "Workflows",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get-Workflow-Locations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://client.apimetrics.io/api/3/workflows/:workflow_id/locations",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "workflow_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get-Workflow-Locations"
        },
        {
          "info": {
            "name": "Run-Workflow",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://client.apimetrics.io/api/3/workflows/:workflow_id/run",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "workflow_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Run-Workflow"
        },
        {
          "info": {
            "name": "List-Workflows-By-Call",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://client.apimetrics.io/api/2/workflows/call/:call_id/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "call_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List workflows that reference a specific API call."
        },
        {
          "info": {
            "name": "List-Workflows",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://client.apimetrics.io/api/2/workflows/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List all workflows for the authenticated project."
        },
        {
          "info": {
            "name": "Create-Workflow",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://client.apimetrics.io/api/2/workflows/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create a new workflow."
        },
        {
          "info": {
            "name": "Get-Workflow-Result",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://client.apimetrics.io/api/2/workflows/results/:result_key_str/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "result_key_str",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get a single workflow result."
        },
        {
          "info": {
            "name": "List-Workflow-Results-By-Workflow",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://client.apimetrics.io/api/2/workflows/:workflow_id/results/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "workflow_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "time",
                "value": "",
                "type": "query"
              },
              {
                "name": "from",
                "value": "",
                "type": "query"
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List results for a workflow within the ``?from``/``?time`` date window."
        },
        {
          "info": {
            "name": "Get-Workflow",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://client.apimetrics.io/api/2/workflows/:workflow_id/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "workflow_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get a single workflow by id."
        },
        {
          "info": {
            "name": "Update-Workflow",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://client.apimetrics.io/api/2/workflows/:workflow_id/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "workflow_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Partially update a workflow (only supplied fields change)."
        },
        {
          "info": {
            "name": "Delete-Workflow",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://client.apimetrics.io/api/2/workflows/:workflow_id/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "workflow_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Delete a workflow and return its last representation."
        },
        {
          "info": {
            "name": "Run-Workflow-V2",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://client.apimetrics.io/api/2/workflows/:workflow_key_str/run",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "workflow_key_str",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Trigger an on-demand run of a workflow."
        }
      ]
    }
  ],
  "bundled": true
}