Protobox

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

idstringrequired

Knowledge entry ID.

Response Fields

FieldTypeDescription
idstringUnique entry ID
workspaceIdstringWorkspace ID
titlestringEntry title
contentstringFull content
sourcestringSource type
metadataobjectMetadata including tags
searchableTextstringNormalized text for search
isEnabledbooleanSearch enabled status
tokenCountnumberEstimated token count
folderIdstringFolder ID (if organized)
storageInfoobjectFile storage details (if uploaded)
syncConfigobjectURL sync config (if webpage)
createdBystringCreator user ID
createdAtstringISO 8601 timestamp
updatedAtstringISO 8601 timestamp

On this page