Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 660 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 660 Bytes

OpenCX TypeScript Client

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.

Installation

npm install https://github.com/openchatai/opencx-oapi-ts

Usage

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);