{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-invoke-flow-request-schema.json",
  "title": "InvokeFlowRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-aliases-api-openapi.yml#/components/schemas/InvokeFlowRequest",
  "type": "object",
  "properties": {
    "flowIdentifier": {
      "type": "string",
      "description": "The unique identifier of the flow."
    },
    "flowAliasIdentifier": {
      "type": "string",
      "description": "The unique identifier of the flow alias."
    },
    "inputs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FlowInput"
      },
      "description": "A list of objects, each containing information about an input into the flow."
    },
    "enableTrace": {
      "type": "boolean",
      "description": "Specifies whether to return the trace for the flow or not. Traces track inputs and outputs for nodes in the flow. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock."
    },
    "modelPerformanceConfiguration": {
      "$ref": "#/$defs/ModelPerformanceConfiguration"
    },
    "executionId": {
      "type": "string",
      "description": "The unique identifier for the current flow execution. If you don't provide a value, Amazon Bedrock creates the identifier for you."
    }
  },
  "required": [
    "flowIdentifier",
    "flowAliasIdentifier",
    "inputs"
  ],
  "$defs": {
    "BedrockAgentRuntimePerformanceConfiguration": {
      "type": "object",
      "properties": {
        "latency": {
          "type": "string",
          "enum": [
            "standard",
            "optimized"
          ],
          "description": "To use a latency-optimized version of the model, set to optimized."
        }
      }
    },
    "FlowInput": {
      "type": "object",
      "properties": {
        "nodeName": {
          "type": "string",
          "description": "The name of the flow input node that begins the prompt flow."
        },
        "nodeOutputName": {
          "type": "string",
          "description": "The name of the output from the flow input node that begins the prompt flow."
        },
        "content": {
          "$ref": "#/$defs/FlowInputContent"
        },
        "nodeInputName": {
          "type": "string",
          "description": "The name of the input from the flow input node."
        }
      },
      "required": [
        "nodeName",
        "content"
      ]
    },
    "FlowInputContent": {
      "type": "object",
      "properties": {
        "document": {
          "type": "object",
          "description": "The input to send to the prompt flow input node."
        }
      },
      "description": "Exactly one member is set."
    },
    "ModelPerformanceConfiguration": {
      "type": "object",
      "properties": {
        "performanceConfig": {
          "$ref": "#/$defs/BedrockAgentRuntimePerformanceConfiguration"
        }
      }
    }
  }
}