Skip to main content
GET
/
api
/
knowledge
/
documents
/
{id}
curl -X GET https://api.example.com/api/knowledge/documents/doc_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "document": {
    "id": "doc_abc123",
    "projectId": "proj_123",
    "fileId": "file_xyz789",
    "fileName": "product-guide.pdf",
    "fileType": "pdf",
    "sourceType": "upload",
    "status": "completed",
    "chunkCount": 45,
    "vectorCount": 45,
    "error": null,
    "metadata": {
      "size": 2048576,
      "pages": 23,
      "language": "en"
    },
    "createdAt": "2026-01-15T10:30:00Z",
    "updatedAt": "2026-01-15T10:35:00Z"
  }
}

Path Parameters

id
string
required
Document ID

Response

success
boolean
Whether the request was successful
document
object | null
Document details or null if not found
curl -X GET https://api.example.com/api/knowledge/documents/doc_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "document": {
    "id": "doc_abc123",
    "projectId": "proj_123",
    "fileId": "file_xyz789",
    "fileName": "product-guide.pdf",
    "fileType": "pdf",
    "sourceType": "upload",
    "status": "completed",
    "chunkCount": 45,
    "vectorCount": 45,
    "error": null,
    "metadata": {
      "size": 2048576,
      "pages": 23,
      "language": "en"
    },
    "createdAt": "2026-01-15T10:30:00Z",
    "updatedAt": "2026-01-15T10:35:00Z"
  }
}