Skip to content

PostSider / Developer quickstart

Developer & AI agent setup

From connected agent to verified draft.

Stop connecting platforms one by one. Give an MCP client or backend access to the channels you already connected in PostSider, then prove the first action worked before scheduling a post.

7-day trial · No credit card · MCP, REST API and SDK on every plan

PostSider · First run
  1. 01 Connect a social account Ready
  2. 02 List channels Read-only
  3. 03 Save draft Created
  4. 04 Read the saved post Verified

Nothing is published in this first-run workflow.

Before you start

Two things, then one connection.

01

Get a PostSider account

Create an account or sign in. The first run is a trial; you do not need to upgrade just to test MCP or the API.

02

Connect one social account

Open Channels in the dashboard and complete the platform connection. Choose a test account if you have one. The agent can only target channels available in your PostSider organization.

03

Choose how to authenticate

For hosted MCP, use the OAuth sign-in flow through your compatible client. For the local MCP package or REST API, generate a key in Settings → API. Never put that key in a public repository, client-side script or URL.

MCP setup

Connect the client you already use.

The hosted endpoint is https://mcp.postsider.com/mcp. Select a client for a configuration example taken from the current PostSider product and MCP package.

Open in-app MCP setup →
Hosted MCP · OAuth

Add the remote MCP server in your terminal. Your client will handle the sign-in and permission request.

claude mcp add --transport http postsider https://mcp.postsider.com/mcp

Hosted MCP requires a compatible client that supports the OAuth flow. Account permissions, client compatibility and connection prompts can vary. For local integrations, you must install Node.js and have npx available.

First successful action

Read first. Save one draft. Verify the result.

A connected MCP server does not prove your agent can reach the right account. Use a read-only test before allowing any write, and stop at a draft for your first run.

01 / Read-only
Use PostSider to list my connected channels. Do not create or change anything.
Show each channel name, provider and returned ID.
If no channels are connected, tell me how to connect one in the dashboard.
02 / Draft and readback
First list the connected PostSider channels and ask me to choose one.
Check the rules for that channel, then propose one short test caption.
After I confirm, save exactly one post with type=draft.
Read the saved post back by the returned post ID, then report its content, channel and state.
Do not schedule, publish, delete, or modify any other post.
Approval is not a prompt. Asking an agent to wait for permission is guidance, not enforced access control. Keep write confirmations enabled in your client. Formal team approval workflows depend on your plan.

REST API & Node SDK

Prefer code over an agent?

The public API runs at https://api.postsider.com/public/v1. Unlike hosted MCP OAuth, it accepts an organization API key as the raw Authorization header value — no Bearer prefix.

01 / Find a connected channel
# 1. Create a key in PostSider Settings → API.
# 2. Keep it in your local shell; never paste it in a frontend or commit it.
export POSTSIDER_API_KEY="YOUR_API_KEY"

# Read your real channel IDs (raw Authorization value, no Bearer prefix).
curl --fail-with-body --silent --show-error \
  -H "Authorization: $POSTSIDER_API_KEY" \
  https://api.postsider.com/public/v1/integrations

The next sample is intentionally draft-only and targets an X channel. For other platforms, use their current provider-specific validation and settings schema rather than copying the X settings.

02 / Create and read back a draft
// Node.js 18+. Run server-side only after choosing an X channel.
// Usage: POSTSIDER_API_KEY=... POSTSIDER_CHANNEL_ID=... node draft.mjs
import { randomUUID } from 'node:crypto';
const root = 'https://api.postsider.com/public/v1';
const key = process.env.POSTSIDER_API_KEY;
const channelId = process.env.POSTSIDER_CHANNEL_ID;
if (!key || !channelId) throw new Error('Set both environment variables');
const headers = { Authorization: key, 'Content-Type': 'application/json' };
const response = await fetch(root + '/integrations', { headers });
if (!response.ok) throw new Error('Channel lookup failed: ' + response.status);
const channels = await response.json();
const channel = channels.find(c => c.id === channelId && !c.disabled);
if (!channel || channel.identifier !== 'x') throw new Error('Choose a connected X channel ID');
const payload = {
  type: 'draft',
  date: new Date(Date.now() + 86_400_000).toISOString(),
  posts: [{
    integration: { id: channelId },
    value: [{ content: 'A test draft from PostSider.', image: [] }],
    settings: { __type: 'x', who_can_reply_post: 'everyone' },
  }],
};
// Store this key alongside the draft request. Reuse it after a timeout.
// For a new post use a fresh key; for a retry reuse POSTSIDER_REQUEST_KEY.
const requestKey = process.env.POSTSIDER_REQUEST_KEY || randomUUID();
console.log('Save this non-secret Idempotency-Key for retries:', requestKey);
const created = await fetch(root + '/posts', {
  method: 'POST',
  headers: { ...headers, 'Idempotency-Key': requestKey },
  body: JSON.stringify(payload),
});
if (!created.ok) throw new Error('Draft creation failed: ' + created.status + ' ' + await created.text());
const records = await created.json();
const postId = records[0]?.postId;
if (!postId) throw new Error('Missing postId in response');
const saved = await fetch(root + '/posts/' + encodeURIComponent(postId), { headers });
if (!saved.ok) throw new Error('Readback failed: ' + saved.status);
console.log(JSON.stringify(await saved.json(), null, 2));
// A saved draft is not a published post.

Troubleshooting

Fix the first failure without guessing.

Is the hosted MCP server the same as the local package?

Both expose PostSider publishing tools, but use different authentication and have a small transport-specific capability difference. Hosted MCP uses OAuth and the /mcp HTTP endpoint. The local @postsider/mcp process uses an organization API key and can upload from files on the machine running it.

Does a prompt saying “do not publish” enforce security?

No. A prompt is workflow guidance, not an access-control boundary. MCP clients may show action confirmations. Current PostSider named API keys support scopes: new keys default to read-only, and draft creation requires posts:write. That write scope also permits scheduling and publishing, so it is not a draft-only permission. Older credentials may have broader grants. Keep keys private, review permissions and use draft-first testing.

Why does the REST API return 401?

Check the endpoint, key and organization. Organization API keys are sent as the raw Authorization header value, without the Bearer prefix. Hosted MCP is different: it uses OAuth login.

Why is the post not visible or published?

Check that you selected the returned channel ID and saved a draft. A successful create response is not proof of delivery. Read the post by its returned ID and check the channel-level status or error.

What about quotas, approvals and webhooks?

API and MCP access are included in current plans. Channel limits, monthly post quotas and collaboration permissions still apply. Formal approval workflows require Team or higher. Webhook availability and setup must be checked against your current plan and the documentation.

One working integration is the best demo.

Connect a channel, save a draft, and verify the result. You can build a publishing workflow from there.