{
  "openapi": "3.0.3",
  "info": {
    "title": "Regence Agent Evaluation API",
    "version": "0.1",
    "description": "Synthetic, authenticated evaluation only. Model-directed credit and payment preprocessing with official Mojaloop TTK peer. No live bank data, FX conversion, settlement or compliance certification. Session issued by the application login UI; institutional SSO not configured."
  },
  "servers": [
    {
      "url": "https://app.regenceai.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "evaluationSession": {
        "type": "apiKey",
        "in": "cookie",
        "name": "app_session"
      }
    }
  },
  "paths": {
    "/api/config": {
      "get": {
        "summary": "Synthetic evaluation configuration",
        "responses": {
          "200": {
            "description": "Successful evaluation response"
          },
          "401": {
            "description": "Evaluation login required"
          },
          "403": {
            "description": "Origin or scope denied"
          }
        },
        "security": [
          {
            "evaluationSession": []
          }
        ]
      }
    },
    "/api/cases": {
      "get": {
        "summary": "List records in the current login session",
        "responses": {
          "200": {
            "description": "Successful evaluation response"
          },
          "401": {
            "description": "Evaluation login required"
          },
          "403": {
            "description": "Origin or scope denied"
          }
        },
        "security": [
          {
            "evaluationSession": []
          }
        ]
      },
      "post": {
        "summary": "Start a bounded model-directed evaluation",
        "responses": {
          "200": {
            "description": "Successful evaluation response"
          },
          "401": {
            "description": "Evaluation login required"
          },
          "403": {
            "description": "Origin or scope denied"
          },
          "202": {
            "description": "Run accepted; poll its record for actual progress"
          }
        },
        "security": [
          {
            "evaluationSession": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "https://app.regenceai.com"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "question",
                  "provider",
                  "workflow"
                ],
                "properties": {
                  "question": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 1200
                  },
                  "provider": {
                    "type": "string",
                    "enum": [
                      "vertex",
                      "qwen"
                    ]
                  },
                  "workflow": {
                    "type": "string",
                    "enum": [
                      "credit",
                      "domestic",
                      "crossborder",
                      "crossborder_exception"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/cases/{id}": {
      "get": {
        "summary": "Read advisory brief, evidence and execution trace",
        "responses": {
          "200": {
            "description": "Successful evaluation response"
          },
          "401": {
            "description": "Evaluation login required"
          },
          "403": {
            "description": "Origin or scope denied"
          }
        },
        "security": [
          {
            "evaluationSession": []
          }
        ]
      },
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ]
    },
    "/api/simulator/flexcube/customer": {
      "get": {
        "summary": "Execute scoped synthetic FLEXCUBE inquiries",
        "responses": {
          "200": {
            "description": "Successful evaluation response"
          },
          "401": {
            "description": "Evaluation login required"
          },
          "403": {
            "description": "Origin or scope denied"
          }
        },
        "security": [
          {
            "evaluationSession": []
          }
        ]
      }
    },
    "/api/simulator/finacle/payment": {
      "get": {
        "summary": "Read compatible Finacle simulation records",
        "responses": {
          "200": {
            "description": "Successful evaluation response"
          },
          "401": {
            "description": "Evaluation login required"
          },
          "403": {
            "description": "Origin or scope denied"
          }
        },
        "security": [
          {
            "evaluationSession": []
          }
        ]
      }
    },
    "/api/simulator/mojaloop/status": {
      "get": {
        "summary": "Probe the official toolkit API listener",
        "responses": {
          "200": {
            "description": "Successful evaluation response"
          },
          "401": {
            "description": "Evaluation login required"
          },
          "403": {
            "description": "Origin or scope denied"
          }
        },
        "security": [
          {
            "evaluationSession": []
          }
        ]
      }
    },
    "/api/cases/{id}/review": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "post": {
        "summary": "Record human disposition; not credit or payment approval",
        "responses": {
          "200": {
            "description": "Successful evaluation response"
          },
          "401": {
            "description": "Evaluation login required"
          },
          "403": {
            "description": "Origin or scope denied"
          },
          "409": {
            "description": "Review state or deterministic controls do not permit this action"
          }
        },
        "security": [
          {
            "evaluationSession": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "https://app.regenceai.com"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "outcome",
                  "note"
                ],
                "properties": {
                  "outcome": {
                    "type": "string",
                    "enum": [
                      "BRIEF_ACCEPTED",
                      "RETURNED",
                      "ESCALATED"
                    ]
                  },
                  "note": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 2000
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/cases/{id}/test-transfer": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "post": {
        "summary": "Execute an eligible test transfer after accepted payment review; no real funds",
        "responses": {
          "200": {
            "description": "Successful evaluation response"
          },
          "401": {
            "description": "Evaluation login required"
          },
          "403": {
            "description": "Origin or scope denied"
          },
          "409": {
            "description": "Review state or deterministic controls do not permit this action"
          }
        },
        "security": [
          {
            "evaluationSession": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "https://app.regenceai.com"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/simulator/finacle/v1/payments/{paymentId}": {
      "parameters": [
        {
          "name": "paymentId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "DEMO-P001",
              "DEMO-P002"
            ]
          }
        }
      ],
      "get": {
        "summary": "Synthetic Finacle integration payment details",
        "responses": {
          "200": {
            "description": "Successful evaluation response"
          },
          "401": {
            "description": "Evaluation login required"
          },
          "403": {
            "description": "Origin or scope denied"
          }
        },
        "security": [
          {
            "evaluationSession": []
          }
        ]
      }
    },
    "/api/simulator/finacle/v1/payments/{paymentId}/status": {
      "parameters": [
        {
          "name": "paymentId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "DEMO-P001",
              "DEMO-P002"
            ]
          }
        }
      ],
      "get": {
        "summary": "Synthetic Finacle integration payment status",
        "responses": {
          "200": {
            "description": "Successful evaluation response"
          },
          "401": {
            "description": "Evaluation login required"
          },
          "403": {
            "description": "Origin or scope denied"
          }
        },
        "security": [
          {
            "evaluationSession": []
          }
        ]
      }
    },
    "/api/simulator/finacle/v1/payments/{paymentId}/events": {
      "parameters": [
        {
          "name": "paymentId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "DEMO-P001",
              "DEMO-P002"
            ]
          }
        }
      ],
      "get": {
        "summary": "Synthetic Finacle integration payment events",
        "responses": {
          "200": {
            "description": "Successful evaluation response"
          },
          "401": {
            "description": "Evaluation login required"
          },
          "403": {
            "description": "Origin or scope denied"
          }
        },
        "security": [
          {
            "evaluationSession": []
          }
        ]
      }
    }
  }
}