GET
/
v1
/
messages
/
batches
/
{message_batch_id}
/
results
curl https://api.anthropic.com/v1/messages/batches/msgbatch_01HkcTjaV5uDC8jWR4ZsDV8d/results \
     --header "x-api-key: $ANTHROPIC_API_KEY" \
     --header "anthropic-version: 2023-06-01" \
{"custom_id":"my-second-request","result":{"type":"succeeded","message":{"id":"msg_014VwiXbi91y3JMjcpyGBHX5","type":"message","role":"assistant","model":"claude-3-5-sonnet-20240620","content":[{"type":"text","text":"안녕하세요! 다시 만나서 반갑습니다. 오늘 어떤 도움을 드릴 수 있을까요? 특별히 이야기하고 싶은 주제나 질문이 있으신가요?"}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":11,"output_tokens":36}}}}
{"custom_id":"my-first-request","result":{"type":"succeeded","message":{"id":"msg_01FqfsLoHwgeFbguDgpz48m7","type":"message","role":"assistant","model":"claude-3-5-sonnet-20240620","content":[{"type":"text","text":"안녕하세요! 오늘 어떤 도움을 드릴 수 있을까요? 궁금한 점이나 이야기하고 싶은 주제가 있다면 자유롭게 말씀해 주세요."}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":10,"output_tokens":34}}}}
메시지 배치 결과를 검색하기 위한 경로는 배치의 results_url에서 가져와야 합니다. 이 경로는 가정되어서는 안 되며 변경될 수 있습니다.

Headers

anthropic-beta
string[]

Optional header to specify the beta version(s) you want to use.

To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.

anthropic-version
string
required

The version of the Anthropic API you want to use.

Read more about versioning and our version history here.

x-api-key
string
required

Your unique API key for authentication.

This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the Console. Each key is scoped to a Workspace.

Path Parameters

message_batch_id
string
required

ID of the Message Batch.

Response

200 - application/x-jsonl

This is a single line in the response .jsonl file and does not represent the response as a whole.

custom_id
string
required

Developer-provided ID created for each request in a Message Batch. Useful for matching results to requests, as results may be given out of request order.

Must be unique for each request within the Message Batch.

result
object
required

Processing result for this request.

Contains a Message output if processing was successful, an error response if processing failed, or the reason why processing was not attempted, such as cancellation or expiration.