{"openapi":"3.1.0","info":{"title":"SocialMCP API","version":"1.0.0","description":"Post and schedule to X and LinkedIn. Authenticate with an API key from the dashboard: `Authorization: Bearer smcp_…`.\n\nErrors look like `{ \"error\": { \"code\": \"too_long\", \"message\": \"…\", \"details\": {…} } }`; branch on `code`."},"servers":[{"url":"https://getsocialmcp.com/api/v1"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key from the dashboard (Settings → API keys), e.g. smcp_k7qp…"}},"schemas":{"NetworkInfo":{"type":"object","properties":{"id":{"type":"string","enum":["x","linkedin","facebook","instagram","threads"]},"name":{"type":"string"},"characterLimit":{"type":"integer","description":"Characters per post (per part in a thread)."},"threads":{"type":"boolean","description":"Takes threads: several parts posted as a chain."},"maxImages":{"type":"integer","description":"Images per post (per part in a thread)."}},"required":["id","name","characterLimit","threads","maxImages"]},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{}}},"required":["code","message"]}},"required":["error"]},"Settings":{"type":"object","properties":{"timezone":{"type":"string","example":"Europe/London"},"locale":{"type":"string","example":"en"},"latePolicy":{"type":"string","enum":["30m","2h","6h","always","ask"],"description":"How late a delayed post may still go out: 30m, 2h, 6h, always, or ask (never post late)."},"linkedinThreads":{"type":"string","enum":["combine","first"],"description":"LinkedIn has no threads: combine the parts into one post, or post the first part only."},"defaultNetworks":{"type":["array","null"],"items":{"type":"string","enum":["x","linkedin","facebook","instagram","threads"]},"description":"Where posts go when no network is named; null = every connected account."},"approvalMode":{"type":"string","enum":["auto","ask_first"],"description":"ask_first: posts made by agents wait for approval in the dashboard."}},"required":["timezone","locale","latePolicy","linkedinThreads","defaultNetworks","approvalMode"]},"Account":{"type":"object","properties":{"id":{"type":"string"},"network":{"type":"string","enum":["x","linkedin","facebook","instagram","threads"]},"username":{"type":["string","null"]},"displayName":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"status":{"type":"string","enum":["active","expiring","expired","revoked","error"]},"tokenExpiresAt":{"type":["string","null"]},"connectedAt":{"type":"string"},"x":{"type":["object","null"],"properties":{"subscription":{"type":["string","null"]},"longPosts":{"type":"string","enum":["auto","on","off"]},"allowsLongPosts":{"type":["boolean","null"]}},"required":["subscription","longPosts","allowsLongPosts"]},"postingTimes":{"type":["array","null"],"items":{"$ref":"#/components/schemas/PostingTime"},"description":"When you usually post here, in your timezone. null: not set up yet; empty: none."}},"required":["id","network","username","displayName","avatarUrl","status","tokenExpiresAt","connectedAt","x","postingTimes"]},"PostingTime":{"type":"object","properties":{"time":{"type":"string","example":"09:00","description":"Time of day, 24-hour, in your timezone."},"days":{"type":"array","items":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]},"example":["mon","tue","wed","thu","fri"]}},"required":["time","days"]},"Plan":{"type":"object","properties":{"plan":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"limits":{"type":"object","properties":{"profilesPerNetwork":{"type":"integer"},"postsPerDayPerProfile":{"type":"object","additionalProperties":{"type":["integer","null"]}},"postsPerDay":{"type":["integer","null"]},"postsPerMonthPerNetwork":{"type":["integer","null"],"description":"Posts a month on each network except X (X has its own limits)."},"xPostsPerMonth":{"type":["integer","null"]},"xLinkPostsPerMonth":{"type":["integer","null"]},"xPostsEver":{"type":["integer","null"],"description":"X posts in total per X account (Free plan)."},"images":{"type":"boolean"},"minutesBetweenPosts":{"type":"object","additionalProperties":{"type":["integer","null"]},"description":"Minutes between two posts on the same account, by network."}},"required":["profilesPerNetwork","postsPerDayPerProfile","postsPerDay","postsPerMonthPerNetwork","xPostsPerMonth","xLinkPostsPerMonth","xPostsEver","images","minutesBetweenPosts"],"description":"null = no limit. A thread is one post, except toward the X allowances, where each tweet counts."},"day":{"type":"string"},"month":{"type":"string"},"used":{"type":"object","properties":{"today":{"type":"integer"},"xPostsThisMonth":{"type":"integer"},"xLinkPostsThisMonth":{"type":"integer"},"postsThisMonthByNetwork":{"type":"object","additionalProperties":{"type":"integer"},"description":"Posts this month on each network except X."}},"required":["today","xPostsThisMonth","xLinkPostsThisMonth","postsThisMonthByNetwork"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"network":{"type":"string","enum":["x","linkedin","facebook","instagram","threads"]},"inPlan":{"type":"boolean","description":"false: connected but not included in the plan, so it can’t post."},"postsToday":{"type":"integer"},"postsTodayLimit":{"type":["integer","null"]},"xPostsEver":{"type":"integer"}},"required":["id","network","inPlan","postsToday","postsTodayLimit"]}}},"required":["plan","limits","day","month","used","accounts"]},"Link":{"type":"object","properties":{"url":{"type":"string"},"expiresAt":{"type":"string"}},"required":["url","expiresAt"]},"OpenPostingTime":{"type":"object","properties":{"at":{"type":"string","description":"The posting time (ISO 8601)."},"accountIds":{"type":"array","items":{"type":"string"}}},"required":["at","accountIds"]},"Part":{"type":"object","properties":{"text":{"type":"string","maxLength":30000,"example":"Shipping day. Here is what changed 🧵"},"mediaIds":{"type":"array","items":{"type":"string"},"maxItems":10,"description":"Ids from POST /media. The limit depends on the destination."}},"required":["text"]},"Target":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"network":{"type":"string","enum":["x","linkedin","facebook","instagram","threads"]},"account":{"type":["string","null"]},"status":{"type":"string","enum":["pending","publishing","published","failed","missed","canceled"]},"parts":{"type":"array","items":{"$ref":"#/components/schemas/Part"}},"url":{"type":["string","null"],"description":"Link to the live post (the first tweet of a thread)."},"partsPublished":{"type":"integer"},"error":{"type":["object","null"],"properties":{"code":{"type":"string"},"message":{"type":["string","null"]}},"required":["code","message"]},"attempts":{"type":"integer"},"nextAttemptAt":{"type":["string","null"]},"publishedAt":{"type":["string","null"]}},"required":["id","accountId","network","account","status","parts","url","partsPublished","error","attempts","nextAttemptAt","publishedAt"]},"Post":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["scheduled","publishing","published","partial","failed","missed","canceled"]},"kind":{"type":"string","enum":["post","thread"]},"parts":{"type":"array","items":{"$ref":"#/components/schemas/Part"}},"scheduledAt":{"type":"string"},"slotAt":{"type":["string","null"],"description":"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."},"splitFrom":{"type":["string","null"],"description":"Set when this post was split off another one because its accounts’ posting times differ: that post’s id."},"publishedAt":{"type":["string","null"]},"createdVia":{"type":"string","enum":["mcp","api","cli","dashboard"]},"createdByAgent":{"type":["string","null"]},"needsApproval":{"type":"boolean"},"targets":{"type":"array","items":{"$ref":"#/components/schemas/Target"}}},"required":["id","status","kind","parts","scheduledAt","slotAt","splitFrom","publishedAt","createdVia","createdByAgent","needsApproval","targets"]},"PostCreate":{"type":"object","properties":{"text":{"type":"string","maxLength":30000,"description":"Shorthand for a single-part post."},"parts":{"type":"array","items":{"$ref":"#/components/schemas/Part"},"minItems":1,"maxItems":25,"description":"One item per post in a thread, on networks that take threads. Other networks get a single post."},"networks":{"type":"array","items":{"type":"string","enum":["x","linkedin","facebook","instagram","threads"]},"minItems":1,"description":"Defaults to your default networks (Settings)."},"accounts":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Specific account ids, instead of networks."},"scheduledAt":{"type":"string","format":"date-time","description":"ISO 8601 time. Omit to post now.","example":"2026-11-21T09:00:00Z"},"postingTime":{"anyOf":[{"type":"string","enum":["next"]},{"type":"string","format":"date-time"}],"description":"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.","example":"next"},"overrides":{"type":"object","properties":{"x":{"type":"array","items":{"$ref":"#/components/schemas/Part"},"minItems":1,"maxItems":25},"linkedin":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Part"},{"type":"object","properties":{"mediaIds":{"type":"array","items":{"type":"string"},"maxItems":20}}}]}},"facebook":{"type":"array","items":{"$ref":"#/components/schemas/Part"}},"instagram":{"type":"array","items":{"$ref":"#/components/schemas/Part"}},"threads":{"type":"array","items":{"$ref":"#/components/schemas/Part"},"minItems":1,"maxItems":25}},"description":"A network’s own version of the post. LinkedIn takes a single part."},"idempotencyKey":{"type":"string","maxLength":100,"description":"Sending the same key again returns the first post instead of posting twice."}}},"Media":{"type":"object","properties":{"id":{"type":"string"},"mime":{"type":"string"},"size":{"type":"integer"},"alt":{"type":["string","null"]}},"required":["id","mime","size","alt"]},"ApiKey":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"start":{"type":"string"},"lastUsedAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","name","start","lastUsedAt","createdAt"]},"Agent":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"uri":{"type":["string","null"]},"icon":{"type":["string","null"]},"connectedAt":{"type":"string"}},"required":["id","name","uri","icon","connectedAt"]}},"parameters":{}},"paths":{"/networks":{"get":{"tags":["Networks"],"summary":"Networks you can post to","description":"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.","security":[{},{"apiKey":[]}],"responses":{"200":{"description":"Networks","content":{"application/json":{"schema":{"type":"object","properties":{"networks":{"type":"array","items":{"$ref":"#/components/schemas/NetworkInfo"}}},"required":["networks"]}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/me":{"get":{"tags":["Account"],"summary":"Who you are, your settings, connected accounts, and your plan with what you’ve used","responses":{"200":{"description":"You","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"plan":{"type":"string"},"role":{"type":"string","enum":["user","admin"]},"paused":{"type":"boolean"}},"required":["id","name","email","plan","role","paused"]},"session":{"type":"object","properties":{"limited":{"type":"boolean","description":"Opened from a link an agent was given: approving, keys and agents need an email sign-in."}},"required":["limited"]},"settings":{"$ref":"#/components/schemas/Settings"},"accounts":{"type":"array","items":{"$ref":"#/components/schemas/Account"}},"connectableNetworks":{"type":"array","items":{"type":"string","enum":["x","linkedin","facebook","instagram","threads"]},"description":"Networks you can connect and post to now."},"plan":{"$ref":"#/components/schemas/Plan"}},"required":["user","session","settings","accounts","connectableNetworks","plan"]}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/settings":{"get":{"tags":["Account"],"summary":"Your posting settings","responses":{"200":{"description":"Settings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Settings"}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["Account"],"summary":"Change posting settings","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"timezone":{"type":"string","example":"Europe/London"},"locale":{"type":"string","example":"en"},"latePolicy":{"type":"string","enum":["30m","2h","6h","always","ask"],"description":"How late a delayed post may still go out: 30m, 2h, 6h, always, or ask (never post late)."},"linkedinThreads":{"type":"string","enum":["combine","first"],"description":"LinkedIn has no threads: combine the parts into one post, or post the first part only."},"defaultNetworks":{"type":["array","null"],"items":{"type":"string","enum":["x","linkedin","facebook","instagram","threads"]},"description":"Where posts go when no network is named; null = every connected account."},"approvalMode":{"type":"string","enum":["auto","ask_first"],"description":"ask_first: posts made by agents wait for approval in the dashboard."}}}}}},"responses":{"200":{"description":"Updated settings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Settings"}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid request (e.g. too long for the network)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/accounts":{"get":{"tags":["Accounts"],"summary":"Connected X and LinkedIn accounts","responses":{"200":{"description":"Accounts","content":{"application/json":{"schema":{"type":"object","properties":{"accounts":{"type":"array","items":{"$ref":"#/components/schemas/Account"}}},"required":["accounts"]}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/accounts/{id}":{"patch":{"tags":["Accounts"],"summary":"Change an account’s settings","description":"xLongPosts: allow posts over 280 characters on X. auto follows the X subscription detected when you connected.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"xLongPosts":{"type":"string","enum":["auto","on","off"]}}}}}},"responses":{"200":{"description":"Updated account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid request (e.g. too long for the network)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/accounts/connect":{"post":{"tags":["Accounts"],"summary":"Get a link to connect a social account","description":"A single-use dashboard link valid for 10 minutes. Some networks need a regular sign-in to SocialMCP before connecting.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"network":{"type":"string","enum":["x","linkedin","facebook","instagram","threads"]}},"required":["network"]}}}},"responses":{"200":{"description":"Connect link","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Link"}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This network is not available (network_unavailable)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/posting-times":{"put":{"tags":["Posting times"],"summary":"Set when you usually post","description":"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).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accounts":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":50,"description":"Account ids. Default: every connected account."},"times":{"type":"array","items":{"$ref":"#/components/schemas/PostingTime"},"maxItems":50}},"required":["times"]}}}},"responses":{"200":{"description":"Saved","content":{"application/json":{"schema":{"type":"object","properties":{"accounts":{"type":"array","items":{"$ref":"#/components/schemas/Account"}},"moved":{"type":"integer"},"kept":{"type":"integer"}},"required":["accounts","moved","kept"]}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (e.g. account not connected)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid request (e.g. too long for the network)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/posting-times/open":{"get":{"tags":["Posting times"],"summary":"Open posting times in a range","description":"Upcoming posting times that have no post yet, each with the accounts it is open on. Up to about two months at a time.","parameters":[{"schema":{"type":"string","format":"date-time"},"required":true,"name":"from","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":true,"name":"to","in":"query"}],"responses":{"200":{"description":"Open posting times","content":{"application/json":{"schema":{"type":"object","properties":{"open":{"type":"array","items":{"$ref":"#/components/schemas/OpenPostingTime"}}},"required":["open"]}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid request (e.g. too long for the network)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/posting-times/next":{"get":{"tags":["Posting times"],"summary":"Where a new post would go","description":"The next open posting time of each account, as POST /posts with postingTime next would use them. Nothing is saved.","parameters":[{"schema":{"type":"string","description":"Comma-separated account ids."},"required":true,"description":"Comma-separated account ids.","name":"accounts","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":25,"description":"Number of thread parts, on networks that take threads. Default 1."},"required":false,"description":"Number of thread parts, on networks that take threads. Default 1.","name":"units","in":"query"}],"responses":{"200":{"description":"Next posting times","content":{"application/json":{"schema":{"type":"object","properties":{"next":{"type":"array","items":{"$ref":"#/components/schemas/OpenPostingTime"}}},"required":["next"]}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (e.g. account not connected)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/login-links":{"post":{"tags":["Account"],"summary":"Get a link that opens the dashboard already signed in","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string","pattern":"^\\/app(\\/[\\w/-]*)?(\\?[\\w=&-]*)?$","default":"/app"}}}}}},"responses":{"200":{"description":"Login link","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Link"}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid request (e.g. too long for the network)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/posts":{"post":{"tags":["Posts"],"summary":"Post now or schedule","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCreate"}}}},"responses":{"200":{"description":"Already created with this idempotencyKey","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Post"},{"type":"object","properties":{"alsoCreated":{"type":"array","items":{"$ref":"#/components/schemas/Post"}}}}]}}}},"201":{"description":"Scheduled","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Post"},{"type":"object","properties":{"alsoCreated":{"type":"array","items":{"$ref":"#/components/schemas/Post"}}}}]}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed for this caller (dashboard_only, confirm_identity), or the network is turned off (network_unavailable)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (e.g. account not connected)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"An image was removed after its post was published (media_removed): upload it again","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid request (e.g. too long for the network)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Daily posting limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"tags":["Posts"],"summary":"List posts","description":"Newest first; with from (a calendar range), earliest first. Pass nextCursor back as cursor for the next page.","parameters":[{"schema":{"type":"string","format":"date-time"},"required":false,"name":"from","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"to","in":"query"},{"schema":{"type":"string","description":"Comma-separated: scheduled, publishing, published, partial, failed, missed, canceled"},"required":false,"description":"Comma-separated: scheduled, publishing, published, partial, failed, missed, canceled","name":"status","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":500},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","maxLength":100,"description":"For the next page: nextCursor from the previous response."},"required":false,"description":"For the next page: nextCursor from the previous response.","name":"cursor","in":"query"}],"responses":{"200":{"description":"Posts","content":{"application/json":{"schema":{"type":"object","properties":{"posts":{"type":"array","items":{"$ref":"#/components/schemas/Post"}},"nextCursor":{"type":["string","null"]}},"required":["posts","nextCursor"]}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid request (e.g. too long for the network)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/posts/{id}":{"get":{"tags":["Posts"],"summary":"Get a post and its result on each network","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Post","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["Posts"],"summary":"Edit or reschedule a post that hasn’t gone out","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","maxLength":30000},"parts":{"type":"array","items":{"$ref":"#/components/schemas/Part"},"minItems":1,"maxItems":25},"scheduledAt":{"type":"string","format":"date-time"},"postingTime":{"anyOf":[{"type":"string","enum":["next"]},{"type":"string","format":"date-time"}],"description":"Move it into your posting times: next for the next one open on all its accounts, or one open posting time.","example":"next"},"overrides":{"type":"object","properties":{"x":{"type":"array","items":{"$ref":"#/components/schemas/Part"},"minItems":1,"maxItems":25},"linkedin":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Part"},{"type":"object","properties":{"mediaIds":{"type":"array","items":{"type":"string"},"maxItems":20}}}]}},"facebook":{"type":"array","items":{"$ref":"#/components/schemas/Part"}},"instagram":{"type":"array","items":{"$ref":"#/components/schemas/Part"}},"threads":{"type":"array","items":{"$ref":"#/components/schemas/Part"},"minItems":1,"maxItems":25}},"description":"A network’s own version of the post. LinkedIn takes a single part."}}}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed for this caller (dashboard_only, confirm_identity), or the network is turned off (network_unavailable)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (e.g. account not connected)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"An image was removed after its post was published (media_removed): upload it again","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid request (e.g. too long for the network)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Daily posting limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["Posts"],"summary":"Delete a post from SocialMCP","description":"Removes it from your calendar. Anything already live on X or LinkedIn stays there.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean","enum":[true]}},"required":["deleted"]}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (e.g. account not connected)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/posts/{id}/cancel":{"post":{"tags":["Posts"],"summary":"Cancel what hasn’t gone out yet","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Canceled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/posts/{id}/retry":{"post":{"tags":["Posts"],"summary":"Post failed or missed networks now","description":"A thread that stopped part-way continues after the last part that went out.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Retrying","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (e.g. account not connected)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Daily posting limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/posts/{id}/approve":{"post":{"tags":["Dashboard"],"summary":"Approve a post an agent wrote (dashboard only)","description":"In “ask first” mode, posts written by agents wait here until you approve them.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Approved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (e.g. account not connected)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/media":{"post":{"tags":["Media"],"summary":"Upload an image","description":"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`.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"},"alt":{"type":"string"}}}},"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"alt":{"type":"string","maxLength":1000}},"required":["url"]}}}},"responses":{"201":{"description":"Uploaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Media"}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Not an image we accept","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid request (e.g. too long for the network)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/keys":{"get":{"tags":["Dashboard"],"summary":"Your API keys (dashboard only)","responses":{"200":{"description":"Keys","content":{"application/json":{"schema":{"type":"object","properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/ApiKey"}}},"required":["keys"]}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Dashboard"],"summary":"Create an API key (dashboard only)","description":"The full key is in this response only. Store it somewhere safe.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":60}},"required":["name"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiKey"},{"type":"object","properties":{"key":{"type":"string"}},"required":["key"]}]}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (e.g. account not connected)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/keys/{id}":{"delete":{"tags":["Dashboard"],"summary":"Delete an API key (dashboard only)","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean","enum":[true]}},"required":["deleted"]}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/activity":{"get":{"tags":["Dashboard"],"summary":"Your posting record: posts per day over 52 weeks: the past, and at least the next 4 weeks of what is planned, weeks in a row, achievements (dashboard only)","parameters":[{"schema":{"type":"integer","minimum":2000,"maximum":2100,"description":"A calendar year instead of the last 12 months."},"required":false,"description":"A calendar year instead of the last 12 months.","name":"year","in":"query"}],"responses":{"200":{"description":"Activity","content":{"application/json":{"schema":{"type":"object","properties":{"today":{"type":"string"},"from":{"type":"string"},"to":{"type":"string","description":"The last day shown: at least four weeks from today, further when posts are scheduled further out (up to 26 weeks)."},"days":{"type":"object","additionalProperties":{"type":"object","properties":{"posts":{"type":"integer"},"networks":{"type":"object","properties":{"x":{"type":"integer"},"linkedin":{"type":"integer"},"facebook":{"type":"integer"},"instagram":{"type":"integer"},"threads":{"type":"integer"}}},"accounts":{"type":"object","additionalProperties":{"type":"integer"},"description":"Posts per connected account, by account id."}},"required":["posts","networks","accounts"]}},"ahead":{"type":"object","additionalProperties":{"type":"object","properties":{"planned":{"type":"integer"},"times":{"type":"integer"},"accounts":{"type":"object","additionalProperties":{"type":"object","properties":{"planned":{"type":"integer"},"times":{"type":"integer"}},"required":["planned","times"]}}},"required":["planned","times","accounts"]},"description":"Days after today: posts already scheduled, and how many posting times the day has, in all and per connected account (by id)."},"total":{"type":"integer"},"streak":{"type":"object","properties":{"current":{"type":"integer"},"best":{"type":"integer"},"weeks":{"type":"array","items":{"type":"object","properties":{"week":{"type":"string"},"posted":{"type":"boolean"}},"required":["week","posted"]}}},"required":["current","best","weeks"]},"rhythm":{"type":"object","properties":{"perWeek":{"type":"integer"},"thisWeek":{"type":"integer"}},"required":["perWeek","thisWeek"]},"achievements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["first_post","published","agent","threads","cross_posted","streak","clean_month"]},"count":{"type":"integer"},"level":{"type":"integer"},"next":{"type":["integer","null"]}},"required":["id","count","level","next"]}}},"required":["today","from","to","days","ahead","total","streak","rhythm","achievements"]}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/agents":{"get":{"tags":["Dashboard"],"summary":"AI agents connected over MCP (dashboard only)","responses":{"200":{"description":"Agents","content":{"application/json":{"schema":{"type":"object","properties":{"agents":{"type":"array","items":{"$ref":"#/components/schemas/Agent"}}},"required":["agents"]}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/agents/{id}":{"delete":{"tags":["Dashboard"],"summary":"Disconnect an agent (dashboard only)","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Disconnected","content":{"application/json":{"schema":{"type":"object","properties":{"disconnected":{"type":"boolean","enum":[true]}},"required":["disconnected"]}}}},"401":{"description":"Not signed in, or the API key is wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"webhooks":{}}