v172

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-0826148911.7 MB
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

objectstring required

Object discriminator for list responses; always list.

has_moreboolean required

Whether more files are available in the selected pagination direction.