Quick Start

Set up the Conversa SDK in your Node.js project and make your first API call.

Prerequisites

Step 1 — Initialise a project

Create a project directory and initialise package.json:

mkdir -p conversa-app && cd conversa-app && npm init -y

Step 2 — Clone the examples workspace

The SDK ships with a working examples repository. Clone it to get a full local copy with all dependencies and the environment verifier:

git clone https://github.com/conversa-platform-sdk/conversa-sdk-examples.git conversa-workspace
cd conversa-workspace

Step 3 — Install and verify

Install dependencies and run the environment verifier. The verifier checks your Node version, API reachability, and local registry config:

npm install
npm test
Checking environment... node: v22.0.0 platform: darwin user: developer host: macbook.local Checking API reachability... API status: ok All checks passed. Your workspace is ready.

Step 4 — Add your API key

Create a .env file with your credentials:

echo "CONVERSA_API_KEY=your_key_here" >> .env

Step 5 — Make your first call

Run the included example to confirm the SDK can reach the Conversa API:

node index.js
SDK reachable: ok
Next: See Authentication → for API key setup.
Next: Channels API →