Reports

Fetch Report

Generate a specific report

post
/v1/report/{reportId}/fetch

Description

Generates a report based on the specified report ID and input parameters.

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

reportIdstring* Required

The ID of the report to generate

Request Body * Required

Request Body Schema: application/json

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.report.fetch(

reportId,
{}
)
{}
The report was generated successfully