Developers MCP · REST · Webhooks

Build on socialGo

Let AI agents schedule posts through the MCP server, create posts from your own code with the REST API, and get signed webhooks when they publish.

MCP https://app.socialgo.id/api/mcpREST https://app.socialgo.id/api/v1
Quickstart

Your first post in three steps

Everything below works with a single API key. No SDK to install.

  1. Create a keyOn the Pro plan, open Settings › API and generate a key that starts with sg_.
  2. Pick a way inAdd the MCP server to your AI agent, or call the REST API from a script, n8n, Zapier or Make.
  3. Review and publishNew posts land in your calendar. Approve, edit or reschedule them like any other post.
Authentication

One bearer token for everything

Send your API key in the Authorization header on every request. The same key signs your webhooks.

header
Authorization: Bearer sg_your_api_key

Keep keys on the server. Regenerating a key revokes the old one and clears its queue.

MCP server

Let any AI agent post for you

socialGo speaks the Model Context Protocol over Streamable HTTP. Point your agent at the server URL with your key.

Claude Code
claude mcp add --transport http socialgo https://app.socialgo.id/api/mcp \
  --header "Authorization: Bearer sg_your_api_key"
Cursor, Codex, Gemini & others
{
  "mcpServers": {
    "socialgo": {
      "url": "https://app.socialgo.id/api/mcp",
      "headers": { "Authorization": "Bearer sg_your_api_key" }
    }
  }
}

Available tools

  • create_postDraft or schedule a post with a caption, target platforms, an optional time and up to 4 images.
  • list_api_postsList the posts created through the API or MCP, newest first (limit 1 to 100).
  • list_platformsReturn the platform ids socialGo accepts, so the agent never guesses.
REST API

Create and list posts

JSON in, JSON out. Posts created here join the same queue as posts from your AI agents.

POST/api/v1/postsCreate a draft or scheduled post
FieldTypeDescription
captionrequiredstringPost text, up to 5,000 characters.
platformsrequiredstring[]One or more platform ids from the list below.
scheduledAtISO 8601When to publish. Omit to save the post as a draft.
status"draft" | "scheduled"Defaults to scheduled when scheduledAt is set, otherwise draft.
mediastring[]Up to 4 public https image URLs.
request
curl -X POST https://app.socialgo.id/api/v1/posts \
  -H "Authorization: Bearer sg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "caption": "We just shipped dark mode 🌙",
    "platforms": ["x", "linkedin", "threads"],
    "scheduledAt": "2026-12-01T09:00:00+07:00"
  }'
response
HTTP/1.1 201 Created
{
  "data": {
    "id": "api_7f3c…",
    "caption": "We just shipped dark mode 🌙",
    "platforms": ["x", "linkedin", "threads"],
    "media": [],
    "status": "scheduled",
    "scheduledAt": "2026-12-01T02:00:00.000Z",
    "createdAt": "2026-11-21T08:12:44.000Z",
    "state": "queued"
  }
}
GET/api/v1/postsPosts created with this key, newest first
request
curl https://app.socialgo.id/api/v1/posts \
  -H "Authorization: Bearer sg_your_api_key"

Platform ids

facebookinstagramxlinkedintiktokyoutubethreadspinterestblueskymastodonreddit
Webhooks

Know the moment a post goes live

Add your endpoint in Settings › API. socialGo sends a signed POST for every event.

post.published A scheduled post went live.post.failed A platform rejected the post.ping Sent when you test the endpoint.
delivery
POST https://your-app.com/webhooks/socialgo
X-SocialGo-Event: post.published
X-SocialGo-Signature: sha256=9b1c…
{
  "id": "evt_2d41…",
  "event": "post.published",
  "createdAt": "2026-12-01T02:00:03.000Z",
  "data": { … }
}
verify-signature.js
import { createHmac, timingSafeEqual } from "crypto";

// rawBody: the exact request body string, before JSON.parse
export function isFromSocialGo(rawBody, signatureHeader, apiKey) {
  const expected = "sha256=" + createHmac("sha256", apiKey).update(rawBody).digest("hex");
  const a = Buffer.from(expected);
  const b = Buffer.from(signatureHeader || "");
  return a.length === b.length && timingSafeEqual(a, b);
}

Respond with a 2xx within 10 seconds. Redirects are not followed.

Errors & limits

Clear errors, sensible limits

Every error returns JSON with an "error" code and a human-readable "message".

  • 400invalid_jsonThe body is not valid JSON.
  • 401unauthorizedThe Authorization header is missing or the key is malformed.
  • 403pro_requiredThe key does not belong to an active Pro account.
  • 422invalid_inputA field failed validation. The message says which one.
5,000characters per caption
4images per post
200queued posts per key

Frequently
Asked Questions

Start building
Do I need the Pro plan to use the API?

Yes. The MCP server, REST API and webhooks are part of Pro. Free accounts can still use every platform and Nava AI inside the app.

Where do I get an API key?

Open socialGo, go to Settings › API and generate a key. Keys start with sg_ and can be regenerated at any time, which revokes the old one immediately.

When do API posts show up in my calendar?

Posts are queued the moment the API accepts them and are synced into your workspace the next time socialGo is open. From there they follow your normal schedule and approval flow.

Which MCP transport does socialGo use?

Streamable HTTP in stateless mode with JSON responses. It supports protocol versions 2025-06-18, 2025-03-26 and 2024-11-05, so current versions of Claude, Cursor, Codex and other MCP clients connect without extra setup.

Is there a rate limit?

Each key can hold up to 200 unsynced posts in its queue. Open socialGo to sync them and the queue empties again.