curl -X GET "https://api.pingr.ai/api/v1/knowledge-base" \
-H "Authorization: Bearer <token>"
import requests
url = "https://api.pingr.ai/api/v1/knowledge-base"
headers = {
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.status_code)
print(response.json())
const response = await fetch("https://api.pingr.ai/api/v1/knowledge-base", {
method: "GET",
headers: {
"Authorization": "Bearer <token>"
}
});
const data = await response.json();
console.log(data);
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.pingr.ai/api/v1/knowledge-base"))
.header("Authorization", "Bearer <token>")
.GET()
.build();
HttpResponse<String> response =
HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
{
"documents": [
{
"id": "c5d1e2f3-4a5b-6c7d-8e9f-0123456789ab",
"organization_id": "93f35dc2-5d46-4e58-a9ee-038c35d9bcf1",
"document_type": "pdf",
"file_name": "product_manual.pdf",
"uploaded_at": "2026-09-07T12:00:00Z",
"updated_at": "2026-09-07T12:00:00Z"
},
{
"id": "d6e2f3a4-5b6c-7d8e-9f01-123456789abc",
"organization_id": "93f35dc2-5d46-4e58-a9ee-038c35d9bcf1",
"document_type": "docx",
"file_name": "faqs_and_pricing_2026.docx",
"uploaded_at": "2026-09-07T12:15:00Z",
"updated_at": "2026-09-07T12:15:00Z"
}
]
}
{
"detail": "Unauthorized"
}
Knowledge Base
List documents
Retrieve all knowledge documents indexed for your organization
GET
/
api
/
v1
/
knowledge-base
curl -X GET "https://api.pingr.ai/api/v1/knowledge-base" \
-H "Authorization: Bearer <token>"
import requests
url = "https://api.pingr.ai/api/v1/knowledge-base"
headers = {
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.status_code)
print(response.json())
const response = await fetch("https://api.pingr.ai/api/v1/knowledge-base", {
method: "GET",
headers: {
"Authorization": "Bearer <token>"
}
});
const data = await response.json();
console.log(data);
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.pingr.ai/api/v1/knowledge-base"))
.header("Authorization", "Bearer <token>")
.GET()
.build();
HttpResponse<String> response =
HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
{
"documents": [
{
"id": "c5d1e2f3-4a5b-6c7d-8e9f-0123456789ab",
"organization_id": "93f35dc2-5d46-4e58-a9ee-038c35d9bcf1",
"document_type": "pdf",
"file_name": "product_manual.pdf",
"uploaded_at": "2026-09-07T12:00:00Z",
"updated_at": "2026-09-07T12:00:00Z"
},
{
"id": "d6e2f3a4-5b6c-7d8e-9f01-123456789abc",
"organization_id": "93f35dc2-5d46-4e58-a9ee-038c35d9bcf1",
"document_type": "docx",
"file_name": "faqs_and_pricing_2026.docx",
"uploaded_at": "2026-09-07T12:15:00Z",
"updated_at": "2026-09-07T12:15:00Z"
}
]
}
{
"detail": "Unauthorized"
}
Returns a list of all active knowledge base documents uploaded for the authenticated organization, including file formats, original filenames, and upload timestamps.
Authentication
This endpoint requires Bearer token authentication.Authorization: Bearer <token>
| Header | Type | Required | Description | Format |
|---|---|---|---|---|
Authorization | string | Yes | Scoped organization API key or Bearer JWT token | Bearer <token> |
Input parameters
string
required
Bearer token for authentication. Format:
Bearer <token>.Response Fields
KnowledgeDocumentResponse[]
curl -X GET "https://api.pingr.ai/api/v1/knowledge-base" \
-H "Authorization: Bearer <token>"
import requests
url = "https://api.pingr.ai/api/v1/knowledge-base"
headers = {
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.status_code)
print(response.json())
const response = await fetch("https://api.pingr.ai/api/v1/knowledge-base", {
method: "GET",
headers: {
"Authorization": "Bearer <token>"
}
});
const data = await response.json();
console.log(data);
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.pingr.ai/api/v1/knowledge-base"))
.header("Authorization", "Bearer <token>")
.GET()
.build();
HttpResponse<String> response =
HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
{
"documents": [
{
"id": "c5d1e2f3-4a5b-6c7d-8e9f-0123456789ab",
"organization_id": "93f35dc2-5d46-4e58-a9ee-038c35d9bcf1",
"document_type": "pdf",
"file_name": "product_manual.pdf",
"uploaded_at": "2026-09-07T12:00:00Z",
"updated_at": "2026-09-07T12:00:00Z"
},
{
"id": "d6e2f3a4-5b6c-7d8e-9f01-123456789abc",
"organization_id": "93f35dc2-5d46-4e58-a9ee-038c35d9bcf1",
"document_type": "docx",
"file_name": "faqs_and_pricing_2026.docx",
"uploaded_at": "2026-09-07T12:15:00Z",
"updated_at": "2026-09-07T12:15:00Z"
}
]
}
{
"detail": "Unauthorized"
}
‹ PreviousNext ›
Download document
GET /api/v1/knowledge-base/{document_id}/download
Was this page helpful?