List documents
curl --request GET \
--url https://api2.documate.ai/api/v1/queues/{queueId}/documents \
--header 'X-Api-Key: <api-key>'const url = 'https://api2.documate.ai/api/v1/queues/{queueId}/documents';
const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://api2.documate.ai/api/v1/queues/{queueId}/documents"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api2.documate.ai/api/v1/queues/{queueId}/documents");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Api-Key", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api2.documate.ai/api/v1/queues/{queueId}/documents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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;
}[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"queueId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"batchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentTypeId": 123,
"documentTypeKey": "<string>",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"publicStatusKey": "<string>",
"internalStageKey": "<string>",
"errorCode": "<string>",
"errorMessage": "<string>",
"resultJson": null,
"webhookStatusKey": "<string>",
"webhookAttempts": 123,
"webhookLastHttpStatus": 123,
"createdAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"downloadUrl": "<string>",
"downloadUrlExpiresAt": "2023-11-07T05:31:56Z"
}
]Documents
List documents
List documents on a channel with optional filters. downloadUrl is null until the document PDF is stored. It is never the file download URL. When the file is one document covering every page, the PDF bytes may equal the upload. Use the parent file’s downloadUrl or GET /api/v1/files//content for the pack.
GET
/
api
/
v1
/
queues
/
{queueId}
/
documents
List documents
curl --request GET \
--url https://api2.documate.ai/api/v1/queues/{queueId}/documents \
--header 'X-Api-Key: <api-key>'const url = 'https://api2.documate.ai/api/v1/queues/{queueId}/documents';
const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://api2.documate.ai/api/v1/queues/{queueId}/documents"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api2.documate.ai/api/v1/queues/{queueId}/documents");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Api-Key", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api2.documate.ai/api/v1/queues/{queueId}/documents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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;
}[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"queueId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"batchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentTypeId": 123,
"documentTypeKey": "<string>",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"publicStatusKey": "<string>",
"internalStageKey": "<string>",
"errorCode": "<string>",
"errorMessage": "<string>",
"resultJson": null,
"webhookStatusKey": "<string>",
"webhookAttempts": 123,
"webhookLastHttpStatus": 123,
"createdAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"downloadUrl": "<string>",
"downloadUrlExpiresAt": "2023-11-07T05:31:56Z"
}
]Authorizations
Query Parameters
Response
200 - application/json
OK