List Files
Page through uploaded and generated files at /v1/files
Overview
Lists your files, newest first by default. Filter withpurpose=batch for uploads or purpose=batch_output for the output and error files batches produce. after is an integer offset, not an object id: add limit to it for each next page.Authorizations
Morph API key, passed as Authorization: Bearer sk-.... Create keys at https://www.morphllm.com/dashboard/api-keys.
Query Parameters
Filter to uploads (batch) or generated results (batch_output).
Only return files with this purpose.
batch, batch_output "batch"
Oldest first (asc) or newest first (desc).
Sort by created_at. Default desc.
asc, desc "desc"
How many files to return in this page. Files per page. Default 20, max 10,000.
1 <= x <= 1000020
Pagination offset into your files. An integer count, not an object id, so page manually rather than with the SDK auto-paginator.
Offset cursor: how many files to skip. Add limit to it for each next page.
x >= 020
Response
The requested page of files.
A page of files.
Object type, always list.
"list"
Files in this page, newest first by default.
Id of the first file in this page. Empty when the page is empty.
"file_9c2c1c3e-5b6a-4f0e-8d0f-2a1b3c4d5e6f"
Id of the last file in this page. Empty when the page is empty.
"file_9c2c1c3e-5b6a-4f0e-8d0f-2a1b3c4d5e6f"
Whether another page exists after this one.
false