Pular para o conteúdo principal
GET
Core - List project files
Guia relacionado: guia de Arquivos. Consulte o guia de Arquivos para um passo a passo com exemplos.

Autorizações

Authorization
string
header
obrigatório

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Parâmetros de consulta

limit
integer<int32>

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

starting_after
string

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

ending_before
string

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

project_id
string
purpose
string

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.

order
string

Sort order by creation. Defaults to ascending (oldest first).

Resposta

OK

object
string
obrigatório

Object discriminator for list responses; always list.

data
object[]
obrigatório

Page of files.

has_more
boolean
obrigatório

Whether more files are available in the selected pagination direction.