{
  "slug": "stripe-workflows-api-supports-programmatic-invocation-and-run-monitoring-425db1b5d033",
  "title": "Stripe Workflows API supports programmatic invocation and run monitoring",
  "tools": [
    "stripe"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-22T00:00:00.000Z",
  "announced_at": "2026-04-22T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "For a Dashboard-created Workflow with an on-demand trigger, call the v2 API to list or retrieve it and invoke it with `input_parameters`; monitor runs by listing or retrieving runs and subscribing to their lifecycle events.",
    "examples": [
      "curl 'https://api.stripe.com/v2/extend/workflows' -H 'Authorization: Bearer <YOUR_SECRET_KEY>' -H 'Stripe-Version: 2026-04-22.preview'",
      "curl -X POST 'https://api.stripe.com/v2/extend/workflows/<WORKFLOW_ID>/invoke' -H 'Authorization: Bearer <YOUR_SECRET_KEY>' -H 'Stripe-Version: 2026-04-22.preview' --json '{\"input_parameters\":{\"<PARAMETER_NAME>\":\"<VALUE>\"}}'",
      "curl 'https://api.stripe.com/v2/extend/workflow_runs' -H 'Authorization: Bearer <YOUR_SECRET_KEY>' -H 'Stripe-Version: 2026-04-22.preview'"
    ],
    "gotchas": [
      "Availability: The linked API references use API version 2026-04-22.preview.",
      "Authorization: Bearer <YOUR_SECRET_KEY> (required): Authenticates the API request with your Stripe secret key.",
      "Stripe-Version: 2026-04-22.preview (required): Sets the API version used in the documented request.",
      "<WORKFLOW_ID> (required): Workflow ID in the retrieve or invoke URL.",
      "input_parameters (required): Map of parameters used to invoke the Workflow Run.",
      "limit: Maximum page size for listing Workflows or Workflow Runs.",
      "page: Current page token for list requests.",
      "status: List filter: Workflow status values are active, archived, draft, inactive; Run status values are failed, started, succeeded. Values are not documented as mutually exclusive.",
      "workflow: List filter for Workflow Runs associated with specified Workflow IDs.",
      "Prerequisite: Workflows to invoke must have an on-demand trigger; the API reports `workflow_not_invokable` otherwise.",
      "Prerequisite: The invoke reference lists creating a customer first as a prerequisite for its example request.",
      "Prerequisite: Workflow run event payloads are unversioned; during processing, fetch the versioned event from the API or fetch the resource’s current state.",
      "The workflows are created through the Dashboard."
    ]
  },
  "why_it_matters": "Integrate Dashboard-created Stripe Workflows into application logic and monitor their runs.",
  "before": "Workflows could only be triggered by Stripe events.",
  "sources": [
    "https://docs.stripe.com/changelog/dahlia/2026-04-22/adds-workflows-api-with-programmatic-invocation",
    "https://docs.stripe.com/api/v2/extend/workflows/list?api-version=2026-04-22.preview",
    "https://docs.stripe.com/api/v2/extend/workflow-runs/invoke-workflow?api-version=2026-04-22.preview",
    "https://docs.stripe.com/api/v2/extend/workflow-runs/list?api-version=2026-04-22.preview",
    "https://docs.stripe.com/api/v2/extend/workflows/retrieve?api-version=2026-04-22.preview",
    "https://docs.stripe.com/api/v2/extend/workflow-runs/event-types?api-version=2026-04-22.preview"
  ],
  "rank": 0.9504,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-tools-20261017",
    "verdict_id": "wave1b-tools-20261017:wave1b-tools-20261017-ffc44669e851d06a-0:gate",
    "evidence_hash": "9270f9351963bdfde53671321b6ae134d94f44afe525ab804e913f8129fe6ea9"
  },
  "review": {
    "draft_hash": "4ab2dc1fa71789b07e174edf3106944a088cb37181ce80dd980977f18252e120",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-tools-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.95 >= 0.9; 2 needed) and Jev gave 0.76 (>= 0.6 needed)."
  }
}
