API changelog
Changes to the API, MCP tools and webhooks. The API is versioned in its path (/api/v1); within a version, changes only add things (new attributes, endpoints and events), so existing integrations keep working.
27 November 2026
- Every hint on every MCP tool.
tools/listgives each toolreadOnlyHint,destructiveHintandopenWorldHintas explicit booleans inannotations; read-only tools now also saydestructiveHint: false, and the othersreadOnlyHint: false.openWorldHintistruefor the tools that put posts on the networks or change them there (schedule-post,publish-now,reschedule-post,retry-post,edit-published-post,remove-published-post) and forupload-media, which fetches a public link;falsefor the rest, which stay inside your workspaces. Nothing else changed.
23 November 2026
- WordPress site sign-ins reach only what the plugin uses. An OAuth sign-in by a client registered as a WordPress site (every redirect URI is a site's
/wp-admin/admin.php?page=refract&refract_connect=1) can callGET /me,DELETE /me/token,GET /networks,GET /workspaces,GET /workspaces/{workspace},GET …/accounts, the WordPress site endpoints, the notes endpoints and the versions endpoints (includingapprove-all). Every other endpoint, such as creating, scheduling or deleting posts, answers403(forbidden). Refract for WordPress only uses the endpoints that stay open. API tokens and other OAuth clients are unchanged. - Files from a link, 3 at a time per organization.
POST /workspaces/{workspace}/mediawith aurl, and the files sent with a note, download at most 3 at a time for each organization. One more answers429withRetry-After: 10; the MCP toolupload-mediaanswers with an error asking to try again in a few seconds. See Rate limits.
18 November 2026
- Blog posts that aren't public hold their post. New
POST /workspaces/{workspace}/notes/{post}/visibilitytakesaccount_idandstatus(publish,draft,pending,private,future,password,trashordeleted). Anything butpublishholds the post: the queue skips it, it can't be scheduled, and a publish job already queued gives its account back.publishends the hold and the versions need approving again. See Notes. Refract for WordPress 1.2.3 sends it. - "Check it" needs approving. A version marked
"stale": "check"(edited by hand, then the note changed) now counts as needing an OK:approve-allapproves it, and a post with one doesn't go out or get queued until it's approved. Before, it counted as approved. PATCH /notes/{post}without the credits still saves the note and answers402: the versions from the old note hold the post. Before, nothing changed, so the versions approved earlier went out.- Approvals hold for what was approved. Each approved version keeps a fingerprint of its text, settings, files and the accounts on its network. A version that changed since, without someone approving the change, counts as needing an OK (
approve-alland scheduling wait for it, and it doesn't go out). Changes made with a token that can publish without approval count as approving them;update-draftover MCP never does: a version it changes needs a person's OK again. Versions approved before today are trusted as they are. 409fromPATCH /notes/{post}saysThis post is going out now, so its note can’t change.while the post is going out, and…already went out…after.
16 November 2026
- AI apps never approve. An MCP connection can't approve posts, even at Schedule and publish.
schedule-postandpublish-nowon a post waiting for approval keep it waiting ("status": "awaiting_approval") instead of approving it.update-drafton a post waiting for approval keeps it waiting, and on a scheduled post someone approved, or any scheduled post where the workspace asks for approval from AI agents, sends it back to wait at its time ("status": "awaiting_approval", with amessagesaying a person confirms the changes); before, the latter was refused. The person who connected the app is told along with the approvers. See Confirm changes. - Server version 1.4.0.
initializereportsserverInfo.version1.4.0.
15 November 2026
- Time to stop what an AI app schedules. Where a post doesn't wait for approval, nothing an MCP connection schedules goes out sooner than 5 minutes after it asked.
publish-nownow answers"status": "scheduled"withat5 minutes ahead and amessagefor the person, instead of publishing at once, and the bell in Refract tells the person who connected the app.schedule-postandreschedule-postmove a sooneratto 5 minutes from now, and the queue skips posting times within it.update-draftrefuses a scheduled post in its last 5 minutes. Where the workspace asks for approval from AI agents,update-draftrefuses scheduled posts, asreschedule-postalready did. A failed post changed withupdate-draftgoes back to the drafts ("status": "draft"), soretry-postonly sends a post again as it failed. AI mode is unchanged. See Time to stop a post. - Schedule and publish ends. When someone connects an AI app or the Refract CLI with Schedule and publish, they pick how long it lasts: 1, 7 or 30 days (the default) or until they change it. After that the connection works like Draft and send for approval: the publishing MCP tools are no longer listed, its posts wait for approval,
list-workspacesgivescanSchedule: falseandGET /megives"capability": "draft". Connecting again or Change access starts the time over. Connections made before today keep publishing until someone changes them. - New MCP tool
restore-draft(Draft or Publish) brings back a draft deleted in the last 30 days, as a draft (post).delete-draft'smessagesays so. - Server version 1.3.0.
initializereportsserverInfo.version1.3.0.
11 November 2026
- Every network in the lists.
GET /api/v1/networks, the MCP tools' network names and Help now list every network. A network that isn't open yet, including one Refract has switched off while it's being tested, issooneverywhere, also as an account'savailabilityin the API and inlist-accounts; before, a switched-off network was left out, or showed asavailablenext to an account already on it. Those accounts keep posting, but can't be reconnected until the network opens. - VS Code setup. The VS Code snippet in Settings › API and agents and in MCP tools now uses VS Code's portable format:
{ "mcpServers": { "refract": { "type": "http", "url": "https://mcp.refract.social" } } }in.mcp.jsonat the workspace root, or in~/.copilot/mcp-config.json. VS Code marks.vscode/mcp.jsonwithserversas deprecated for new setups. Nothing changed on the server.
10 November 2026
- Uploads from an agent. The new MCP tool
request-media-upload(Draft or Publish) returns a one-timeupload_urlwithexpires_at, thetypesandmax_bytesRefract takes, a readycurlcommand andinstructions.POSTthe file there as the multipart fieldfile, with optionalalt, and no token.201answers whatupload-mediadoes (media,type,filename,width,height); a refusal answers{"message": "…"}with404(no such link),410(expired or already used),401(the connection was turned off),403(it can't write in the workspace),422(no file, or a file the library refuses, which leaves the link open) or429(over 30 uploads a minute, withRetry-After). A link stores one file and works for 15 minutes. See Images and videos. - Files attached in ChatGPT.
upload-mediatakesfile(download_url,file_id, optionalmime_typeandfile_name) instead ofurl, declared in_meta["openai/fileParams"], so ChatGPT passes a file the person attached.urlis now optional: send one of the two. - Who can view on TikTok.
list-accountsgives a TikTok accountprivacyLevelOptions, the choices TikTok offers it.create-draft,update-draftand the API's posts takeprivacy_levelin TikTok's variant settings (PUBLIC_TO_EVERYONE,MUTUAL_FOLLOW_FRIENDS,FOLLOWER_OF_CREATORorSELF_ONLY). Any other value, or a choice the post's TikTok account doesn't offer, answers422(pointer/data/attributes/variants/tiktok/settings/privacy_level) with the choices it does; before, any value was saved and the post failed when it went out. TikTok requires the person to choose it, with no preset, so the tools tell AI apps to ask. See Post fields. - Tool annotations. Every MCP tool now has
readOnlyHintordestructiveHint. The read tools keepreadOnlyHint: true;create-draft,upload-mediaandrequest-media-uploadonly add, so they havedestructiveHint: false; the tools that change, schedule, publish or delete posts havedestructiveHint: true. Apps such as Claude use these hints to decide when to ask before a call. - Server version 1.2.0.
initializereportsserverInfo.version1.2.0.
8 November 2026
- New MCP tools.
publish-nowpublishes a draft or a scheduled post now on every account it goes to (Publish; where the workspace asks for approval from AI agents it becomes an approval request, andstatussays which).retry-postsends a failed post again to one account (post,account), fixing the files first when the fix isshrink_and_retryorcrop_and_retry(Publish).read-analyticsreads a workspace's numbers for a period (range7d,30dor90d, orfromandto; optionalplatformsandaccounts); a number a network doesn't report isnull. See MCP tools. - Why a post failed. In
get-post, each account that failed hasfailure:reason(plain words, inside<untrusted>tags) andfix(retry,shrink_and_retry,crop_and_retry,reconnect,edit_postornone). - Approvals in posts. In
list-postsandget-post, a post waiting for approval hasapproval:id,kind(post, oreditfor an edit of a published post),requestedBy,requestedFor,askedAtandforClient. - All tools in one list. The MCP server's
tools/listnow returns every tool in one page, so apps that don't follownextCursorsee them all. - Server version 1.1.0.
initializenow reportsserverInfo.version1.1.0, and the MCP Registry entrysocial.refract/refractlinks its public repository, anpsthemes-wp-themes/refract-mcp.
7 November 2026
- New MCP tools.
update-draftchanges a post that hasn't gone out (only what you pass; a scheduled post keeps its time),check-postlists a saved post's check issues per network,find-slotsreturns the next free posting times for some accounts (up to 10),reschedule-postmoves a scheduled post to a new time,unschedule-posttakes a post back to the drafts, anddelete-draftdeletes a draft or a post waiting for approval.check-postandfind-slotswork on any connection;update-draftanddelete-draftneed Draft or Publish (with Draft, only your own drafts and posts waiting for approval);reschedule-postandunschedule-postneed Publish. See MCP tools. - Untrusted text in MCP tool results. In
list-postsandget-post, text that people or networks wrote (post texts, per-network texts, account names, the author, file names and alt text) now comes inside<untrusted>…</untrusted>tags, so AI apps can tell content from instructions. Tags sent back increate-draftorupdate-drafttexts are removed before saving.list-posts' description now says its texts are cut at 280 characters. - AI mode. Posts made in Refract's AI mode have
"source": "ai_mode"in the API.
5 November 2026
- Weekly X allowance. Scheduling a post that would take the organization past its plan's X posts for that week answers
422blockedwith the issuex_weekly_posts(limit,count); X copies already queued wait until Monday, 00:00 UTC. A copy whose posts with links go past the weekly allowance takes AI credits when it goes out; without them its account fails with the errorx_link_credits. See X posts. - X paused on Refract's side. When X stops taking posts for a reason on Refract's side, X copies retry for about an hour and then fail with the error
app_paused, notunknown.
26 October 2026
- MCP server.
initializenow returns atitle, a one-linedescriptionand awebsiteUrl(https://refract.social/mcp) inserverInfo. Every tool's description and its inputs' descriptions are clearer; tool names, inputs and what they do are unchanged. The MCP server has its own rate limit, 120 tool calls a minute per person. See Rate limits.
23 October 2026
- Files per network. A variant in object form takes
skipped_media: ids of the post'smediathat network leaves off. An id that isn't one of the post's files answers422(pointer/data/attributes/variants/{platform}/skipped_media/{index}). Posts add the attributeskipped_media,{platform: [ids]}for the networks that leave something off and{}otherwise. The checks when you schedule, and publishing, use each network's own files. See Files per network. - JPEG copies. A WebP or PNG picture goes to a network that refuses its format as a JPEG copy, so scheduling no longer answers
blockedwithunsupported_media(ormedia_too_large) for it. The file in the library doesn't change. - Notes. When a network can't take every file of a blog post, the files it can't take are left off that network only (the post's
skipped_media).media_skippedlists only files no network can take. Withimages: crop_or_make, the Studio image goes only to the network it was made for. - MCP tools.
create-draft'svariantstakeskipped_mediaper network, andget-postreturnsskipped_media. See MCP tools.
21 October 2026
- Networks.
GET /networkslists the networks you can post to, in order, with each one'slabel,aliases(the CLI's short names),group,availability,capabilities, extra postfieldsand text and medialimits. Any token can call it. See Networks. - Refract CLI reads its network names and short names from
GET /networks, so new networks work in--towithout updating the CLI. GET /networks.jsonon the website leaves out networks Refract hasn't opened to customers yet. It is the same for everyone who asks, signed in or not.- Edit and remove after publishing.
POST /workspaces/{workspace}/posts/{post}/accounts/{account}/edit(text,settings) andPOST …/accounts/{account}/removechange one account's published copy on its network. Both answer the post withmeta.messageandmeta.state; Editor tokens and up only (403otherwise); a copy that can't be changed now answers409with the reason, and an edit that breaks the network's checks422. Settings you leave out keep their values from the post, so an edit can sendtextalone. Edits from tokens follow the workspace's approval rule for AI agents and tokens. See Edit after publishing. - Posts' accounts add
removed_at,edits_countandedit(state,text,error);accounts[].statuscan beremoved. - Webhooks: new events
post.editedandpost.removed.approval.requestedaddskind(postoredit), and for an editaccountandtext. See Webhook events. - MCP tools
edit-published-postandremove-published-post, for connections allowed to schedule and publish.create-draft'svariantstake, per network, its text or{"text", "settings"}with the same post fields as the API; a field the network doesn't take is refused. See MCP tools. - Post fields. A variant's
settingstaketitle,tags,community_id,canonical_url,as_draftandpost_as(name,avatar_media_id) on the networks that use them (fieldsinGET /networks). A field a network doesn't take answers422naming the field. YouTube, Pinterest and WordPress titles and YouTube tags work as before. See Post fields. - New checks when you schedule:
title_too_long,too_many_tags,tag_too_long,tag_invalidandinvalid_url, asblockederrors with the issue inmeta.
20 October 2026
- WordPress sites.
POST /workspaces/{workspace}/accounts/wordpressconnects a site running the Refract plugin as an account (201, or200when it reconnects;422withsite_unreachable,rest_blocked,not_httpsorplan_full), andDELETE /workspaces/{workspace}/accounts/wordpress/{account}removes it (204) and revokes the access that connected it. Accounts can now haveplatformwordpress. See WordPress sites. - Notes.
POST /workspaces/{workspace}/notesstarts a draft from a blog post's note and writes its versions;PATCH /workspaces/{workspace}/notes/{post}updates the note after the blog post changed. Both answer202. POST needs anIdempotency-Keyheader (up to 255 characters); the same key returns the first answer withIdempotent-Replayed: true. Short of credits, they answer402withcodeout_of_creditsplus top-levelneeded,left,refill_onandbuy_url, and create nothing. See Notes. - Versions.
GET /workspaces/{workspace}/posts/{post}/versionsreturns a post's versions with their status, checks and links;POST …/versions/{version}/approveapproves one (409while it's being written or couldn't be written);POST …/posts/{post}/approve-allapproves the rest and adds the post to the queue, or sends it for approval, and addsqueued,waiting_forandskipped. See Versions. - The WordPress, notes and versions endpoints take and return plain JSON, not JSON:API. Errors stay JSON:API error documents.
- Media from a link takes plain JSON
{"url", "alt"}, andaltin the JSON:API form. Downloads are limited to 50 MB for images and 1 GB for video; private, local and reserved addresses answer422. Files fetched from a link are now stored as uploads. GET /meaddsmeta.access.organization.planandmeta.credits(left,refill_on,own_key,buy_url).- Accounts add
label,mainandavailability. - Webhooks: new events
post.versions_ready,post.version_approved,post.queuedandaccount.disconnected. Everypost.*event'sdata.postaddssource(the WordPress blog post it came from, ornull),post.publishedaddsshort_link, andpost.failed'serroraddsfix. A WordPress site's own endpoint is managed by the site and isn't listed in Settings. See Webhook events. - OAuth: a client registered with only WordPress plugin callbacks gets the
apiscope, and its consent screen asks for one workspace and lists what the site can do. Someone without an organization who opens any consent screen goes through setup first and comes back. GET /networks.jsonon the website lists every network with its label and availability.- Refract CLI:
wpis the short name for WordPress in--to. - Disabled people are refused. API tokens and OAuth access tokens (the Refract CLI, MCP tools) of a person a Refract admin has disabled get
401until the person is enabled again. The tokens and grants themselves are kept. - OAuth consent needs a role that can draft. The authorization screen refuses a person who can't draft posts in any of the workspaces they pick (Viewers), with a validation message.
- No credentials in error messages.
post.failed'serror.message, and error details anywhere else, never include tokens or secrets, even when a network's own error quoted a URL that carried one.
14 October 2026
The first version of the developer platform.
- API v1 at
/api/v1, in JSON:API: workspaces, accounts, posts (list, show, create a draft, schedule, delete) and media (upload, or add from a link). - API tokens prefixed
rf_live_, with a role (Editor, Contributor or Viewer), workspaces and an expiry. Tokens follow each workspace's approval rule for AI agents and tokens. - Webhooks:
post.published,post.failed,approval.requestedandaccount.needs_reconnect, signed withRefract-Signature, retried for 24 hours, with secret rolling and a deliveries drawer. - MCP server at
https://mcp.refract.socialwith eight tools, for Claude, ChatGPT, Cursor, VS Code and other apps. - Rate limits: 120 requests a minute per token, 30 of them uploads.
- Refract CLI (
npm install -g @refracthq/cli):refract loginsigns in through the browser with OAuth (PKCE, the same screen as Connect Claude), thenrefract post,posts,accounts,whoamiandlogout. The API takes these OAuth access tokens alongside API tokens, bounded by the workspaces and capability the person picked, and addsGET /meandDELETE /me/token.