Lấy tài liệu
get
Use this operation to retrieve metadata about all available documents and Slack channels within the data sources.
Query parameters
pageintegerOptional
Page's index
page_sizeintegerOptional
The maximum number of documents returned in a page
Responses
200
Successful operation
application/json
get
GET /api/v1/documents/ HTTP/1.1
Host: api.rememberizer.ai
Accept: */*
200
Successful operation
{
"count": 4,
"next": "text",
"previous": "text",
"results": [
{
"name": "text",
"type": "text",
"path": "text",
"url": "text",
"id": "text",
"integration_type": "text",
"source": "text",
"status": "text",
"indexed_on": "2025-07-03T17:50:35.975Z",
"size": 89,
"status_error_message": "text",
"document_id": "text",
"created_time": "2025-07-03T17:50:35.975Z",
"pk": 1
}
]
}
Ví dụ Yêu cầu
curl -X GET \
"https://api.rememberizer.ai/api/v1/documents/?page=1&page_size=20&integration_type=google_drive" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
Tham số yêu cầu
Tham số
Loại
Mô tả
page
số nguyên
Số trang cho phân trang. Mặc định là 1.
page_size
số nguyên
Số lượng mục trên mỗi trang. Mặc định là 10.
integration_type
chuỗi
Lọc tài liệu theo loại tích hợp. Tùy chọn: google_drive, slack, dropbox, gmail, common_knowledge
Định dạng Phản hồi
{
"count": 257,
"next": "https://api.rememberizer.ai/api/v1/documents/?page=2&page_size=20&integration_type=google_drive",
"previous": null,
"results": [
{
"document_id": "1aBcD2efGhIjK3lMnOpQrStUvWxYz",
"name": "Đề xuất Dự án.docx",
"type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"path": "/Documents/Projects/Proposal.docx",
"url": "https://drive.google.com/file/d/1aBcD2efGhIjK3lMnOpQrStUvWxYz/view",
"id": 12345,
"integration_type": "google_drive",
"source": "[email protected]",
"status": "đã lập chỉ mục",
"indexed_on": "2023-06-15T10:30:00Z",
"size": 250000
},
// ... nhiều tài liệu hơn
]
}
Các loại tích hợp có sẵn
Loại tích hợp
Mô tả
google_drive
Tài liệu từ Google Drive
slack
Tin nhắn và tệp từ Slack
dropbox
Tệp từ Dropbox
gmail
Email từ Gmail
common_knowledge
Nguồn kiến thức công khai
Điểm cuối này lấy danh sách tài liệu từ các nguồn dữ liệu đã kết nối của bạn. Bạn có thể lọc theo loại tích hợp để tập trung vào các nguồn cụ thể.
Last updated