Retrieve documents
Changed onRetrieves documents.
Request
- Base URLhttps://api.us.cr4ce.com
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Filter by entrant slug.
Filter by deletion mode.
- only - Show only deleted resources.
- included - Include deleted resources.
- none - Exclude deleted resources.
Filter by soft-deletion mode.
- only - Show only soft-deleted resources.
- all - Include soft-deleted resources alongside live ones.
- none - Exclude soft-deleted resources.
Specify the page number to return.
Limit the number of items returned to between 1 and 100.
If you provide a value outside this range, you will receive a 400 response.
Column to sort by.
Sort in ascending or descending order.
Headers
Defines the response type.
Defines the languages included in the response. If non are provided, the account default language is returned.
Value all overrides any other values present.
You can request multiple languages using a comma-separated string of languages.
The selected language must be supported by your account or a 400 error is returned.
Response
Documents retrieved.
Example response
{
"current_page": 1,
"data": [
{
"allocation": [],
"created_at": "2025-01-15T09:00:00Z",
"description": {
"en_GB": ""
},
"entry": {
"slug": "AbCdEfGh",
"link": "https://api.au.cr4ce.com/entry/AbCdEfGh",
"title": "Sustainable Cities Initiative"
},
"file": {
"token": "IjKlMnOpQrStUvWx",
"link": "https://api.au.cr4ce.com/file/IjKlMnOpQrStUvWx",
"name": "certificate.pdf",
"download": "https://files.au.cr4ce.com/file/IjKlMnOpQrStUvWx/certificate.pdf?Expires=1781485359&Signature=REDACTED&Key-Pair-Id=REDACTED"
},
"file_type": "PDF",
"name": {
"en_GB": "Certificate of entry"
},
"shared_with_user": false,
"slug": "QrStUvWx",
"user": {
"slug": "YzAbCdEf",
"link": "https://api.au.cr4ce.com/user/YzAbCdEf",
"name": "Rachel Martin",
"first_name": "Rachel",
"last_name": "Martin"
}
},
{
"allocation": {
"slug": "KlMnOpQr",
"link": "https://api.au.cr4ce.com/allocation/KlMnOpQr"
},
"created_at": "2025-02-10T10:00:00Z",
"description": {
"en_GB": ""
},
"entry": [],
"file": {
"token": "StUvWxYzAbCdEfGh",
"link": "https://api.au.cr4ce.com/file/StUvWxYzAbCdEfGh",
"name": "grant-report.pdf",
"download": "https://files.au.cr4ce.com/file/StUvWxYzAbCdEfGh/grant-report.pdf?Expires=1781485359&Signature=REDACTED&Key-Pair-Id=REDACTED"
},
"file_type": "Word",
"name": {
"en_GB": "Grant report"
},
"shared_with_user": true,
"slug": "WxYzAbCd",
"user": {
"slug": "YzAbCdEf",
"link": "https://api.au.cr4ce.com/user/YzAbCdEf",
"name": "Rachel Martin",
"first_name": "Rachel",
"last_name": "Martin"
}
}
],
"first_page_url": "https://api.au.cr4ce.com/document?per_page=10&page=1",
"from": 1,
"last_page": 4,
"last_page_url": "https://api.au.cr4ce.com/document?per_page=10&page=4",
"next_page_url": "https://api.au.cr4ce.com/document?per_page=10&page=2",
"path": "https://api.au.cr4ce.com/document",
"per_page": 10,
"prev_page_url": "",
"to": 10,
"total": 38
}Changes
- breaking
for the
queryrequest parameterpage, the type changed fromstringtonumber - breaking
for the
queryrequest parameterper_page, the type changed fromstringtonumber - info
the
response's property default value10was added for the status (media type: application/json) - info
the
response's property default value10was added for the status (media type: application/xml)
- breaking
- breaking
the response property
/became nullable for the status (media type: application/json) - breaking
the response property
/became nullable for the status (media type: application/xml) - breaking
the response property
/became nullable for the status (media type: application/json) - breaking
the response property
/became nullable for the status (media type: application/xml) - breaking
the
/response's property format changed fromurito no format for status (media type: application/json) - breaking
the
/response's property format changed fromurito no format for status (media type: application/xml) - breaking
the
/response's property format changed fromurito no format for status (media type: application/json) - breaking
the
/response's property format changed fromurito no format for status (media type: application/xml) - breaking
the
/response's property format changed fromurito no format for status (media type: application/json) - breaking
the
/response's property format changed fromurito no format for status (media type: application/xml)
- breaking