Open-source TypeScript SDK and CLI for the post2all public API.
| Package | Description |
|---|---|
@post2all/sdk |
TypeScript SDK — typed client for account connections, publishing, and analytics |
@post2all/cli |
CLI tool — connect accounts and manage posts/analytics from terminal |
pnpm add -g @post2all/cli
post2all config set-key amp_xxx
post2all accountspnpm add @post2all/sdkimport { Post2allClient } from "@post2all/sdk";
const client = new Post2allClient({
apiKey: process.env.POST2ALL_API_KEY,
});
const accounts = await client.listAccounts();
const analytics = await client.getAccountAnalytics(accounts.accounts[0].id);The SDK and CLI can also start headless social-account connections. OAuth users authorize directly with the social network and do not need a post2all account or login session. Business and Agency workspaces can create optional Profiles for clients, brands, or customers; client.forProfile(profileId) and CLI --profile-id provide a shared x-profile-id organization context for filtering lists and organizing new connections/posts. Profiles are not separate security tenants, and moving an account does not break existing post targets. Business supports 2 profiles and Agency supports up to 10 profiles. The SDK also exposes account-wide and per-post analytics plus failed-target retry without republishing successful targets.
pnpm install
pnpm run build
pnpm run typecheck
pnpm run lint- Changelog — versioned SDK and CLI changes and deprecations
- post2all — social media scheduling platform
- API Reference — full REST API documentation