Decision Simulation Run API

Run AI decision simulations for risk analysis and model validation under custom scenarios.

Endpoint

POST /api/decision/run
                

Execute a decision simulation based on provided scenario parameters.

Authentication

Bearer JWT in Authorization header
Get authentication token

Request Parameters

Required Parameters

environment
String - 'development' or 'production'
parameters
Object - Decision variables and weights

Optional Parameters

analysis_depth
Integer - Depth level (default: 3)
return_format
String - 'json' or 'binary' (default: 'json')

Example Request

POST /api/decision/run HTTP/1.1
Authorization: Bearer YOUR_JWT_TOKEN
Content-Type: application/json

{
  "environment": "development",
  "parameters": {
    "risk_profile": "moderate",
    "user_age": 34,
    "credit_score": 789
  },
  "analysis_depth": 5
}
                

Authorization:

Replace YOUR_JWT_TOKEN with your active authentication token obtained from /auth/token.

Response Format

{
  "status": "success",
  "result_id": "res_5j21nk7q9p0lgs4392l4",
  "output": {
    "decision_path": ["Step1", "Step2", "Final"],
    "confidence": 0.927,
    "risk_assessment": "moderate"
  },
  "logs": [
    {
      "level": "info",
      "timestamp": "2025-08-25T18:30:45Z",
      "message": "Run completed successfully."
    }
  ]
}
                

Usage Notes

  • Parameters must be under 10KB in size
  • Rate limits: 100 requests/minute
  • Results are cached for 48 hours by environment

Need more help with API?

Our support team can help you design complex decision scenarios and interpret simulation results.

Contact Team