Lấy danh sách các trang trong một hồ sơ
Endpoint
| Method | URL |
|---|---|
| GET | https://tpa.docbase.ai/api/v1/integrations/submissions/{SubmissionID}/pages |
*Sử dụng external_id thay thế cho SubmissionID
| Method | URL |
|---|---|
| GET | https://tpa.docbase.ai/api/v1/integrations/submissions/requests/{external_id}/pages |
Ví dụ
| Method | URL |
|---|---|
| GET | https://tpa.docbase.ai/api/v1/integrations/submissions/8187/pages |
Mô tả Trả về danh sách các trang (pages) thuộc một request. Mỗi trang sẽ có thông tin id, file_index, file, và document.
Response 200 (application/json)
{
"data": [
{
"id": 8972,
"created_at": "2025-08-13T07:07:18.126764Z",
"updated_at": "2025-08-13T07:08:05.208810Z",
"deleted_at": null,
"file_index": 0,
"file": 1170,
"document": 8206
},
{
"id": 8973,
"created_at": "2025-08-13T07:07:18.140490Z",
"updated_at": "2025-08-13T07:08:06.393763Z",
"deleted_at": null,
"file_index": 1,
"file": 1170,
"document": 8207
}
]
}
Ý nghĩa các trường
| Trường | Kiểu dữ liệu | Mô tả |
|---|---|---|
| id | integer | ID của trang (dùng để gọi API lấy ảnh trang) |
| created_at | datetime | Thời điểm tạo |
| updated_at | datetime | Thời điểm cập nhật |
| deleted_at | datetime/null | Thời điểm xóa (nếu có) |
| file_index | integer | Vị trí (thứ tự) trang trong file |
| file | integer | ID của file chứa trang này |
| document | integer | ID document liên kết với trang |