Strongly-typed SDK for the OpenCX API.
Types are generated based on the OpenAPI spec using OpenAPI TypeScript.
For documentation, see our API reference, or use the Swagger UI.
npm install https://github.com/openchatai/opencx-oapi-ts
import { createOpenCXClient } from "opencx-oapi-ts";
const opencx = createOpenCXClient({
apiKey: process.env.OPENCX_API_KEY!,
});
const sessions = await opencx.GET("/chat/sessions");
console.log(sessions.data);