curl -X POST https://api.example.com/api/ai/categorize \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-CSRF-Token: YOUR_CSRF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"transactions": [
{
"description": "MERCADONA SUPERMERCADOS",
"date": "2026-03-05",
"amount": -85.50
},
{
"description": "REPSOL GASOLINERA",
"date": "2026-03-04",
"amount": -60.00
},
{
"description": "TRANSFERENCIA NOMINA",
"date": "2026-03-01",
"amount": 2500.00
}
]
}'
{
"success": true,
"categories": [
{
"category": "alimentacion",
"subcategory": "supermercados"
},
{
"category": "transporte",
"subcategory": "gasolina"
},
{
"category": "ingresos",
"subcategory": "nomina"
}
],
"responseTime": 1250
}
Automatically categorize financial transactions using AI
curl -X POST https://api.example.com/api/ai/categorize \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-CSRF-Token: YOUR_CSRF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"transactions": [
{
"description": "MERCADONA SUPERMERCADOS",
"date": "2026-03-05",
"amount": -85.50
},
{
"description": "REPSOL GASOLINERA",
"date": "2026-03-04",
"amount": -60.00
},
{
"description": "TRANSFERENCIA NOMINA",
"date": "2026-03-01",
"amount": 2500.00
}
]
}'
{
"success": true,
"categories": [
{
"category": "alimentacion",
"subcategory": "supermercados"
},
{
"category": "transporte",
"subcategory": "gasolina"
},
{
"category": "ingresos",
"subcategory": "nomina"
}
],
"responseTime": 1250
}
Show Transaction object properties
/api/ai/parse/api/ai/status for your current rate limit statuscurl -X POST https://api.example.com/api/ai/categorize \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-CSRF-Token: YOUR_CSRF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"transactions": [
{
"description": "MERCADONA SUPERMERCADOS",
"date": "2026-03-05",
"amount": -85.50
},
{
"description": "REPSOL GASOLINERA",
"date": "2026-03-04",
"amount": -60.00
},
{
"description": "TRANSFERENCIA NOMINA",
"date": "2026-03-01",
"amount": 2500.00
}
]
}'
{
"success": true,
"categories": [
{
"category": "alimentacion",
"subcategory": "supermercados"
},
{
"category": "transporte",
"subcategory": "gasolina"
},
{
"category": "ingresos",
"subcategory": "nomina"
}
],
"responseTime": 1250
}
| Status Code | Description |
|---|---|
| 200 | Success - transactions categorized |
| 400 | Bad request - invalid input or AI not available |
| 401 | Unauthorized - missing or invalid token |
| 403 | Forbidden - CSRF validation failed or security block |
| 429 | Too many requests - rate limit exceeded |
| 500 | Internal server error |