Pages in API reference

Posts

Edit a published post's text

POST/api/posts/:postId/edit-published

Replace the text of a published post on the platforms: every account where it is published, or only the given accountIds (from platformPosts[].accountId).

  • Text only; media and links stay.
  • Each account's result is in platformPosts: an edited account's text holds the new text, and an account the platform refused keeps its text with notice (EDIT_NOT_SUPPORTED on Instagram, Threads, TikTok, Bluesky and X, and on Facebook stories; the platform's own refusal otherwise).
  • Facebook edits only posts Ampost published; a Telegram caption under media stays limited to 1024 characters.
  • YouTube and Pinterest replace the video or Pin description.
  • YouTube edits and deletes share a budget of 10 a day per channel (3 on Free); past it the account gets notice RATE_LIMITED.
  • Call platforms_list for editPublished.supported per platform.
  • To change a draft or scheduled post, use posts_update. 404 POST_NOT_FOUND for an id that is not yours; 409 INVALID_STATUS_TRANSITION when no given account has it published.
Key scope
posts:write
MCP tool
posts_edit_published

Headers

  • Authorizationstringrequired

    Bearer <API key>. Create a key in the dashboard under API keys.

Path parameters

  • postIdstringrequired

    Post id (UUID): id from posts_list or posts_create

Body

  • textstringrequired

    The new text. It replaces the text only; media and links stay. Each platform's text.maxLength applies.

  • accountIdsstring[]

    Accounts to edit the post on (platformPosts[].accountId). Default: every account where it is published.

Errors return { error: { code, message } }; every code is in Error codes.