Recupera i risultati di un batch di messaggi
GET/v1/messages/batches/{message_batch_id}/results
Trasmette in streaming i risultati di un batch di messaggi come file .jsonl.
Ogni riga del file è un oggetto JSON contenente il risultato di una singola richiesta nel batch di messaggi. Non è garantito che i risultati siano nello stesso ordine delle richieste. Usa il campo custom_id per associare i risultati alle richieste.
Scopri di più sull'API Message Batches nella nostra guida per l'utente
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.
Recupera i risultati di un batch di messaggi
curl https://api.anthropic.com/v1/messages/batches/$MESSAGE_BATCH_ID/results \
-H 'anthropic-version: 2026-10-21' \
-H "Authorization: Bearer $ANTHROPIC_API_KEY"