Misar IO Docs

SDK Overview

Official SDKs for the MisarSocial API — schedule posts, generate content, and track trends from your codebase.

Available SDKs

Installation

npm install @misar/social-sdk
pnpm add @misar/social-sdk
yarn add @misar/social-sdk

Quick 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.