Retrieve File
Read a file’s metadata at /v1/files/
Overview
Returns a file’s size, purpose, andexpires_at. Use the content endpoint to download the bytes.Authorizations
Morph API key, passed as Authorization: Bearer sk-.... Create keys at https://www.morphllm.com/dashboard/api-keys.
Path Parameters
Identifies the file to read.
The file_ prefixed id of the file whose metadata you want.
"file_9c2c1c3e-5b6a-4f0e-8d0f-2a1b3c4d5e6f"
Response
File metadata.
A file you uploaded, or one a batch wrote for you.
File identifier, file_ prefixed. Pass it as input_file_id when creating a batch.
"file_9c2c1c3e-5b6a-4f0e-8d0f-2a1b3c4d5e6f"
Object type, always file.
"file"
Size of the file in bytes.
48211
Unix timestamp (seconds) for when the file was uploaded.
1780000000
Unix timestamp (seconds) for when the file and its content are deleted. Defaults to 30 days after upload (24 hours on zero-data-retention accounts).
1782592000
The filename you uploaded, or the generated name for batch output and error files.
"requests.jsonl"
batch for files you upload; batch_output for the output and error files a batch produces.
batch, batch_output "batch"
Deprecated OpenAI field, kept for SDK compatibility. Always uploaded.
uploaded, processed, error "uploaded"