Platforms

Fetch Platform Content Doc

Fetch a specific platform doc

get
/v1/platform/content/doc/{docId}/fetch

Description

Retrieves the complete content and metadata of a specific doc. This includes the markdown content and all associated frontmatter.

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

docIdstring* Required

The ID of the doc to fetch

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.platform.content.doc.fetch(

docId
)
{
"name":"string",
"description":"string",
"meta":"object",
"id":"string",
"createdAt":"number",
"updatedAt":"number",
"category":"string",
"tags":[
"string"
],
"index":"number",
"content":"string",
"url":"string"
}
The doc was retrieved successfully