Query parameters
-
purpose string
Only return files with the given purpose.
GET
/files
curl \
-X GET https://api.openai.com/v1/files \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": [
{
"id": "string",
"bytes": 42,
"created_at": 42,
"filename": "string",
"object": "file",
"purpose": "assistants",
"status": "uploaded",
"status_details": "string"
}
],
"object": "list"
}