List vector store files

List the files attached to a vector store, newest first.

GET/vector_stores/{vector_store_id}/files

List the files attached to a vector store, newest first.

Each entry shows whether the file is indexed. A store that does not exist, or that belongs to another account, answers as not found, with 400 or 404.

Authorization

BearerAuth
AuthorizationBearer <token>

Your Avey API key, sent as Authorization: Bearer <key>. This is the header the OpenAI SDKs already send, so pass the key as the client's ordinary api_key and no further configuration is needed.

In: header

Path Parameters

vector_store_id*string

The id of a vector store, as returned in its id.

Query Parameters

limit?integer

The most items to return on one page, from 1 to 100.

Range1 <= value <= 100
after?string

The last_id of the previous page. Pass it to get the page that follows.

order?string

Sort by creation time. Defaults to desc, which puts the newest first.

Default"desc"

Value in

  • "asc"
  • "desc"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl https://api.avey.ai/llm/vector_stores/vs_6f1c2a9d8e7b4c35a0d1e2f3b4c5d6e7/files \  -H "Authorization: Bearer $AVEY_API_KEY"
{  "object": "list",  "data": [    {      "id": "file-Cn3MSNn72ENTiiq11Qda4A",      "object": "vector_store.file",      "vector_store_id": "vs_6f1c2a9d8e7b4c35a0d1e2f3b4c5d6e7",      "created_at": 1769904000,      "usage_bytes": 20480,      "status": "completed",      "last_error": null    },    {      "id": "file-7kQ2mX9pLr4tVb1zWc8eHd",      "object": "vector_store.file",      "vector_store_id": "vs_6f1c2a9d8e7b4c35a0d1e2f3b4c5d6e7",      "created_at": 1769817600,      "usage_bytes": 52736,      "status": "completed",      "last_error": null    }  ],  "first_id": "file-Cn3MSNn72ENTiiq11Qda4A",  "last_id": "file-7kQ2mX9pLr4tVb1zWc8eHd",  "has_more": false}