REST: List files
Returns a list of files.
HTTP request
GET https://ai.api.cloud.yandex.net/v1/files
Query parameters
|
Field |
Description |
|
purpose |
string Only return files with the given purpose. |
|
limit |
integer A limit on the number of objects to be returned. Limit can range between 1 and 10,000, and the default is 10,000. |
|
order |
enum Sort order by the
|
|
after |
string A cursor for use in pagination. |
Response
HTTP Code: 200
OK
Response schema: application/json
{
"object": "string",
"data": [
{
"id": "string",
"bytes": "integer",
"created_at": "integer",
"expires_at": "integer",
"filename": "string",
"object": "string",
"purpose": "string",
"status": "string",
"status_details": "string"
}
],
"first_id": "string",
"last_id": "string",
"has_more": "boolean"
}
|
Field |
Description |
|
object |
string Required field. |
|
data[] |
unknown Required field. The |
|
first_id |
string Required field. |
|
last_id |
string Required field. |
|
has_more |
boolean Required field. |