SDK Overview
Official SDKs for the MisarSocial API — schedule posts, generate content, and track trends from your codebase.
Available SDKs
TypeScript / JavaScript
Official JS/TS SDK. Works in Node.js, Bun, and any runtime with native fetch.
Installation
npm install @misar/social-sdkpnpm add @misar/social-sdkyarn add @misar/social-sdkQuick Example
import { MisarSocialClient } from "@misar/social-sdk";
const client = new MisarSocialClient({
apiKey: process.env.MISARSOCIAL_API_KEY!,
});
const { variants } = await client.generate({
topic: "Our new open-source TypeScript SDK",
platforms: ["twitter", "linkedin"],
tone: "professional",
count: 3,
});
const post = await client.schedule({
connectedAccountId: "550e8400-...",
platform: "twitter",
contentText: variants[0].variants[0].caption,
scheduledAt: "2026-05-22T10:00:00Z",
});
console.log(post.id, post.status);Authentication
Provide your API key when constructing the client:
const client = new MisarSocialClient({
apiKey: process.env.MISARSOCIAL_API_KEY!,
baseUrl: "https://api.misar.io/social", // default, can override
});Generate API keys from Dashboard → Settings → API Keys in social.misar.io.