GET/api/v1/communications
Get communications with auto tags
Get documents for communications page with auto tags
PARAMETERS
- pagequery · integer
- Page number, 1-based.e.g. 1
- per_pagequery · integer
- Items per page.e.g. 100
- sort_byquery · string
- Field to sort on.e.g. extracted_date
- sort_orderquery · enum
- asc or desc.one of: asc, desc
- searchquery · string
- Full-text filter.e.g. string
- tag_filtersquery · string
- Comma-separated auto-tag values to match.e.g. string
- tag_filter_modequery · enum
- or or and.one of: or, and
- auto_tag_idquery · string
- Restrict tag_filters to one auto tag.e.g. string
- show_filteredquery · string
- Set to true to include documents hidden by filters, with `hidden_by`.e.g. string
REQUEST
curl "https://gateway.kumkuat.ai/api/v1/communications" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://gateway.kumkuat.ai/api/v1/communications", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://gateway.kumkuat.ai/api/v1/communications", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"documents": [
{
"auto_tags": [
{
"extracted_value": "Jane Doe",
"name": "Executives"
}
],
"content_type": "transcript",
"id": "c0a8e2f4-1b7d-4e2a-8c9f-5d6e7a8b9c01",
"source_url": "https://investors.example.com/q3-call",
"tags": [
"string"
],
"title": "Acme Q3 earnings call transcript",
"word_count": 4210,
"workspace_id": "string"
}
],
"hidden_count": 1,
"pagination": {
"page": 1,
"per_page": 1,
"total_count": 1,
"total_pages": 1
},
"show_filtered": true
}
