Skip to content

JavaScript SDK

Official JavaScript SDK for OpenComplai.

Overview

The JavaScript SDK provides an easy-to-use interface for interacting with OpenComplai in Node.js and browser environments.

Installation

ash npm install @opencomplai/sdk

Quick Start

`javascript import { OpenComplai } from 'opencomplai/sdk';

const client = new OpenComplai({ apiKey: 'your-api-key' });

// Create a document const doc = await client.documents.create({ title: "My Document", content: "# Hello World" });

console.log(\Created: \); `

Sections

Getting Help

If you can't find what you're looking for, see Troubleshooting.