SDK Installation
Overview
The SDK provides the CloudSDK client and webhook utilities (forwardWebhookEvent, handleWebhookEvent).
Install packages:
bash
npm install @syllecta/sdk-js # or yarn add @syllecta/sdk-js
Requirements
- Node.js ≥ 18
- Your Syllecta API key
- Base URL for Syllecta Cloud (production or staging)
Auth strategies
ts
new CloudSDK({ baseUrl: "https://cloud.syllecta.example", auth: { type: "bearer", token: process.env.SYLLECTA_API_KEY! } });