TypeScript
import { Orchata } from '@orchata/sdk'; const client = new Orchata({ apiKey: 'oai_your_api_key' }); const { content } = await client.documents.getContent('doc_123', 'space_123');
{ "id": "<string>", "filename": "<string>", "content": "<string>" }
Retrieve the processed markdown content for a document. Only available for documents with COMPLETED status.
"document_123"
The ID of the space containing the documents
"space_123"
Successfully retrieved processed content