下载 batch 文件内容
/v1/files/{file_id}/content下载 batch 输出或错误 JSONL 文件的原始内容(若仍有权限也可下载原输入文件)。使用已完成 batch 上的 output_file_id 或 error_file_id。
响应体为文件二进制流,Content-Type 通常为 application/jsonl。
Authentication
Authorization Bearer
Path Parameters
file_idstringrequiredFile ID from the batch object or upload response.
Response
Binary JSONL stream. Parse line-by-line; each line is a JSON object.
For output files, lines typically include:
custom_id— matches your input line.response— chat completion result or error for that line.error— present when the line failed.
Token360 rewrites response.body.model to your Token360 model name when applicable.
Related: Retrieve batch to obtain output_file_id / error_file_id.
custom_idstringYour input custom_id.
responseobjectSuccessful line response. Includes status_code, request_id, and body.
response.status_codeintegerHTTP status code for this JSONL output line.
response.request_idstringRequest ID for this JSONL output line.
response.bodyobjectResponse body for the completed request.
errorobjectLine-level error when the request failed.
error.messagestringHuman-readable error message.
error.codestringMachine-readable error code.
error.typestringError category when returned.
error.stagestringProcessing stage where the error occurred.
error.upstream_http_statusintegerProvider HTTP status when the error came from upstream.
error.upstream_messagestringProvider error message when available.