Ambil hasil Message Batch
GET/v1/messages/batches/{message_batch_id}/results
Melakukan streaming hasil Message Batch sebagai file .jsonl.
Setiap baris dalam file adalah objek JSON yang berisi hasil dari satu permintaan dalam Message Batch. Hasil tidak dijamin berada dalam urutan yang sama dengan permintaan. Gunakan field custom_id untuk mencocokkan hasil dengan permintaan.
Pelajari lebih lanjut tentang Message Batches API di panduan pengguna kami
Path parameters
Headers
Returns
Errors
Any method can also return the general HTTP errors.
Each code below is the value of error.details.error_code in the response body.
Ambil hasil Message Batch
curl https://api.anthropic.com/v1/messages/batches/$MESSAGE_BATCH_ID/results \
-H 'anthropic-version: 2026-10-21' \
-H "Authorization: Bearer $ANTHROPIC_API_KEY"