Skip to content
OperadeDocs

Search documentation

Type to search documentation.

Documentation
Copy page
Open raw Markdown

Get a knowledge document

Return a knowledge document with its content and active agent dependencies.

Endpoint

GET/api/v1/workspaces/{workspace_id}/knowledge/{document_id}

Authentication

Operation classAuthenticationMinimum roleAPI key
dashboard-session-apiDashboard session cookie; mutations also require X-CX-Request: 1.memberNot allowed

Parameters

NameInTypeRequiredDescription
workspace_idpathstringYes—
document_idpathstringYes—

Request body

This operation has no request body.

Example

cURL
curl --request GET 'https://operade.ai/api/v1/workspaces/ws_demo/knowledge/doc_demo' \
  --cookie 'cx_session=YOUR_SESSION_COOKIE'

Responses

StatusDescriptionContent
4XXHandled client errorapplication/json: ErrorResponse
200Successful Responseapplication/json: KnowledgeDocumentDetailResponse

4XX application/json response schema

Field pathTypeReferenceFormatNullableRequiredEnumDescription
$objectErrorResponse—NoYes——
errorobjectErrorItem—NoYes——
error.codestring——NoYes——
error.detailsobject——NoNo——
error.messagestring——NoYes——

200 application/json response schema

Field pathTypeReferenceFormatNullableRequiredEnumDescription
$objectKnowledgeDocumentDetailResponse—NoYes——
byte_sizeinteger——NoYes——
chunk_countinteger——NoYes——
contentstring or null——YesYes——
created_atstring—date-timeNoYes——
created_byobjectKnowledgeCreator—NoYes——
created_by.emailstring——NoYes——
created_by.idstring——NoYes——
created_by.namestring——NoYes——
dependent_agentsarray<KnowledgeDependentAgent>——NoYes——
dependent_agents[]objectKnowledgeDependentAgent—NoYes——
dependent_agents[].idstring——NoYes——
dependent_agents[].namestring——NoYes——
errorstring or null——YesYes——
folder_idstring or null——YesYes——
idstring——NoYes——
indexed_atstring or null—date-timeYesYes——
namestring——NoYes——
source_urlstring or null——YesYes——
statusstring——NoYes"pending", "indexing", "ready", "failed"—
typestring——NoYes"text", "file", "url"—
updated_atstring—date-timeNoYes——

Response example

Response body JSON
{
  "id": "string",
  "name": "string",
  "type": "text",
  "status": "pending",
  "error": "string",
  "byte_size": 0,
  "chunk_count": 0,
  "created_by": {
    "id": "string",
    "name": "string",
    "email": "string"
  },
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "indexed_at": "2026-01-01T00:00:00Z",
  "source_url": "string",
  "folder_id": "string",
  "content": "string",
  "dependent_agents": []
}

Errors

Reviewed common and route-declared errors are summarized here; the list is not exhaustive. Start with the distributed error index to find each code's canonical domain page.

StatusCodeDescription
401unauthenticatedAuthentication is missing, invalid, or revoked.
403forbiddenThe authenticated caller does not have access to this operation.
404not_foundThe requested workspace resource was not found.
On this page
  1. Endpoint
  2. Authentication
  3. Parameters
  4. Request body
  5. Example
  6. Responses
  7. 4XX application/json response schema
  8. 200 application/json response schema
  9. Response example
  10. Errors
  11. Related operations