Get Document
Get details of a specific document in a knowledge base.
GET
/api/v1/knowledge/{id}/documents/{documentId}Authorization
apiKey X-API-Key<token>
Your Sim API key (personal or workspace). Generate one from the Sim dashboard under Settings > API Keys.
In: header
Path Parameters
id*string
Knowledge base ID.
documentId*string
Document ID.
Query Parameters
workspaceId*string
The unique identifier of the workspace.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET \ "https://www.sim.ai/api/v1/knowledge/KB_ID/documents/DOC_ID?workspaceId=YOUR_WORKSPACE_ID" \ -H "X-API-Key: YOUR_API_KEY"{
"success": true,
"data": {
"document": {
"id": "doc_abc123",
"knowledgeBaseId": "kb_abc123",
"filename": "Getting Started.pdf",
"fileSize": 204800,
"mimeType": "application/pdf",
"processingStatus": "completed",
"chunkCount": 12,
"tokenCount": 3500,
"characterCount": 18000,
"enabled": true,
"createdAt": "2026-01-15T10:30:00Z"
}
}
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}