Skip to main content
POST

Put Back Account Posts

Disconnecting an account takes it off every post it was on. When the same profile is connected again to the same workspace (within 90 days), PostSyncer offers to put it back. Get account shows the offer in posts_to_put_back, and the workspace owner and admins get an account.posts_to_put_back notification. Nothing changes until someone chooses. Tell the user what posts_to_put_back says, and ask before you call this. Putting back only adds the account to posts. Each post is handled on its own: Nothing is published right away, and no post’s text, media, time or other accounts change. The account’s settings for each post (Pinterest board, TikTok privacy, YouTube title…) come back as they were. Calling it again does nothing more.

Published posts come back on their own

Posts the account had already published don’t need this call. Right after the reconnect, PostSyncer links them to the new account again with their link, numbers, day-by-day analytics and comments, as they were when the account was disconnected. relinked says how many. That sends nothing: no post, first comment, auto plug, comment reply or notification goes out, and the posts’ status doesn’t change. Comments written on the platform while the account was disconnected are read in later, but comment moderation doesn’t act on them. A post that still has repeats to come is left out, so the account is not added to its next repeats.

Request

integer
required
The reconnected account’s ID.
boolean
true closes the offer and leaves every post as it is.

Response

string
What happened, in words.
integer
Posts the account was put back on.
object
Posts by what happened to them (see the table above). added_to_draft_refused counts posts kept in drafts because the plan’s post limit refused scheduling them; not_done counts posts an error stopped. Those stay as they were, and calling again tries them again.
integer
Published posts already linked to the account again, with their link, numbers and comments. That happens on its own at the reconnect.
string
When the profile was disconnected.
boolean
true when you passed dismiss.

Error Codes

Unauthorized
Missing or invalid API token
Forbidden
The key lacks posts:update or posts:schedule, or your workspace role may not publish
Not Found
No account with this ID in a workspace you can access
Conflict
These posts are being put back already. Try again in a moment.