List files
Return a list of files.
AuthorizationBearer <token>
In: header
Query Parameters
limit?Limit
A limit on the number of objects to be returned.
Default
10000Range
1 <= value <= 10000order?Order
Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
Default
"desc"purpose?Purpose
Only return files with the given purpose.
after?After
A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
Header Parameters
OpenAI-Organization?Openai-Organization
OpenAI-Project?Openai-Project
Response Body
curl -X GET "https://loading/v1/files?limit=10000&order=desc&purpose=assistants&after=5eb7cf5a86d9755df3a6c593" \
-H "OpenAI-Organization: 5eb7cf5a86d9755df3a6c593" \
-H "OpenAI-Project: 5eb7cf5a86d9755df3a6c593"{
"data": [],
"object": "list"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.