Download batch file content
/v1/files/{file_id}/contentDownload the raw bytes of a batch output or error JSONL file (or the original input file if you still have access). Use the output_file_id or error_file_id from a completed batch.
Returns Content-Type: application/jsonl (or the stored MIME type) with the file body in the response.
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.