Skip to main content
This guide walks you from zero → REST API ready:
  1. Sign up / log in at postsiva.com
  2. Create a workspace
  3. Connect accounts (Settings → Integrations)
  4. Create API key (Settings → API Keys) — use all REST APIs
  5. Post / automate via REST or MCP
API keys and Unified MCP require the Pro plan (api_keys_enabled + mcp_enabled). See Plans.

Part 1 — What to do in the Postsiva UI

Complete these in the web app at postsiva.com (or your workspace URL).

1. Sign up or log in

  1. Go to postsiva.comsign up or log in.
  2. Create a workspace (or accept an invite).
  3. Confirm the correct workspace in the switcher. All OAuth tokens, posts, and API keys are scoped to it.

2. Upgrade if you need API / MCP

  1. Go to Settings → Billing (or Pricing).
  2. Subscribe to Pro (or higher) so API Keys and MCP are unlocked.
  3. After upgrade, refresh Settings — API Keys and MCP should no longer show a plan gate.

3. Connect social accounts (Integrations)

  1. Open Settings → Integrations (or Connect accounts).
  2. Click each network you need: LinkedIn, Facebook, Instagram, TikTok, YouTube, Threads, Pinterest, Bluesky.
  3. Finish the OAuth popup (grant all requested permissions).
  4. For Facebook: pick the Pages you want to manage.
  5. For LinkedIn: enable company / org pages if you will post as pages (not only personal).
  6. For Pinterest: note which boards exist (you need board IDs when posting).
  7. For Bluesky: enter handle + app password (no OAuth redirect).
  8. Confirm each site shows Connected.
If a platform is not connected in this workspace, posting and analytics return NOT_CONNECTED (or empty slices). Connect in the UI or via OAuth API below.

4. Create a workspace API key (use REST APIs)

  1. Open Settings → API Keys (under Integrations / developer settings in the app).
  2. Click Create API Key.
  3. Set:
    • Name — e.g. n8n production
    • Scope — see IDs and scopes:
      • full — all platforms (best for most integrations)
      • linkedin,instagram — only those platforms for connect/post
      • linkedin_only — LinkedIn only (default in some setups)
      • linkedin_postsread-only GET /unified/posts (LinkedIn)
  4. Copy the secret once: psk_live_… — it is not shown again.
  5. Store it in your password manager / secrets store (never in git).
Use this key as X-API-Key: psk_live_… on every REST request to https://backend.postsiva.com. See API Overview.

5. (Optional) Copy MCP URL for Cursor / Claude

  1. Open Settings → MCP (or Integrations → MCP).
  2. CLI (Cursor / Claude Code): https://mcp.postsiva.com/mcp with header X-API-Key: psk_live_YOUR_KEY
  3. Claude.ai: https://mcp.postsiva.com/web/mcp with OAuth only (no API key)
  4. ChatGPT MCP: https://mcp.postsiva.com/web/mcp?api-key=psk_live_YOUR_KEY
  5. Follow Connect MCP and Cursor.
Before scripting:
  1. Use the Composer to publish a small test post to one connected account.
  2. Open Inbox / Comments and Analytics once so data exists in the DB for API reads.

Part 2 — Connect accounts programmatically

Use these when building onboarding into your product (users never touch Postsiva UI for linking).

Auth for OAuth routes

Key scope restricts which platforms you may connect (e.g. linkedin_only cannot start Instagram OAuth).

A) Start OAuth / get connect URL

POST /unified/oauth/url
Body Response (OAuth platforms)
Open each auth_url in the browser (or redirect the end user). After callback, Postsiva stores tokens on the workspace.

B) Bluesky connect (no redirect)

auth_url is null on success — connect completes in this call.

C) Check connection status

GET /unified/oauth/token
Look for "connected": true per platform. Token payloads may include platform user/page ids — treat access tokens as secrets.

D) Disconnect

DELETE /unified/oauth/token?platform=linkedin&platform=instagram

E) Same flow via MCP

Tool: manage_platform_connection Tool: get_accounts — list connections / profile metadata.

Part 3 — After connect: automate with the API key

Always send:
Workspace is taken from the key — X-Workspace-Id is optional (must match if sent).

Typical automation sequence

1

Confirm accounts

GET /unified/oauth/token or MCP get_accounts.
2

Upload media (if needed)

POST /media/upload → save media_id / public_url. See Media.
3

Optional AI draft

POST /unified/content/generate or MCP idea_to_content. See AI Content.
4

Publish, draft, or schedule

POST /unified/post/text|image|carousel|video — see Posting and the full Posting parameters reference.
5

Read back

GET /unified/posts, GET /unified/analytics, GET /unified/comments.

Minimal first post (LinkedIn personal)

Facebook Page (required facebook_page_ids)

Page IDs appear in the UI after connecting Facebook, or in OAuth token / account profile responses.

LinkedIn company page + optional personal

Image post using media_id


Part 4 — Checklist


Next pages

Posting parameters

Every unified + per-platform field for text, image, carousel, video.

OAuth API

Full request/response for connect, status, disconnect.

Authentication

Headers, scopes, plan gates.

MCP tools

Agent tools including manage_platform_connection and publish.