POST POST /evaluation-sets/{eval_set_id}/items
Headers: x-api-key, Content-Type: application/json
Body:
{
"file_id": "file_123",
"ground_truth": { "invoice_total": 582.33, "currency": "EUR" }
}cURL
curl -X POST https://api.algorythmos.fr/evaluation-sets/es_92F/items \
-H "x-api-key: $ALG_KEY" \
-H "Content-Type: application/json" \
-d '{"file_id":"file_123","ground_truth":{"invoice_total":582.33,"currency":"EUR"}}'JavaScript
await fetch('https://api.algorythmos.fr/evaluation-sets/es_92F/items', {
method: 'POST',
headers: { 'x-api-key': process.env.ALG_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
file_id: 'file_123',
ground_truth: { invoice_total: 582.33, currency: 'EUR' }
})
})Python
import requests, os
requests.post(
'https://api.algorythmos.fr/evaluation-sets/es_92F/items',
headers={'x-api-key': os.environ['ALG_KEY']},
json={'file_id': 'file_123', 'ground_truth': {'invoice_total': 582.33, 'currency': 'EUR'}}
)