ZvenoAI
API Reference

Retrieve File

GET
/v1/files/{file_id}

Возвращает метаданные файла.

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

file_id*string

Header Parameters

anthropic-version?string

Response Body

application/json

application/json

application/json

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