---
updatedAt: 2026-08-04T02:58:23.000Z
agentTools:
  projectIndex: https://docs.aiprise.com/llms.txt
---

# Analyze Custom AML Data (Mesh Format), Its a BETA feature

Upload customer-provided AML data in Mesh format and trigger waterfall analysis.
This endpoint allows customers to submit their own ComplyAdvantage (Mesh) AML monitoring data
and optionally trigger automated analysis on the entities found.


# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "AiPrise APIs",
    "description": "AiPrise API documentation",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api-sandbox.aiprise.com/api/v1/",
      "description": "Sandbox server"
    },
    {
      "url": "https://api.aiprise.com/api/v1/",
      "description": "Production server"
    }
  ],
  "tags": [
    {
      "name": "AML Monitoring",
      "description": "AML monitoring and custom AML data analysis."
    }
  ],
  "paths": {
    "/verify/analyze_mesh_aml_data": {
      "post": {
        "tags": [
          "AML Monitoring"
        ],
        "summary": "Analyze Custom AML Data (Mesh Format), Its a BETA feature",
        "description": "Upload customer-provided AML data in Mesh format and trigger waterfall analysis.\nThis endpoint allows customers to submit their own ComplyAdvantage (Mesh) AML monitoring data\nand optionally trigger automated analysis on the entities found.\n",
        "requestBody": {
          "description": "Custom AML data request with entity information and mesh-formatted AML data",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomAMLRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomAMLResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid request format or data validation failed"
          },
          "403": {
            "description": "Forbidden - Template not associated with company or missing permissions"
          },
          "500": {
            "description": "Internal Server Error - Failed to process custom AML data"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AdditionalInfo": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/IndividualAdditionalInfo"
        },
        "description": "A list of additional information."
      },
      "IndividualAdditionalInfo": {
        "type": "object",
        "properties": {
          "additional_info_type": {
            "$ref": "#/components/schemas/AdditionalInfoType"
          },
          "additional_info_data": {
            "oneOf": [
              {
                "type": "string",
                "description": "The additional data as a string."
              },
              {
                "type": "object",
                "description": "The additional data as an object. For file-based types, may include file_data, file_uuid, and document_input_title.",
                "properties": {
                  "file_data": {
                    "type": "string",
                    "description": "The file content as base64 or S3 URL."
                  },
                  "file_uuid": {
                    "type": "string",
                    "description": "The unique identifier of the file."
                  },
                  "document_input_title": {
                    "type": "string",
                    "nullable": true,
                    "description": "An optional unique identifier for the document input, if provided during document check."
                  }
                }
              },
              {
                "type": "array",
                "description": "Accepted only for ADDRESS_PROOF_DOCUMENT, which may carry more than one file. Each entry declares one document; only `file` and `file_sub_type` are read.",
                "items": {
                  "type": "object",
                  "required": [
                    "file"
                  ],
                  "properties": {
                    "file": {
                      "type": "string",
                      "description": "The file content, base64-encoded."
                    },
                    "file_sub_type": {
                      "$ref": "#/components/schemas/AddressProofFileSubType"
                    }
                  }
                }
              },
              {
                "type": "array",
                "description": "Accepted only for KBA. Each entry is one answered knowledge-based-authentication question.",
                "items": {
                  "type": "object",
                  "required": [
                    "type",
                    "answer"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The question identifier."
                    },
                    "answer": {
                      "type": "string",
                      "description": "The submitted answer."
                    }
                  }
                }
              }
            ]
          }
        }
      },
      "CustomAMLRequest": {
        "type": "object",
        "required": [
          "entity_type",
          "entity_data",
          "template_id",
          "aml_data"
        ],
        "properties": {
          "entity_type": {
            "type": "string",
            "enum": [
              "person",
              "business"
            ],
            "description": "Type of entity being screened"
          },
          "entity_data": {
            "type": "object",
            "description": "Basic information about the person or business being screened",
            "properties": {
              "first_name": {
                "type": "string"
              },
              "last_name": {
                "type": "string"
              },
              "date_of_birth": {
                "type": "string",
                "format": "date"
              },
              "country_code": {
                "type": "string"
              },
              "business_name": {
                "type": "string"
              },
              "registration_number": {
                "type": "string"
              }
            },
            "additionalProperties": true
          },
          "aml_data": {
            "description": "AML screening data in Mesh format (ComplyAdvantage) - can be a single object or array of risk objects",
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "risks": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                },
                "additionalProperties": true
              },
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            ]
          },
          "template_id": {
            "type": "string",
            "description": "Verification template ID to use for analysis"
          },
          "search_metadata": {
            "type": "object",
            "description": "Optional metadata about the AML search",
            "additionalProperties": true
          },
          "customer_reference_id": {
            "type": "string",
            "description": "Customer's reference ID for this entity"
          },
          "trigger_analysis": {
            "type": "boolean",
            "default": true,
            "description": "Whether to trigger automated analysis on the AML hits"
          },
          "client_reference_id": {
            "type": "string",
            "description": "Client's reference ID for tracking"
          },
          "client_reference_data": {
            "type": "object",
            "description": "Additional client reference data",
            "additionalProperties": true
          },
          "additional_info": {
            "type": "array",
            "description": "Additional information items",
            "items": {
              "$ref": "#/components/schemas/AdditionalInfo"
            }
          },
          "verification_options": {
            "type": "object",
            "description": "Verification options",
            "additionalProperties": true
          },
          "callback_url": {
            "type": "string",
            "format": "uri",
            "description": "URL to receive verification completion callback"
          },
          "events_callback_url": {
            "type": "string",
            "format": "uri",
            "description": "URL to receive verification event callbacks"
          }
        }
      },
      "CustomAMLResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "success",
              "error"
            ]
          },
          "data": {
            "type": "object",
            "properties": {
              "verification_session_id": {
                "type": "string",
                "description": "ID of the created verification session"
              },
              "entity_hits_count": {
                "type": "integer",
                "description": "Number of AML entity hits found"
              },
              "analysis_tasks": {
                "type": "array",
                "description": "List of analysis task IDs that were scheduled",
                "items": {
                  "type": "string"
                }
              },
              "message": {
                "type": "string",
                "description": "Human-readable status message"
              }
            }
          }
        }
      },
      "AdditionalInfoType": {
        "type": "string",
        "description": "The type of additional information being submitted or returned for an individual. Business verification uses BusinessAdditionalInfoType instead.",
        "enum": [
          "KBA",
          "KENYA_KRA_PIN",
          "BANK_STATEMENT_DOCUMENT",
          "BUSINESS_REGISTRATION_DOCUMENT",
          "OPERATING_LICENSE_DOCUMENT",
          "SOURCE_OF_FUNDS_DOCUMENT",
          "VISA_DOCUMENT",
          "US_AAMVA",
          "AADHAAR_DOCUMENT_FRONT",
          "AADHAAR_DOCUMENT_BACK",
          "USER_SELFIE",
          "GENDER",
          "SEON_SESSION_PAYLOAD",
          "ADDRESS_PROOF_DOCUMENT",
          "NIGERIA_BVN_NUMBER",
          "TAX_IDENTIFICATION_NUMBER",
          "PREVIOUS_VERIFICATION_SESSION_ID",
          "FRAUD_CHECK_DOCUMENT",
          "OPERATION_CARD",
          "TRANSPORTATION_PERMIT",
          "VEHICLE_OWNERSHIP_CARD",
          "TAX_CERTIFICATE",
          "OTHER"
        ]
      },
      "AddressProofFileSubType": {
        "type": "string",
        "description": "The document type the user declared when uploading an address proof. When it is set to a specific type and the classified poa_document_category disagrees, a DOCUMENT_TYPE_MISMATCH warning is raised. ADDRESS_DOCUMENT_OTHERS, RESIDENTIAL_DOCUMENT, LEGAL_DOCUMENT and EMPLOYMENT_EDUCATION_DOCUMENT accept any category, so they do not trigger that check.",
        "enum": [
          "NATIONAL_ID_FRONT",
          "NATIONAL_ID_BACK",
          "UTILITY_SERVICE_BILLS",
          "FINANCIAL_STATEMENTS",
          "GOVERNMENT_CORRESPONDENCE",
          "RESIDENTIAL_DOCUMENT",
          "EMPLOYMENT_EDUCATION_DOCUMENT",
          "LEGAL_DOCUMENT",
          "ADDRESS_DOCUMENT_OTHERS"
        ]
      }
    },
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY",
        "description": "All requests must include the `X-API-KEY` header containing your API Key."
      }
    }
  },
  "security": [
    {
      "apiKey": []
    }
  ]
}
```