Client libraries

Skode SDKs

Official client libraries for the Skode platform — one client for CRM, Flow, Forms, and Automate, behind one API key. Dependency-free.

Live
Install
npm install https://developer.skode.ai/sdk/skode-sdk-0.1.0.tgz

Hosted on Skode — works today. Registry names (@skode/sdk) ship once published to npm.

@skode/sdk

Uses the global fetch (Node 18+, Deno, browsers).

Quick start
import { Skode } from '@skode/sdk';

const skode = new Skode({ apiKey: 'sk_...' });

// Flow — send to any connected channel
await skode.flow.messages.send({ channel: 'whatsapp', to: '+15551234567', content: 'Hi!' });

// Automate — run Skode Skript directly
const res = await skode.automate.code.run('return input.n * 2', { n: 21 });
console.log(res.output); // 42
Coverage
CRMNot yet — 0.1.0 calls older CRM endpoints that refuse API keys. Call CRM API v1 directly (Docs → CRM API).
Flowcontacts · conversations · messages.send
Formsforms · submissions
Automateworkflows · runs · connectors · catalog · code.run
Method reference
CallReturnsNotes
skode.flow.conversations.list({ status })Conversation[]Filter by open/closed, channel.
skode.flow.messages.send({ channel, to, content })MessageAny connected channel.
skode.forms.forms.list()Form[]Structured forms incl. field definitions.
skode.forms.submissions.list({ form })Submission[]Answers keyed by field.
skode.automate.workflows.run(id, triggerData)RunFire a workflow programmatically.
skode.automate.code.run(code, input){ output, logs, error }Skode Skript, sandboxed.

Python mirrors the same tree: skode.automate.runs.list(limit=10). Every method raises SkodeError on non-2xx.