List files
GET
https://api.openai.com/v1/filesFiles are used to upload documents that can be used with features like Fine-tuning.
Returns a list of files that belong to the user's organization.
Request
Header Params
Authorization
string
optional
Example:
Bearer {{YOUR_API_KEY}}
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
array [object {6}]
required
id
string
required
object
string
required
bytes
integer
required
created_at
integer
required
filename
string
required
purpose
string
required
object
string
required
Example成功示例
{
"data": [
{
"id": "file-ccdDZrC3iZVNiQVeEA6Z66wf",
"object": "file",
"bytes": 175,
"created_at": 1613677385,
"filename": "train.jsonl",
"purpose": "search"
},
{
"id": "file-XjGxS3KTG0uNmNOK362iJua3",
"object": "file",
"bytes": 140,
"created_at": 1613779121,
"filename": "puppy.jsonl",
"purpose": "search"
}
],
"object": "list"
}
Last modified: a year ago