> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gu1.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Risk Matrix

> Create a new risk matrix with triggers — using the gu1 risk scoring engine with configurable triggers, with examples for create use cases.

## Overview

Creates a new risk matrix with scoring configuration and optional triggers.

## Request Body

<ParamField body="name" type="string" required>
  Risk matrix name
</ParamField>

<ParamField body="description" type="string">
  Risk matrix description
</ParamField>

<ParamField body="category" type="string" default="custom">
  Category: aml, kyc, fraud, sanctions, transaction\_monitoring, customer\_risk, regulatory, custom
</ParamField>

<ParamField body="status" type="string" default="draft">
  Status: draft, active, shadow, inactive
</ParamField>

<ParamField body="scoringConfig" type="object">
  Scoring configuration with thresholds
</ParamField>

<ParamField body="triggers" type="array">
  Array of trigger configurations
</ParamField>

<ParamField body="tags" type="array">
  Array of tags for organization
</ParamField>

## Trigger Configuration

Each trigger can have:

```json theme={null}
{
  "name": "High Risk Trigger",
  "description": "Create investigation when risk is high",
  "condition": {
    "field": "riskScore",
    "operator": "gte",
    "value": 80
  },
  "action": "create_investigation",
  "priority": "HIGH"
}
```

## Example

```bash theme={null}
curl -X POST http://api.gu1.ai/risk-matrices \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Transaction Monitoring Matrix",
    "description": "Monitor high-risk transactions",
    "category": "transaction_monitoring",
    "status": "active",
    "scoringConfig": {
      "minScore": 0,
      "maxScore": 100,
      "thresholds": {
        "low": 30,
        "medium": 60,
        "high": 80
      }
    },
    "triggers": [
      {
        "name": "Critical Risk Trigger",
        "description": "Auto-create investigation for critical risk",
        "condition": {
          "field": "riskScore",
          "operator": "gte",
          "value": 90
        },
        "action": "create_investigation",
        "priority": "CRITICAL"
      },
      {
        "name": "Medium Risk Alert",
        "description": "Create alert for medium risk",
        "condition": {
          "field": "riskScore",
          "operator": "between",
          "value": [60, 89]
        },
        "action": "create_alert",
        "priority": "MEDIUM"
      }
    ],
    "tags": ["transaction", "aml"]
  }'
```

## Response

```json theme={null}
{
  "riskMatrix": {
    "id": "rm-new-123",
    "name": "Transaction Monitoring Matrix",
    "status": "active",
    "triggers": [/* ... */]
  },
  "usingDefaultStrategy": false
}
```

## Trigger Actions

* **create\_alert**: Create an alert
* **create\_investigation**: Create an investigation
* **send\_notification**: Send notification to team
* **block\_entity**: Block entity from processing
* **request\_approval**: Request manual approval
* **escalate**: Escalate to supervisor

## See Also

* [Update Risk Matrix](/en/api-reference/risk-matrix/update)
* [Create Rule](/en/api-reference/rules/create)
