Get Knowledge Entry
Get a single knowledge entry by ID.
Request
curl -X GET "https://platform.protobox.ai/api/v1/knowledge/695c71705a8b2ca8d9016050" \
-H "Authorization: Bearer <access_token>"const response = await fetch('https://platform.protobox.ai/api/v1/knowledge/695c71705a8b2ca8d9016050', {
headers: {
'Authorization': 'Bearer ' + accessToken,
}
});
const { data } = await response.json();
console.log('Title:', data.title);
console.log('Content:', data.content);import requests
response = requests.get(
'https://platform.protobox.ai/api/v1/knowledge/695c71705a8b2ca8d9016050',
headers={'Authorization': f'Bearer {access_token}'}
)
entry = response.json()['data']
print(f"Title: {entry['title']}")
print(f"Source: {entry['source']}")Response
{
"success": true,
"data": {
"id": "695c71705a8b2ca8d9016050",
"workspaceId": "674e1234567890abcdef0001",
"title": "Return Policy",
"content": "Our return policy allows returns within 30 days of purchase. Items must be unused and in original packaging. Refunds are processed within 5-7 business days.",
"source": "manual",
"metadata": {
"category": "policies",
"tags": ["returns", "refunds", "policy"]
},
"searchableText": "return policy our return policy allows returns within 30 days...",
"isEnabled": true,
"tokenCount": 42,
"folderId": "folder_policies",
"createdBy": "694f0bbbd73f06b928da6825",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Knowledge entry not found"
}
}Path Parameters
idstringrequiredKnowledge entry ID.
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique entry ID |
workspaceId | string | Workspace ID |
title | string | Entry title |
content | string | Full content |
source | string | Source type |
metadata | object | Metadata including tags |
searchableText | string | Normalized text for search |
isEnabled | boolean | Search enabled status |
tokenCount | number | Estimated token count |
folderId | string | Folder ID (if organized) |
storageInfo | object | File storage details (if uploaded) |
syncConfig | object | URL sync config (if webpage) |
createdBy | string | Creator user ID |
createdAt | string | ISO 8601 timestamp |
updatedAt | string | ISO 8601 timestamp |