Skip to main content
GET
List Files
List all files that belong to the authenticated user.
string
Filter files by purpose. If provided, only files with the specified purpose will be returned. Valid values: batch, assistants, fine-tune.
integer
default:"20"
The maximum number of files to return. Maximum value is determined by the API.
string
A cursor for pagination. Use the ID of the last file from the previous page to get the next page of results.

Returns

string
The object type, which is always list.
array
An array of file objects.
boolean
Indicates whether there are more files available beyond this page.

Return Examples

Response 200
Response 200 - Empty List
Last modified on December 7, 2025