Skip to main content
GET
Download file content

Overview

Streams the file as application/octet-stream, one JSON object per line. For a batch’s output_file_id every line is a BatchOutputLine; for its error_file_id every line is a BatchErrorLine. Lines are not in input order, so join them to your requests on custom_id.

Authorizations

Authorization
string
header
required

Morph API key, passed as Authorization: Bearer sk-.... Create keys at https://www.morphllm.com/dashboard/api-keys.

Path Parameters

file_id
string
required

Identifies the file to download. The file_ prefixed id to download: your upload, or a batch's output_file_id / error_file_id.

Example:

"file_9c2c1c3e-5b6a-4f0e-8d0f-2a1b3c4d5e6f"

Response

The file body, one JSON object per line.

The shape of each JSONL line, depending on which file you downloaded.

id
string
required

Server-assigned id for this request, batch_req_ prefixed.

Example:

"batch_req_1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d"

custom_id
string
required

The custom_id from your input line.

Example:

"req-0001"

response
object
required

What the model returned.

Example:
error
null
required

Always null in the output file. Client-side failures go to the error file instead.

Example:

null