Refract docsBack to Refract

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/list gives each tool readOnlyHint, destructiveHint and openWorldHint as explicit booleans in annotations; read-only tools now also say destructiveHint: false, and the others readOnlyHint: false. openWorldHint is true for 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 for upload-media, which fetches a public link; false for 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 call GET /me, DELETE /me/token, GET /networks, GET /workspaces, GET /workspaces/{workspace}, GET …/accounts, the WordPress site endpoints, the notes endpoints and the versions endpoints (including approve-all). Every other endpoint, such as creating, scheduling or deleting posts, answers 403 (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}/media with a url, and the files sent with a note, download at most 3 at a time for each organization. One more answers 429 with Retry-After: 10; the MCP tool upload-media answers 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}/visibility takes account_id and status (publish, draft, pending, private, future, password, trash or deleted). Anything but publish holds the post: the queue skips it, it can't be scheduled, and a publish job already queued gives its account back. publish ends 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-all approves 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 answers 402: 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-all and 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-draft over MCP never does: a version it changes needs a person's OK again. Versions approved before today are trusted as they are.
  • 409 from PATCH /notes/{post} says This 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-post and publish-now on a post waiting for approval keep it waiting ("status": "awaiting_approval") instead of approving it. update-draft on 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 a message saying 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. initialize reports serverInfo.version 1.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-now now answers "status": "scheduled" with at 5 minutes ahead and a message for the person, instead of publishing at once, and the bell in Refract tells the person who connected the app. schedule-post and reschedule-post move a sooner at to 5 minutes from now, and the queue skips posting times within it. update-draft refuses a scheduled post in its last 5 minutes. Where the workspace asks for approval from AI agents, update-draft refuses scheduled posts, as reschedule-post already did. A failed post changed with update-draft goes back to the drafts ("status": "draft"), so retry-post only 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-workspaces gives canSchedule: false and GET /me gives "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's message says so.
  • Server version 1.3.0. initialize reports serverInfo.version 1.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, is soon everywhere, also as an account's availability in the API and in list-accounts; before, a switched-off network was left out, or showed as available next 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.json at the workspace root, or in ~/.copilot/mcp-config.json. VS Code marks .vscode/mcp.json with servers as 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-time upload_url with expires_at, the types and max_bytes Refract takes, a ready curl command and instructions. POST the file there as the multipart field file, with optional alt, and no token. 201 answers what upload-media does (media, type, filename, width, height); a refusal answers {"message": "…"} with 404 (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) or 429 (over 30 uploads a minute, with Retry-After). A link stores one file and works for 15 minutes. See Images and videos.
  • Files attached in ChatGPT. upload-media takes file (download_url, file_id, optional mime_type and file_name) instead of url, declared in _meta["openai/fileParams"], so ChatGPT passes a file the person attached. url is now optional: send one of the two.
  • Who can view on TikTok. list-accounts gives a TikTok account privacyLevelOptions, the choices TikTok offers it. create-draft, update-draft and the API's posts take privacy_level in TikTok's variant settings (PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR or SELF_ONLY). Any other value, or a choice the post's TikTok account doesn't offer, answers 422 (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 readOnlyHint or destructiveHint. The read tools keep readOnlyHint: true; create-draft, upload-media and request-media-upload only add, so they have destructiveHint: false; the tools that change, schedule, publish or delete posts have destructiveHint: true. Apps such as Claude use these hints to decide when to ask before a call.
  • Server version 1.2.0. initialize reports serverInfo.version 1.2.0.

8 November 2026

  • New MCP tools. publish-now publishes 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, and status says which). retry-post sends a failed post again to one account (post, account), fixing the files first when the fix is shrink_and_retry or crop_and_retry (Publish). read-analytics reads a workspace's numbers for a period (range 7d, 30d or 90d, or from and to; optional platforms and accounts); a number a network doesn't report is null. See MCP tools.
  • Why a post failed. In get-post, each account that failed has failure: reason (plain words, inside <untrusted> tags) and fix (retry, shrink_and_retry, crop_and_retry, reconnect, edit_post or none).
  • Approvals in posts. In list-posts and get-post, a post waiting for approval has approval: id, kind (post, or edit for an edit of a published post), requestedBy, requestedFor, askedAt and forClient.
  • All tools in one list. The MCP server's tools/list now returns every tool in one page, so apps that don't follow nextCursor see them all.
  • Server version 1.1.0. initialize now reports serverInfo.version 1.1.0, and the MCP Registry entry social.refract/refract links its public repository, anpsthemes-wp-themes/refract-mcp.

7 November 2026

  • New MCP tools. update-draft changes a post that hasn't gone out (only what you pass; a scheduled post keeps its time), check-post lists a saved post's check issues per network, find-slots returns the next free posting times for some accounts (up to 10), reschedule-post moves a scheduled post to a new time, unschedule-post takes a post back to the drafts, and delete-draft deletes a draft or a post waiting for approval. check-post and find-slots work on any connection; update-draft and delete-draft need Draft or Publish (with Draft, only your own drafts and posts waiting for approval); reschedule-post and unschedule-post need Publish. See MCP tools.
  • Untrusted text in MCP tool results. In list-posts and get-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 in create-draft or update-draft texts 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 422 blocked with the issue x_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 error x_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, not unknown.

26 October 2026

  • MCP server. initialize now returns a title, a one-line description and a websiteUrl (https://refract.social/mcp) in serverInfo. 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's media that network leaves off. An id that isn't one of the post's files answers 422 (pointer /data/attributes/variants/{platform}/skipped_media/{index}). Posts add the attribute skipped_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 blocked with unsupported_media (or media_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_skipped lists only files no network can take. With images: crop_or_make, the Studio image goes only to the network it was made for.
  • MCP tools. create-draft's variants take skipped_media per network, and get-post returns skipped_media. See MCP tools.

21 October 2026

  • Networks. GET /networks lists the networks you can post to, in order, with each one's label, aliases (the CLI's short names), group, availability, capabilities, extra post fields and text and media limits. Any token can call it. See Networks.
  • Refract CLI reads its network names and short names from GET /networks, so new networks work in --to without updating the CLI.
  • GET /networks.json on 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) and POST …/accounts/{account}/remove change one account's published copy on its network. Both answer the post with meta.message and meta.state; Editor tokens and up only (403 otherwise); a copy that can't be changed now answers 409 with the reason, and an edit that breaks the network's checks 422. Settings you leave out keep their values from the post, so an edit can send text alone. Edits from tokens follow the workspace's approval rule for AI agents and tokens. See Edit after publishing.
  • Posts' accounts add removed_at, edits_count and edit (state, text, error); accounts[].status can be removed.
  • Webhooks: new events post.edited and post.removed. approval.requested adds kind (post or edit), and for an edit account and text. See Webhook events.
  • MCP tools edit-published-post and remove-published-post, for connections allowed to schedule and publish. create-draft's variants take, 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 settings take title, tags, community_id, canonical_url, as_draft and post_as (name, avatar_media_id) on the networks that use them (fields in GET /networks). A field a network doesn't take answers 422 naming 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_invalid and invalid_url, as blocked errors with the issue in meta.

20 October 2026

  • WordPress sites. POST /workspaces/{workspace}/accounts/wordpress connects a site running the Refract plugin as an account (201, or 200 when it reconnects; 422 with site_unreachable, rest_blocked, not_https or plan_full), and DELETE /workspaces/{workspace}/accounts/wordpress/{account} removes it (204) and revokes the access that connected it. Accounts can now have platform wordpress. See WordPress sites.
  • Notes. POST /workspaces/{workspace}/notes starts 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 answer 202. POST needs an Idempotency-Key header (up to 255 characters); the same key returns the first answer with Idempotent-Replayed: true. Short of credits, they answer 402 with code out_of_credits plus top-level needed, left, refill_on and buy_url, and create nothing. See Notes.
  • Versions. GET /workspaces/{workspace}/posts/{post}/versions returns a post's versions with their status, checks and links; POST …/versions/{version}/approve approves one (409 while it's being written or couldn't be written); POST …/posts/{post}/approve-all approves the rest and adds the post to the queue, or sends it for approval, and adds queued, waiting_for and skipped. 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"}, and alt in the JSON:API form. Downloads are limited to 50 MB for images and 1 GB for video; private, local and reserved addresses answer 422. Files fetched from a link are now stored as uploads.
  • GET /me adds meta.access.organization.plan and meta.credits (left, refill_on, own_key, buy_url).
  • Accounts add label, main and availability.
  • Webhooks: new events post.versions_ready, post.version_approved, post.queued and account.disconnected. Every post.* event's data.post adds source (the WordPress blog post it came from, or null), post.published adds short_link, and post.failed's error adds fix. 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 api scope, 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.json on the website lists every network with its label and availability.
  • Refract CLI: wp is 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 401 until 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's error.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.requested and account.needs_reconnect, signed with Refract-Signature, retried for 24 hours, with secret rolling and a deliveries drawer.
  • MCP server at https://mcp.refract.social with 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 login signs in through the browser with OAuth (PKCE, the same screen as Connect Claude), then refract post, posts, accounts, whoami and logout. The API takes these OAuth access tokens alongside API tokens, bounded by the workspaces and capability the person picked, and adds GET /me and DELETE /me/token.

Cookies

Refract uses the cookies it needs to work. If you allow it, we also use marketing cookies: one so a partner who sent you here gets credit for your sign-up, and the TikTok and OpenAI pixels on our website, to measure our ads on TikTok and in ChatGPT. See the Cookie policy.