curl -X POST https://api.example.com/api/ai/parse \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-CSRF-Token: YOUR_CSRF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"text": "05/03/2026 MERCADONA SUPERMERCADOS -85,50€\n04/03/2026 REPSOL GASOLINERA -60,00€\n01/03/2026 TRANSFERENCIA NOMINA +2.500,00€"
}'
{
"success": true,
"transactions": [
{
"date": "2026-03-05",
"description": "MERCADONA SUPERMERCADOS",
"amount": -85.50,
"category": "",
"subcategory": ""
},
{
"date": "2026-03-04",
"description": "REPSOL GASOLINERA",
"amount": -60.00,
"category": "",
"subcategory": ""
},
{
"date": "2026-03-01",
"description": "TRANSFERENCIA NOMINA",
"amount": 2500.00,
"category": "",
"subcategory": ""
}
],
"provider": "groq",
"responseTime": 845
}
Extract and parse financial transactions from unstructured text using AI
curl -X POST https://api.example.com/api/ai/parse \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-CSRF-Token: YOUR_CSRF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"text": "05/03/2026 MERCADONA SUPERMERCADOS -85,50€\n04/03/2026 REPSOL GASOLINERA -60,00€\n01/03/2026 TRANSFERENCIA NOMINA +2.500,00€"
}'
{
"success": true,
"transactions": [
{
"date": "2026-03-05",
"description": "MERCADONA SUPERMERCADOS",
"amount": -85.50,
"category": "",
"subcategory": ""
},
{
"date": "2026-03-04",
"description": "REPSOL GASOLINERA",
"amount": -60.00,
"category": "",
"subcategory": ""
},
{
"date": "2026-03-01",
"description": "TRANSFERENCIA NOMINA",
"amount": 2500.00,
"category": "",
"subcategory": ""
}
],
"provider": "groq",
"responseTime": 845
}
groq - Fast inference with Groqollama - Local AI (requires local installation)claude - Anthropic’s Claudegemini - Google’s Geminihuggingface - Hugging Face modelsShow Transaction object properties
http://localhost:11434)/api/ai/categorize call if used immediately after/api/ai/status for your current rate limit status and provider limitscurl -X POST https://api.example.com/api/ai/parse \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-CSRF-Token: YOUR_CSRF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"text": "05/03/2026 MERCADONA SUPERMERCADOS -85,50€\n04/03/2026 REPSOL GASOLINERA -60,00€\n01/03/2026 TRANSFERENCIA NOMINA +2.500,00€"
}'
{
"success": true,
"transactions": [
{
"date": "2026-03-05",
"description": "MERCADONA SUPERMERCADOS",
"amount": -85.50,
"category": "",
"subcategory": ""
},
{
"date": "2026-03-04",
"description": "REPSOL GASOLINERA",
"amount": -60.00,
"category": "",
"subcategory": ""
},
{
"date": "2026-03-01",
"description": "TRANSFERENCIA NOMINA",
"amount": 2500.00,
"category": "",
"subcategory": ""
}
],
"provider": "groq",
"responseTime": 845
}
| Status Code | Description |
|---|---|
| 200 | Success - transactions parsed |
| 400 | Bad request - missing text, invalid provider, or AI not available |
| 401 | Unauthorized - missing or invalid token |
| 403 | Forbidden - CSRF validation failed or security check blocked request |
| 429 | Too many requests - rate limit exceeded |
| 500 | Internal server error |
Fecha Concepto Importe
05/03/26 MERCADONA S.A. -45,30 EUR
05/03/26 SHELL GASOLINERA -55,00 EUR
04/03/26 AMAZON EU S.A.R.L -29,99 EUR
01/03/26 NOMINA EMPRESA XYZ +2.450,00 EUR
STARBUCKS CAFE
123 MAIN STREET
Date: March 5, 2026
Latte 4.50
Croissant 3.25
Total 7.75 EUR
Bought groceries at Walmart for $85.50 yesterday
Paid gym membership $50 on March 1st