ZvenoAI
API Reference

List Files

GET
/v1/files

Возвращает файлы аккаунта от новых к старым.

Курсор — идентификатор последнего файла предыдущей страницы. Его принимают равнозначные параметры after (OpenAI SDK), after_id и page (Anthropic SDK); разные значения в одном запросе дают 400. before_id и order=asc не поддерживаются (400).

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

limit?integer

Размер страницы, 1–1000. По умолчанию 20 в формате Anthropic и 1000 в формате OpenAI

Formatint32
after?string

Курсор OpenAI SDK

after_id?string

Курсор Anthropic SDK

page?string

Курсор Anthropic SDK из next_page

Header Parameters

anthropic-version?string

Response Body

application/json

application/json

application/json

curl -X GET "http://localhost:8080/v1/files"
{
  "data": [
    {
      "id": "string",
      "type": "file",
      "filename": "string",
      "mime_type": "string",
      "size_bytes": 0,
      "created_at": "2019-08-24T14:15:22Z",
      "downloadable": true
    }
  ],
  "has_more": true,
  "first_id": "string",
  "last_id": "string",
  "next_page": "string"
}
{
  "error": {
    "code": 0,
    "message": "string",
    "metadata": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": 0,
    "message": "string",
    "metadata": {
      "property1": null,
      "property2": null
    }
  }
}