Get Document Info List
curl --request POST \
--url https://api.zeroentropy.dev/v1/documents/get-document-info-list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"collection_name": "<string>",
"limit": 1024,
"path_prefix": "<string>",
"path_gt": "<string>"
}
'import requests
url = "https://api.zeroentropy.dev/v1/documents/get-document-info-list"
payload = {
"collection_name": "<string>",
"limit": 1024,
"path_prefix": "<string>",
"path_gt": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
collection_name: '<string>',
limit: 1024,
path_prefix: '<string>',
path_gt: '<string>'
})
};
fetch('https://api.zeroentropy.dev/v1/documents/get-document-info-list', 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.zeroentropy.dev/v1/documents/get-document-info-list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'collection_name' => '<string>',
'limit' => 1024,
'path_prefix' => '<string>',
'path_gt' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zeroentropy.dev/v1/documents/get-document-info-list"
payload := strings.NewReader("{\n \"collection_name\": \"<string>\",\n \"limit\": 1024,\n \"path_prefix\": \"<string>\",\n \"path_gt\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.zeroentropy.dev/v1/documents/get-document-info-list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"collection_name\": \"<string>\",\n \"limit\": 1024,\n \"path_prefix\": \"<string>\",\n \"path_gt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zeroentropy.dev/v1/documents/get-document-info-list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"collection_name\": \"<string>\",\n \"limit\": 1024,\n \"path_prefix\": \"<string>\",\n \"path_gt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"documents": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"collection_name": "<string>",
"path": "<string>",
"metadata": {},
"index_status": "not_parsed",
"created_at": "2023-11-07T05:31:56Z",
"size": 123,
"num_pages": 123,
"file_url": "<string>"
}
]
}{
"detail": "Description of Error"
}{
"detail": "Description of Error"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Documents
Get Document Info List
Retrives a list of document metadata information that matches the provided filters.
The documents returned will be sorted by path in lexicographically ascending order. path_gt can be used for pagination, and should be set to the path of the last document returned in the previous call.
A 404 Not Found will be returned if either the collection name does not exist, or the document path does not exist within the provided collection.
POST
/
documents
/
get-document-info-list
Get Document Info List
curl --request POST \
--url https://api.zeroentropy.dev/v1/documents/get-document-info-list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"collection_name": "<string>",
"limit": 1024,
"path_prefix": "<string>",
"path_gt": "<string>"
}
'import requests
url = "https://api.zeroentropy.dev/v1/documents/get-document-info-list"
payload = {
"collection_name": "<string>",
"limit": 1024,
"path_prefix": "<string>",
"path_gt": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
collection_name: '<string>',
limit: 1024,
path_prefix: '<string>',
path_gt: '<string>'
})
};
fetch('https://api.zeroentropy.dev/v1/documents/get-document-info-list', 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.zeroentropy.dev/v1/documents/get-document-info-list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'collection_name' => '<string>',
'limit' => 1024,
'path_prefix' => '<string>',
'path_gt' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zeroentropy.dev/v1/documents/get-document-info-list"
payload := strings.NewReader("{\n \"collection_name\": \"<string>\",\n \"limit\": 1024,\n \"path_prefix\": \"<string>\",\n \"path_gt\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.zeroentropy.dev/v1/documents/get-document-info-list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"collection_name\": \"<string>\",\n \"limit\": 1024,\n \"path_prefix\": \"<string>\",\n \"path_gt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zeroentropy.dev/v1/documents/get-document-info-list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"collection_name\": \"<string>\",\n \"limit\": 1024,\n \"path_prefix\": \"<string>\",\n \"path_gt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"documents": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"collection_name": "<string>",
"path": "<string>",
"metadata": {},
"index_status": "not_parsed",
"created_at": "2023-11-07T05:31:56Z",
"size": 123,
"num_pages": 123,
"file_url": "<string>"
}
]
}{
"detail": "Description of Error"
}{
"detail": "Description of Error"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
The Authorization header must be provided in the format Bearer <your-api-key>.
You can get your API Key at the Dashboard!
Body
application/json