# Lấy danh sách tài liệu trong Cửa hàng Vector

{% openapi src="/files/uCR2Hrq9CjDxpCLaqzhl" path="/vector-stores/{vector-store-id}/documents" method="get" %}
[rememberizer\_openapi.yml](https://4187618229-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwbxu0T4faQnPtKbPzrD5%2Fuploads%2Fgit-blob-77b6137eeb641262ec8e531c78123c02b825b865%2Frememberizer_openapi.yml?alt=media\&token=b77a395b-ed7b-4546-9ec7-182d4939fd1b)
{% endopenapi %}

## Ví dụ Yêu Cầu

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X GET \
  https://api.rememberizer.ai/api/v1/vector-stores/vs_abc123/documents \
  -H "x-api-key: YOUR_API_KEY"
```

{% hint style="info" %}
Thay thế `YOUR_API_KEY` bằng khóa API Vector Store thực tế của bạn và `vs_abc123` bằng ID Vector Store của bạn.
{% endhint %}
{% endtab %}

{% tab title="JavaScript" %}

```javascript
const getVectorStoreDocuments = async (vectorStoreId) => {
  const response = await fetch(`https://api.rememberizer.ai/api/v1/vector-stores/${vectorStoreId}/documents`, {
    method: 'GET',
    headers: {
      'x-api-key': 'YOUR_API_KEY'
    }
  });
  
  const data = await response.json();
  console.log(data);
};

getVectorStoreDocuments('vs_abc123');
```

{% hint style="info" %}
Thay thế `YOUR_API_KEY` bằng khóa API Vector Store thực tế của bạn và `vs_abc123` bằng ID Vector Store của bạn.
{% endhint %}
{% endtab %}

{% tab title="Python" %}

```python
import requests

def get_vector_store_documents(vector_store_id):
    headers = {
        "x-api-key": "YOUR_API_KEY"
    }
    
    response = requests.get(
        f"https://api.rememberizer.ai/api/v1/vector-stores/{vector_store_id}/documents",
        headers=headers
    )
    
    data = response.json()
    print(data)

get_vector_store_documents('vs_abc123')
```

{% hint style="info" %}
Thay thế `YOUR_API_KEY` bằng khóa API Vector Store thực tế của bạn và `vs_abc123` bằng ID Vector Store của bạn.
{% endhint %}
{% endtab %}
{% endtabs %}

## Tham số Đường dẫn

| Tham số         | Loại  | Mô tả                                                      |
| --------------- | ----- | ---------------------------------------------------------- |
| vector-store-id | chuỗi | **Bắt buộc.** ID của kho vector để liệt kê tài liệu từ đó. |

## Định dạng Phản hồi

```json
[
  {
    "id": 1234,
    "name": "Hướng Dẫn Sản Phẩm.pdf",
    "type": "application/pdf",
    "vector_store": "vs_abc123",
    "size": 250000,
    "status": "đã lập chỉ mục",
    "processing_status": "hoàn thành",
    "indexed_on": "2023-06-15T10:30:00Z",
    "status_error_message": null,
    "created": "2023-06-15T10:15:00Z",
    "modified": "2023-06-15T10:30:00Z"
  },
  {
    "id": 1235,
    "name": "Thông Số Kỹ Thuật.docx",
    "type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
    "vector_store": "vs_abc123",
    "size": 125000,
    "status": "đã lập chỉ mục",
    "processing_status": "hoàn thành",
    "indexed_on": "2023-06-15T11:45:00Z",
    "status_error_message": null,
    "created": "2023-06-15T11:30:00Z",
    "modified": "2023-06-15T11:45:00Z"
  }
]
```

## Xác thực

Điểm cuối này yêu cầu xác thực bằng cách sử dụng khóa API trong tiêu đề `x-api-key`.

## Phản hồi Lỗi

| Mã Trạng Thái | Mô Tả                                                 |
| ------------- | ----------------------------------------------------- |
| 401           | Không được phép - Khóa API không hợp lệ hoặc bị thiếu |
| 404           | Không tìm thấy - Không tìm thấy Vector Store          |
| 500           | Lỗi Máy Chủ Nội Bộ                                    |

Điểm cuối này truy xuất danh sách tất cả các tài liệu được lưu trữ trong vector store đã chỉ định. Nó cung cấp siêu dữ liệu về mỗi tài liệu, bao gồm trạng thái xử lý tài liệu, kích thước và dấu thời gian đã lập chỉ mục. Thông tin này hữu ích để theo dõi nội dung của vector store của bạn và kiểm tra trạng thái xử lý tài liệu.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rememberizer.ai/vi/tai-nguyen-cho-nha-phat-trien/api-docs/vector-store/get-a-list-of-documents-in-a-vector-store.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
