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

Request

  • Base URL
    https://my.orq.ai
  • URL
    https://my.orq.ai/v2/files
  • Auth
    HTTP bearer

Query parameters

limitinteger

Page size, 1-200. Unset uses the server default.

starting_afterstring

Cursor for forward pagination. Set to the file_id of the last item from the previous page. Mutually exclusive with ending_before.

ending_beforestring

Cursor for backward pagination. Set to the file_id of the first item from the previous page. Mutually exclusive with starting_after.

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.

Changes

    • info

      added the non-success response with the status

    • info

      removed the FILE_PURPOSE_UNSPECIFIED enum value from the // response property for the response status

    • warning

      added the new FILE_PURPOSE_UNSPECIFIED enum value to the // response property for the response status

    • info

      removed the non-success response with the status