SocialMCP

आखिरी अपडेट: 21 नवंबर 2026

SocialMCP REST API

REST API से आपकी स्क्रिप्ट और ऐप वह सब कर सकते हैं जो आप डैशबोर्ड में करते हैं, यानी अभी पोस्ट करना, शेड्यूल करना, इमेज अपलोड करना और देखना कि क्या पोस्ट हुआ। यह HTTPS पर JSON में बात करता है और एक API कुंजी से चलता है।

API रेफ़रेंस

हर एंडपॉइंट जिसे आप API कुंजी से कॉल कर सकते हैं, सीधे API से बनाया गया। एंडपॉइंट के नाम, फ़ील्ड और उनके विवरण अंग्रेज़ी में हैं।

बेस URL: https://getsocialmcp.com/api/v1

Networks

GET/networks

Networks you can post to

Without an API key: the networks open to everyone on SocialMCP. With a key: the networks you can connect and post to, which can include ones still in testing.

रिस्पॉन्स
  • 200Networksobject
  • 401Not signed in, or the API key is wrong

Account

GET/me

Who you are, your settings, connected accounts, and your plan with what you’ve used

रिस्पॉन्स
  • 200Youobject
  • 401Not signed in, or the API key is wrong

GET/settings

Your posting settings

रिस्पॉन्स
  • 200SettingsSettings
  • 401Not signed in, or the API key is wrong

PATCH/settings

Change posting settings

रिक्वेस्ट बॉडी
  • timezonestring

    e.g. Europe/London

  • localestring

    e.g. en

  • latePolicy"30m" | "2h" | "6h" | "always" | "ask"

    How late a delayed post may still go out: 30m, 2h, 6h, always, or ask (never post late).

  • linkedinThreads"combine" | "first"

    LinkedIn has no threads: combine the parts into one post, or post the first part only.

  • defaultNetworks("x" | "linkedin")[] | null

    Where posts go when no network is named; null = every connected account.

  • approvalMode"auto" | "ask_first"

    ask_first: posts made by agents wait for approval in the dashboard.

रिस्पॉन्स
  • 200Updated settingsSettings
  • 401Not signed in, or the API key is wrong
  • 422Invalid request (e.g. too long for the network)

POST/login-links

Get a link that opens the dashboard already signed in

Single-use, valid 10 minutes. path is where it opens: /app (calendar), /app?post={id} or /app/settings. Approving agent posts, API keys and agents still need an email sign-in.

रिक्वेस्ट बॉडी
  • pathstring
रिस्पॉन्स
  • 200Login linkLink
  • 401Not signed in, or the API key is wrong
  • 422Invalid request (e.g. too long for the network)

Accounts

GET/accounts

Connected X and LinkedIn accounts

रिस्पॉन्स
  • 200Accountsobject
  • 401Not signed in, or the API key is wrong

PATCH/accounts/{id}

Change an account’s settings

xLongPosts: allow posts over 280 characters on X. auto follows the X subscription detected when you connected.

पैरामीटर
  • idstringज़रूरी
रिक्वेस्ट बॉडी
  • xLongPosts"auto" | "on" | "off"
रिस्पॉन्स
  • 200Updated accountAccount
  • 401Not signed in, or the API key is wrong
  • 404Not found
  • 422Invalid request (e.g. too long for the network)

POST/accounts/connect

Get a link to connect a social account

A single-use dashboard link valid for 10 minutes. Some networks need a regular sign-in to SocialMCP before connecting.

रिक्वेस्ट बॉडी
  • network"x" | "linkedin"ज़रूरी
रिस्पॉन्स
  • 200Connect linkLink
  • 401Not signed in, or the API key is wrong
  • 403This network is not available (network_unavailable)

Posting times

PUT/posting-times

Set when you usually post

Saves posting times on the given accounts (all connected accounts when none are given). An empty list turns them off. Upcoming posts placed in a time that no longer exists move to the first open posting time from the start of their day (moved); posts left with no posting time keep their time (kept).

रिक्वेस्ट बॉडी
  • accountsstring[]

    Account ids. Default: every connected account.

  • timesPostingTime[]ज़रूरी
रिस्पॉन्स
  • 200Savedobject
  • 401Not signed in, or the API key is wrong
  • 404Not found
  • 409Conflicts with the current state (e.g. account not connected)
  • 422Invalid request (e.g. too long for the network)

GET/posting-times/open

Open posting times in a range

Upcoming posting times that have no post yet, each with the accounts it is open on. Up to about two months at a time.

पैरामीटर
  • fromstring (date-time)(query)ज़रूरी
  • tostring (date-time)(query)ज़रूरी
रिस्पॉन्स
  • 200Open posting timesobject
  • 401Not signed in, or the API key is wrong
  • 422Invalid request (e.g. too long for the network)

GET/posting-times/next

Where a new post would go

The next open posting time of each account, as POST /posts with postingTime next would use them. Nothing is saved.

पैरामीटर
  • accountsstring(query)ज़रूरी

    Comma-separated account ids.

  • unitsinteger(query)

    Number of thread parts, on networks that take threads. Default 1.

रिस्पॉन्स
  • 200Next posting timesobject
  • 401Not signed in, or the API key is wrong
  • 404Not found
  • 409Conflicts with the current state (e.g. account not connected)

Posts

POST/posts

Post now or schedule

Checks length and limits for every network before accepting. Each network’s result appears in targets. With postingTime next, accounts whose next open times differ get a post each: the others are in alsoCreated.

रिक्वेस्ट बॉडी
  • textstring

    Shorthand for a single-part post.

  • partsPart[]

    One item per post in a thread, on networks that take threads. Other networks get a single post.

  • networks("x" | "linkedin")[]

    Defaults to your default networks (Settings).

  • accountsstring[]

    Specific account ids, instead of networks.

  • scheduledAtstring (date-time)

    ISO 8601 time. Omit to post now. e.g. 2026-11-21T09:00:00Z

  • postingTime"next" | string (date-time)

    Put the post in your posting times: next for each account’s next open one (accounts whose next times differ get a post each), or one open posting time from GET /posting-times/open. e.g. next

  • overridesobject

    A network’s own version of the post. LinkedIn takes a single part.

  • idempotencyKeystring

    Sending the same key again returns the first post instead of posting twice.

रिस्पॉन्स
  • 200Already created with this idempotencyKeyPost + object
  • 201ScheduledPost + object
  • 401Not signed in, or the API key is wrong
  • 403Not allowed for this caller (dashboard_only, confirm_identity), or the network is turned off (network_unavailable)
  • 404Not found
  • 409Conflicts with the current state (e.g. account not connected)
  • 410An image was removed after its post was published (media_removed): upload it again
  • 422Invalid request (e.g. too long for the network)
  • 429Daily posting limit reached

GET/posts

List posts

Newest first; with from (a calendar range), earliest first. Pass nextCursor back as cursor for the next page.

पैरामीटर
  • fromstring (date-time)(query)
  • tostring (date-time)(query)
  • statusstring(query)

    Comma-separated: scheduled, publishing, published, partial, failed, missed, canceled

  • limitinteger(query)
  • cursorstring(query)

    For the next page: nextCursor from the previous response.

रिस्पॉन्स
  • 200Postsobject
  • 401Not signed in, or the API key is wrong
  • 422Invalid request (e.g. too long for the network)

GET/posts/{id}

Get a post and its result on each network

पैरामीटर
  • idstringज़रूरी
रिस्पॉन्स
  • 200PostPost
  • 401Not signed in, or the API key is wrong
  • 404Not found

PATCH/posts/{id}

Edit or reschedule a post that hasn’t gone out

पैरामीटर
  • idstringज़रूरी
रिक्वेस्ट बॉडी
  • textstring
  • partsPart[]
  • scheduledAtstring (date-time)
  • postingTime"next" | string (date-time)

    Move it into your posting times: next for the next one open on all its accounts, or one open posting time. e.g. next

  • overridesobject

    A network’s own version of the post. LinkedIn takes a single part.

रिस्पॉन्स
  • 200UpdatedPost
  • 401Not signed in, or the API key is wrong
  • 403Not allowed for this caller (dashboard_only, confirm_identity), or the network is turned off (network_unavailable)
  • 404Not found
  • 409Conflicts with the current state (e.g. account not connected)
  • 410An image was removed after its post was published (media_removed): upload it again
  • 422Invalid request (e.g. too long for the network)
  • 429Daily posting limit reached

DELETE/posts/{id}

Delete a post from SocialMCP

Removes it from your calendar. Anything already live on X or LinkedIn stays there.

पैरामीटर
  • idstringज़रूरी
रिस्पॉन्स
  • 200Deletedobject
  • 401Not signed in, or the API key is wrong
  • 404Not found
  • 409Conflicts with the current state (e.g. account not connected)

POST/posts/{id}/cancel

Cancel what hasn’t gone out yet

पैरामीटर
  • idstringज़रूरी
रिस्पॉन्स
  • 200CanceledPost
  • 401Not signed in, or the API key is wrong
  • 404Not found

POST/posts/{id}/retry

Post failed or missed networks now

A thread that stopped part-way continues after the last part that went out.

पैरामीटर
  • idstringज़रूरी
रिस्पॉन्स
  • 200RetryingPost
  • 401Not signed in, or the API key is wrong
  • 404Not found
  • 409Conflicts with the current state (e.g. account not connected)
  • 429Daily posting limit reached

Media

POST/media

Upload an image

JPG, PNG, WebP or GIF up to 5 MB. Send multipart/form-data with `file` (and optional `alt`), or JSON with `url` (https) and optional `alt`.

रिक्वेस्ट बॉडी
  • urlstring (uri)ज़रूरी
  • altstring
रिस्पॉन्स
  • 201UploadedMedia
  • 401Not signed in, or the API key is wrong
  • 413Too large
  • 415Not an image we accept
  • 422Invalid request (e.g. too long for the network)

ऑब्जेक्ट

Account

  • idstringज़रूरी
  • network"x" | "linkedin"ज़रूरी
  • usernamestring | nullज़रूरी
  • displayNamestring | nullज़रूरी
  • avatarUrlstring | nullज़रूरी
  • status"active" | "expiring" | "expired" | "revoked" | "error"ज़रूरी
  • tokenExpiresAtstring | nullज़रूरी
  • connectedAtstringज़रूरी
  • xobject | nullज़रूरी
  • postingTimesPostingTime[] | nullज़रूरी

    When you usually post here, in your timezone. null: not set up yet; empty: none.

Error

  • errorobjectज़रूरी

Media

  • idstringज़रूरी
  • mimestringज़रूरी
  • sizeintegerज़रूरी
  • altstring | nullज़रूरी

NetworkInfo

  • id"x" | "linkedin"ज़रूरी
  • namestringज़रूरी
  • characterLimitintegerज़रूरी

    Characters per post (per part in a thread).

  • threadsbooleanज़रूरी

    Takes threads: several parts posted as a chain.

  • maxImagesintegerज़रूरी

    Images per post (per part in a thread).

OpenPostingTime

  • atstringज़रूरी

    The posting time (ISO 8601).

  • accountIdsstring[]ज़रूरी

Part

  • textstringज़रूरी

    e.g. Shipping day. Here is what changed 🧵

  • mediaIdsstring[]

    Ids from POST /media. The limit depends on the destination.

Plan

  • planobjectज़रूरी
  • limitsobjectज़रूरी

    null = no limit. A thread is one post, except toward the X allowances, where each tweet counts.

  • daystringज़रूरी
  • monthstringज़रूरी
  • usedobjectज़रूरी
  • accountsobject[]ज़रूरी

Post

  • idstringज़रूरी
  • status"scheduled" | "publishing" | "published" | "partial" | "failed" | "missed" | "canceled"ज़रूरी
  • kind"post" | "thread"ज़रूरी
  • partsPart[]ज़रूरी
  • scheduledAtstringज़रूरी
  • slotAtstring | nullज़रूरी

    The posting time this post was put in (it goes out within a few minutes of it). null when the post has a time of its own.

  • splitFromstring | nullज़रूरी

    Set when this post was split off another one because its accounts’ posting times differ: that post’s id.

  • publishedAtstring | nullज़रूरी
  • createdVia"mcp" | "api" | "cli" | "dashboard"ज़रूरी
  • createdByAgentstring | nullज़रूरी
  • needsApprovalbooleanज़रूरी
  • targetsTarget[]ज़रूरी

PostCreate

  • textstring

    Shorthand for a single-part post.

  • partsPart[]

    One item per post in a thread, on networks that take threads. Other networks get a single post.

  • networks("x" | "linkedin")[]

    Defaults to your default networks (Settings).

  • accountsstring[]

    Specific account ids, instead of networks.

  • scheduledAtstring (date-time)

    ISO 8601 time. Omit to post now. e.g. 2026-11-21T09:00:00Z

  • postingTime"next" | string (date-time)

    Put the post in your posting times: next for each account’s next open one (accounts whose next times differ get a post each), or one open posting time from GET /posting-times/open. e.g. next

  • overridesobject

    A network’s own version of the post. LinkedIn takes a single part.

  • idempotencyKeystring

    Sending the same key again returns the first post instead of posting twice.

PostingTime

  • timestringज़रूरी

    Time of day, 24-hour, in your timezone. e.g. 09:00

  • days("mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun")[]ज़रूरी

    e.g. ["mon","tue","wed","thu","fri"]

Settings

  • timezonestringज़रूरी

    e.g. Europe/London

  • localestringज़रूरी

    e.g. en

  • latePolicy"30m" | "2h" | "6h" | "always" | "ask"ज़रूरी

    How late a delayed post may still go out: 30m, 2h, 6h, always, or ask (never post late).

  • linkedinThreads"combine" | "first"ज़रूरी

    LinkedIn has no threads: combine the parts into one post, or post the first part only.

  • defaultNetworks("x" | "linkedin")[] | nullज़रूरी

    Where posts go when no network is named; null = every connected account.

  • approvalMode"auto" | "ask_first"ज़रूरी

    ask_first: posts made by agents wait for approval in the dashboard.

Target

  • idstringज़रूरी
  • accountIdstringज़रूरी
  • network"x" | "linkedin"ज़रूरी
  • accountstring | nullज़रूरी
  • status"pending" | "publishing" | "published" | "failed" | "missed" | "canceled"ज़रूरी
  • partsPart[]ज़रूरी
  • urlstring | nullज़रूरी

    Link to the live post (the first tweet of a thread).

  • partsPublishedintegerज़रूरी
  • errorobject | nullज़रूरी
  • attemptsintegerज़रूरी
  • nextAttemptAtstring | nullज़रूरी
  • publishedAtstring | nullज़रूरी