Skip to content

Node.js social publishing

Schedule social media posts with Node.js

Use normal server-side JavaScript to read your connected channels and publish through PostSider. Start with raw fetch, then move to the SDK if you want typed helpers.

Start with the social media scheduler API or browse the full developer platform.

How it works

The Node.js flow is just API key, channel ID, post.

There is no browser automation and no separate OAuth implementation in your Node service. Social accounts stay connected in PostSider; your code talks to one API.

01

Load your API key

Keep the PostSider key in an environment variable and use it from a server process, worker or script. Do not ship it to browser code.

02

List connected channels

Read the integrations endpoint first so your code knows the PostSider channel ID it should target.

03

Create the post

Send the content, destination and publish mode to the public API. Use a future UTC timestamp when the post should be scheduled.

04

Handle the result

Keep the returned post ID and inspect publishing state later, or add webhooks when your backend needs event-driven updates.

Concrete example

Start by listing the channels your account can publish to

This is a useful first request because every later post needs a target integration ID. The Authorization header takes the PostSider API key directly.

const apiKey = process.env.POSTSIDER_API_KEY;
if (!apiKey) throw new Error('POSTSIDER_API_KEY is not set');

const response = await fetch(
  'https://api.postsider.com/public/v1/integrations',
  { headers: { Authorization: apiKey } }
);

if (!response.ok) {
  throw new Error(`PostSider API returned ${response.status}`);
}

const channels = await response.json();
console.log(channels);

FAQ

Common questions.

Can I schedule social media posts from Node.js?
Yes. A Node.js service can call the PostSider REST API directly or use the official SDK to create drafts, immediate publications and scheduled posts.
Is there a Node.js SDK?
Yes. PostSider provides an official TypeScript and Node.js SDK around the public API.
Can I run social scheduling from a cron job or queue worker?
Yes. The API works from normal server-side Node.js processes, including cron jobs, workers and serverless functions.
Should I call the API from frontend JavaScript?
No. Keep the API key on the server. Browser code would expose the credential to anyone who can inspect the page or network requests.

Use the same publishing system from code

Connect the channels once. Keep the workflow in your stack.

Call REST directly, use the typed SDK, or expose the same publishing actions to an MCP-compatible agent.