- Omni
- Document APIs
- Storage
- Category
- Document
- Sharing
List Document
Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
GET
/documents/
Last modified:2025-05-30 07:54:36
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Query Params
expiry_date__lte
stringÂ
optional
Example:
2024-01-01
expiry_date__gte
stringÂ
optional
Example:
2024-01-01
tags
stringÂ
optional
Example:
kyc,agreements
categories
stringÂ
optional
created_at__range
array[string]
optional
Example:
["2024-01-01,2024-02-02"]
updated_at__range
stringÂ
optional
search
stringÂ
optional
page_size
integerÂ
optional
page
integerÂ
optional
expand
stringÂ
optional
Example:
category,storage
content_type
stringÂ
optional
Example:
contact.contact
object_id
stringÂ
optional
Example:
01JVVJF3NTPY29SE2XQ7C5H0QA
storage
stringÂ
optional
created_at_after
stringÂ
optional
Example:
2025-05-12
created_at_before
stringÂ
optional
Example:
2025-05-19
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://preprod.api.crego.io/documents/?content_type=contact.contact&object_id=01JVVJF3NTPY29SE2XQ7C5H0QA'
Responses
🟢200Success
application/json
Body
count
integerÂ
required
total_pages
integerÂ
required
current_page
integerÂ
required
has_previous
booleanÂ
required
has_next
booleanÂ
required
previous_page
nullÂ
required
next_page
nullÂ
required
results
array[object (Document) {18}]Â
required
id
stringÂ
required
category
stringÂ
required
tenant_id
stringÂ
required
created_by
stringÂ
required
updated_by
stringÂ
required
created_at
stringÂ
required
updated_at
stringÂ
required
tags
array[string]
optional
refs
objectÂ
optional
name
stringÂ
required
path
stringÂ
optional
description
stringÂ
optional
expiry_date
stringÂ
optional
is_encrypted
booleanÂ
optional
comment
stringÂ
optional
storage
stringÂ
required
content_type
stringÂ
optional
object_id
stringÂ
optional
Example
{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": "01JP4NRYY8QMHZRAXR8NPVK6TK",
"files": [
{
"id": "01JP4QN8Q2B5WRWMMZXFP10NMT",
"tenant_id": "203f386d-5068-4a82-b17a-0c0655fe84be",
"created_by": "0d17a44c-9589-4534-807a-7c9e95002e10",
"updated_by": "0d17a44c-9589-4534-807a-7c9e95002e10",
"created_at": "2025-03-12T14:01:10.585782Z",
"updated_at": "2025-03-12T14:01:10.585804Z",
"storage_key": "loan/AUMQueryReport-12-03-2025-12.42PM.xlsx",
"file_name": "AUMQueryReport-12-03-2025-12.42PM.xlsx",
"file_extension": ".xlsx",
"size": 5442,
"document": "01JP4NRYY8QMHZRAXR8NPVK6TK"
},
{
"id": "01JP5012KKTWPXYJC44ZKMZSP3",
"tenant_id": "203f386d-5068-4a82-b17a-0c0655fe84be",
"created_by": "0d17a44c-9589-4534-807a-7c9e95002e10",
"updated_by": "0d17a44c-9589-4534-807a-7c9e95002e10",
"created_at": "2025-03-12T16:27:26.148945Z",
"updated_at": "2025-03-12T16:27:26.148964Z",
"storage_key": "loan/Daily_POS-20-01-2025-10.28AM.xlsx",
"file_name": "Daily_POS-20-01-2025-10.28AM.xlsx",
"file_extension": ".xlsx",
"size": 4854,
"document": "01JP4NRYY8QMHZRAXR8NPVK6TK"
},
{
"id": "01JP710XZQJJKEY7GAPQF88D37",
"tenant_id": "203f386d-5068-4a82-b17a-0c0655fe84be",
"created_by": "0d17a44c-9589-4534-807a-7c9e95002e10",
"updated_by": "0d17a44c-9589-4534-807a-7c9e95002e10",
"created_at": "2025-03-13T11:23:18.857994Z",
"updated_at": "2025-03-13T11:23:18.858017Z",
"storage_key": "loan/Customer_Portfolio_report-11-01-2025-02.16PM.xlsx",
"file_name": "Customer_Portfolio_report-11-01-2025-02.16PM.xlsx",
"file_extension": ".xlsx",
"size": 14715,
"document": "01JP4NRYY8QMHZRAXR8NPVK6TK"
},
{
"id": "01JP710YVR3MWCX4F5B0VQE4FR",
"tenant_id": "203f386d-5068-4a82-b17a-0c0655fe84be",
"created_by": "0d17a44c-9589-4534-807a-7c9e95002e10",
"updated_by": "0d17a44c-9589-4534-807a-7c9e95002e10",
"created_at": "2025-03-13T11:23:19.736634Z",
"updated_at": "2025-03-13T11:23:19.736650Z",
"storage_key": "loan/CoLender.xlsx",
"file_name": "CoLender.xlsx",
"file_extension": ".xlsx",
"size": 5645,
"document": "01JP4NRYY8QMHZRAXR8NPVK6TK"
},
{
"id": "01JP710ZQQWFAAQYWAXJ74K4S7",
"tenant_id": "203f386d-5068-4a82-b17a-0c0655fe84be",
"created_by": "0d17a44c-9589-4534-807a-7c9e95002e10",
"updated_by": "0d17a44c-9589-4534-807a-7c9e95002e10",
"created_at": "2025-03-13T11:23:20.631945Z",
"updated_at": "2025-03-13T11:23:20.631961Z",
"storage_key": "loan/Originator_sheet.xlsx",
"file_name": "Originator_sheet.xlsx",
"file_extension": ".xlsx",
"size": 5607,
"document": "01JP4NRYY8QMHZRAXR8NPVK6TK"
}
],
"category": "Property",
"tenant_id": "203f386d-5068-4a82-b17a-0c0655fe84be",
"created_by": "0d17a44c-9589-4534-807a-7c9e95002e10",
"updated_by": "0d17a44c-9589-4534-807a-7c9e95002e10",
"created_at": "2025-03-12T13:28:14.496397Z",
"updated_at": "2025-03-12T13:28:14.496420Z",
"owner": "0d17a44c-9589-4534-807a-7c9e95002e10",
"tags": [
"finance",
"loan"
],
"name": "Loan Agreement",
"path": "loan",
"description": "for loan agreement document",
"expiry_date": "2025-03-14",
"is_encrypted": false,
"refs": {},
"comment": "",
"storage": "01JP4N5K28G23CSWQZ5VE3PWFC"
},
{
"id": "01JP6ZJR38DDGYCQTP22296AAZ",
"files": [],
"category": "Property",
"tenant_id": "203f386d-5068-4a82-b17a-0c0655fe84be",
"created_by": "0d17a44c-9589-4534-807a-7c9e95002e10",
"updated_by": "0d17a44c-9589-4534-807a-7c9e95002e10",
"created_at": "2025-03-13T10:58:05.504641Z",
"updated_at": "2025-03-13T10:58:05.504671Z",
"owner": "0d17a44c-9589-4534-807a-7c9e95002e10",
"tags": [
"registery"
],
"name": "Registery",
"path": "loan",
"description": "this is for registery",
"expiry_date": "2025-03-14",
"is_encrypted": false,
"refs": {},
"comment": "",
"storage": "01JP4N5K28G23CSWQZ5VE3PWFC"
}
]
}