Skip to content

openchatai/opencx-oapi-ts

Repository files navigation

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

About

Type-safe client library for the OpenCX API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published