curl --request POST \
--url https://api.example.com/api/data/upload \
--header 'Content-Type: application/json' \
--data '{}'{
"upload_id": "<string>",
"row_count": 123,
"headers": [
{}
],
"sample_rows": [
{}
],
"detected_dataset": "<string>",
"suggested_mapping": {},
"mapping_confidence": {},
"temporal_scale": 123,
"clarification_questions": [
{}
],
"metadata": {},
"error": "<string>",
"message": "<string>",
"details": [
{}
]
}Upload a CSV file for schema detection and automatic column mapping
curl --request POST \
--url https://api.example.com/api/data/upload \
--header 'Content-Type: application/json' \
--data '{}'{
"upload_id": "<string>",
"row_count": 123,
"headers": [
{}
],
"sample_rows": [
{}
],
"detected_dataset": "<string>",
"suggested_mapping": {},
"mapping_confidence": {},
"temporal_scale": 123,
"clarification_questions": [
{}
],
"metadata": {},
"error": "<string>",
"message": "<string>",
"details": [
{}
]
}This endpoint handles CSV file uploads, parses the data, detects the dataset type, and suggests column mappings to standard fields. It supports automatic detection for IBM AML, PaySim, and generic compliance datasets.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Basit-Ali0/Yggdrasil/llms.txt
Use this file to discover all available pages before exploring further.
multipart/form-data
curl -X POST https://your-domain.com/api/data/upload \
-F "file=@transactions.csv"
IBM_AML - IBM AML transaction datasetPAYSIM - PaySim financial simulation datasetGENERIC - Generic compliance datasetaccount - Primary entity identifier (sender, account_id, user_id)recipient - Secondary entity identifier (receiver, destination)amount - Monetary value or transaction amountstep - Timestamp or time-step columntype - Category or classification columnsuggested_mapping keys.24.0 - IBM AML (converts days to hours)1.0 - PaySim and Generic (already in hours)totalRows - Total row countcolumnStats - Per-column statistics (type, cardinality, min/max/mean for numeric columns){
"upload_id": "a3f12b45-8c7d-4e9f-b1a2-3c4d5e6f7g8h",
"row_count": 1250,
"headers": ["orig_acct", "bene_acct", "base_amt", "tran_timestamp", "tx_type"],
"sample_rows": [
{
"orig_acct": "ACCT_001",
"bene_acct": "ACCT_245",
"base_amt": 5000.00,
"tran_timestamp": 1609459200,
"tx_type": "WIRE"
},
{
"orig_acct": "ACCT_002",
"bene_acct": "ACCT_356",
"base_amt": 12500.50,
"tran_timestamp": 1609545600,
"tx_type": "ACH"
}
],
"detected_dataset": "IBM_AML",
"suggested_mapping": {
"account": "orig_acct",
"recipient": "bene_acct",
"amount": "base_amt",
"step": "tran_timestamp",
"type": "tx_type"
},
"mapping_confidence": {
"account": 100,
"recipient": 100,
"amount": 100,
"step": 100,
"type": 100
},
"temporal_scale": 24.0,
"clarification_questions": [],
"metadata": {
"totalRows": 1250,
"columnStats": {
"base_amt": {
"type": "numeric",
"cardinality": 892,
"min": 100.00,
"max": 50000.00,
"mean": 8547.32
},
"tx_type": {
"type": "categorical",
"cardinality": 4
}
}
}
}
VALIDATION_ERROR - No file provided or CSV parsing failedINTERNAL_ERROR - Unexpected server error{
"error": "VALIDATION_ERROR",
"message": "Failed to parse CSV",
"details": [
{
"type": "Delimiter",
"code": "UndetectableDelimiter",
"message": "Unable to auto-detect delimiter",
"row": 0
}
]
}
orig_acctbene_acctbase_amttran_timestamptx_typenameOrignameDeststepisFraud