Count documents per folder, type, collection, or duplicate set
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/documents/groups/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/documents/groups/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/documents/groups/ \
--header 'Authorization: Bearer <token>'{
"group_by": "<string>",
"depth": 123,
"documents": 123,
"groups_total": 123,
"truncated": true,
"groups": [
{}
]
}{
"error": "Authentication credentials were not provided."
}{
"error": "You do not have permission to perform this action."
}Documents
Count documents per folder, type, collection, or duplicate set
One row per group with its document count, total pages and failed count, sorted
by size (at most 100 groups; truncated says when there were more). Takes every
filter of get-without-file, applied before grouping. duplicates returns sets of
2+ documents sharing a name and file size (at most 20 sets, each listing up to 3 of
its documents’ ids, folders and collections next to its full count).
GET
/
projects
/
{project_id}
/
documents
/
groups
/
Count documents per folder, type, collection, or duplicate set
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/documents/groups/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/documents/groups/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/documents/groups/ \
--header 'Authorization: Bearer <token>'{
"group_by": "<string>",
"depth": 123,
"documents": 123,
"groups_total": 123,
"truncated": true,
"groups": [
{}
]
}{
"error": "Authentication credentials were not provided."
}{
"error": "You do not have permission to perform this action."
}Authorizations
BearerAuthTokenAuth
Use Authorization: Bearer <token>. The token is either a user token / OAuth access
token, or a service-account API key (cfk_...). A key is valid on every endpoint and
acts as its service account, an organization member with per-store permissions.
Refused keys answer 403 with Invalid API key., API key revoked.,
API key expired. or API key disabled..