Skip to main content
GET
/
documents
/
{id}
/
content
TypeScript SDK
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>"
}

Authorizations

Oai-Api-Key
string
header
required

Path Parameters

id
string
required
Example:

"document_123"

Query Parameters

spaceId
string
required

The ID of the space containing the documents

Example:

"space_123"

Response

Successfully retrieved processed content

id
string
required
filename
string
required
content
string
required