Files
List all files
Returns a list of the files that your account has access to. orq.ai sorts and returns the files by their creation dates, placing the most recently created files at the top.
get/v2/files
Query parameters
limitinteger
Page size. Unset uses the server default.
starting_afterstring
Cursor for forward pagination. Set to the file_id of the last item from the previous page.
ending_beforestring
Cursor for backward pagination. Set to the file_id of the first item from the previous page.
project_idstring
purposestring
Restrict results to files declared with this purpose. Accepts a purpose alias (retrieval, knowledge_datasource, batch, code_interpreter) or canonical FILE_PURPOSE_* name case-insensitively. Omit to list files of every purpose.
Response
OK