List documents
curl --request GET \
--url https://api.us.cr4ce.com/document \
--header 'Accept: <accept>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.us.cr4ce.com/document"
headers = {
"Accept": "<accept>",
"x-api-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Accept: '<accept>', 'x-api-key': '<api-key>'}};
fetch('https://api.us.cr4ce.com/document', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.us.cr4ce.com/document",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.us.cr4ce.com/document"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Accept", "<accept>")
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.us.cr4ce.com/document")
.header("Accept", "<accept>")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.us.cr4ce.com/document")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = '<accept>'
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"current_page": 1,
"data": [
{
"allocation": [],
"application": {
"slug": "AbCdEfGh",
"link": "https://api.au.cr4ce.com/application/AbCdEfGh",
"title": "Sustainable Cities Initiative"
},
"created_at": "2025-01-15T09:00:00Z",
"description": {
"en_GB": ""
},
"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 application"
},
"shared_with_user": false,
"slug": "QrStUvWx",
"user": {
"slug": "YzAbCdEf",
"link": "https://api.au.cr4ce.com/user/YzAbCdEf",
"name": "Jane Smith",
"first_name": "Jane",
"last_name": "Smith"
}
},
{
"allocation": {
"slug": "KlMnOpQr",
"link": "https://api.au.cr4ce.com/allocation/KlMnOpQr"
},
"application": [],
"created_at": "2025-02-10T10:00:00Z",
"description": {
"en_GB": ""
},
"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": "Jane Smith",
"first_name": "Jane",
"last_name": "Smith"
}
}
],
"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
}{
"message": "<string>",
"status_code": 400
}{
"message": "<string>",
"status_code": 401
}{
"message": "<string>",
"status_code": 403
}{
"message": "<string>",
"status_code": 429
}{
"status": "Maintenance in progress"
}Documents
List documents
List documents.
GET
/
document
List documents
curl --request GET \
--url https://api.us.cr4ce.com/document \
--header 'Accept: <accept>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.us.cr4ce.com/document"
headers = {
"Accept": "<accept>",
"x-api-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Accept: '<accept>', 'x-api-key': '<api-key>'}};
fetch('https://api.us.cr4ce.com/document', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.us.cr4ce.com/document",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.us.cr4ce.com/document"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Accept", "<accept>")
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.us.cr4ce.com/document")
.header("Accept", "<accept>")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.us.cr4ce.com/document")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = '<accept>'
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"current_page": 1,
"data": [
{
"allocation": [],
"application": {
"slug": "AbCdEfGh",
"link": "https://api.au.cr4ce.com/application/AbCdEfGh",
"title": "Sustainable Cities Initiative"
},
"created_at": "2025-01-15T09:00:00Z",
"description": {
"en_GB": ""
},
"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 application"
},
"shared_with_user": false,
"slug": "QrStUvWx",
"user": {
"slug": "YzAbCdEf",
"link": "https://api.au.cr4ce.com/user/YzAbCdEf",
"name": "Jane Smith",
"first_name": "Jane",
"last_name": "Smith"
}
},
{
"allocation": {
"slug": "KlMnOpQr",
"link": "https://api.au.cr4ce.com/allocation/KlMnOpQr"
},
"application": [],
"created_at": "2025-02-10T10:00:00Z",
"description": {
"en_GB": ""
},
"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": "Jane Smith",
"first_name": "Jane",
"last_name": "Smith"
}
}
],
"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
}{
"message": "<string>",
"status_code": 400
}{
"message": "<string>",
"status_code": 401
}{
"message": "<string>",
"status_code": 403
}{
"message": "<string>",
"status_code": 429
}{
"status": "Maintenance in progress"
}Authorizations
Headers
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.
Available options:
all, ar_AR, bg_BG, bn_IN, ca_ES, cs_CZ, cy_GB, da_DK, de_DE, en_GB, en_US, el_GR, es_NN, es_LA, et_EE, fa_NN, fi_FI, fr_FR, fr_CA, he_IL, hi_IN, hr_HR, hu_HU, hy_AM, it_IT, ja_JP, ko_KR, lt_LT, ms_MY, nl_NL, nb_NO, pl_PL, pt_BR, ro_RO, ru_RU, sk_SK, sl_SI, sq_AL, sr_RS, sv_SE, sw_NN, th_TH, tr_TR, uk_UA, vi_VN, zh_CN, zh_HK Query Parameters
Response
Paginated list of documents.