List
Overview
You can get all document list by using this API.
Document list is including all documents created by you from API as well as uploaded from Legale platform.
If you don't add pagination query params, you can get all the documents at once request, but it will take a long time if you have many documents.
API detail
Request
- URL:
/documents/?page=1&page_size=10
- Method:
GET
- Query Params:
{
"page": 1,
"page_size": 10,
}
Response
Success
- Status code:
200
- Body:
{
"count": 204,
"next": "https://api.legale.io/api/documents/?page=2&page_size=10",
"previous": null,
"results": [
{
"GUID": "0fe75c65-70cc-4517-ac7f-ebba85bfa63e",
"doc_id": "50361222",
"document": "https://api.legale.io/media/document/0fe75c65-70cc-4517-ac7f-ebba85bfa63e.pdf",
"file_name": "test from postman.pdf",
"description": "test from postman",
"created_at": "2021-10-19T16:05:44.158662Z",
"updated_at": "2021-10-19T16:05:44.158662Z",
"sign_status": 0,
"comment": null,
"callback_url": null,
"callback_key": null,
},
],
}
sign_status
Value | Type | Description |
---|---|---|
0 | int | Not signed |
1 | int | Signed |
2 | int | Rejected |