Skip to main content
POST
Draft a reply with AI
Needs comments:update. Your role in the item’s workspace must also let you edit public comments and use the workspace’s AI; a Client’s doesn’t. See Permissions.
PostSyncer AI writes a reply to the item in the brand’s voice, from the brand, what the item is about, the messages so far and the brand’s past replies, as Write with AI does in the app. PostSyncer AI’s draft reads what the message shares: the post it quotes, its link card and up to 3 pages its links lead to. Still 1 credit. It keeps it as the item’s draft, with draft.by ai, in place of a draft already there. PostSyncer wrote it, so it is ai even when a key asks; to keep your own words instead, update the item with draft. It also adds the tags it finds: lead, complaint or praise. It never sends. A person sends it from the app, or you send it on purpose with Create a comment, Reply to a review or Reply to a mention. An item nobody can answer from PostSyncer gets no draft: 422 with the reason, and nothing is charged. That is a comment hidden or deleted on its network (The comment is hidden on Facebook. Unhide it to reply., The comment was deleted on Facebook.), or a mention the network takes no reply to from apps (the item’s cant_reply_reason). Each draft spends 1 of the workspace owner’s AI credits, as the app’s AI reply does. Without enough, it answers 402 (insufficient_credits) and nothing is written or charged. If the AI can’t write it, the answer is 503 (ai_unavailable) or 422 (ai_declined), and the credit is back. Drafts are written only when asked: nothing is drafted as items come in. It answers the whole item, as Get an inbox item does, with its new draft. On the Free plan, comments and mentions are drafted from the Free month’s AI credits. A review’s draft is refused with 403 (plan_limit_reached, limit: ai): AI review replies are part of the paid plans. Upgrade to use them. When an item was joined into another one (a comment PostSyncer later found to be a reply, or a mention later saved as a comment), its old id answers 404 with {"message": "This item is now part of item 123. Use that id.", "moved_to": 123}. Read or change item moved_to instead; a change sent to the old id changes nothing. You get moved_to only for an item you can open; otherwise the answer is the usual 404 {"message": "Not found."}.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

thread
integer
required

The item's id: id in List the inbox.

Response

The item with its new draft.

One item of the Inbox: a comment on one of your posts, a mention of one of your accounts, or a Google review, with everything needed to answer it.

id
integer
required

The item's id, for Get, Update and Mark done.

kind
enum<string>
required

comment: a top-level comment on one of your posts. mention: someone else’s post or comment that names one of your accounts. review: a Google review of a location.

Available options:
comment,
mention,
review
status
enum<string>
required

open: it needs a reply. done: answered, marked done, hidden or deleted. A new message from them opens it again, and so does your only reply being deleted on the network.

Available options:
open,
done
done_how
enum<string> | null
required

How it became done: replied (from PostSyncer or on the network), marked (Done with no words), hidden or deleted. Null while open.

Available options:
replied,
marked,
hidden,
deleted,
null
done_at
string<date-time> | null
required

When it became done. Null while open.

done_by
object | null
required

The teammate who closed it. Null while open, and when the account answered on the network itself.

account
object
required

Your account it is for: the one a reply goes out from.

person
object
required

Who wrote it, and what PostSyncer holds about them.

text
string
required

Their words. Each link is whole, as the person meant it. "" for a comment that is only a picture, or a review with stars only.

media
object[]
required

The pictures in a comment, as Get a comment gives them, or a review’s photos and videos. A mention’s picture is its post’s, in about.thumbnail.

quoted
object | null
required

The post their message quotes (a mention on Bluesky, X or Mastodon): who wrote it, its words, its link. Null when it quotes none.

The link card their message shows (a mention on Bluesky, Mastodon or LinkedIn): the page's link, title and description. Null when it shows none.

stars
integer | null
required

A review's stars. Null on comments and mentions.

Required range: 1 <= x <= 5
created_at
string<date-time> | null
required

When they wrote it.

last_activity_at
string<date-time> | null
required

The newest message in it, theirs or yours, at the network's time. The list is ordered by it, and cursor pages on it; since goes by when PostSyncer read the message instead.

unread
boolean
required

true until someone on the team opens it in the app after their newest message.

about
object
required

What it is about.

thread
object[]
required

The messages after the first one, oldest first: every reply under a comment, the replies sent from PostSyncer under a mention, and a review’s reply.

notes
object[]
required

The team's notes on it, oldest first. They never reach the network. With client sign-off on, a Client member reads only the notes Client members wrote; the rest of the team reads them all.

tags
enum<string>[]
required

question (it has a question mark) and spam (moderation removed it as junk) come on their own. lead, complaint and praise come when PostSyncer AI writes a draft for it.

Available options:
question,
lead,
complaint,
praise,
spam
assignee
object | null
required

The teammate it is given to. Null for nobody.

draft
object | null
required

The reply waiting to be sent: Ready to send in the app. It never sends itself. A reply PostSyncer takes to send (a comment's, or a mention's) clears it, and a comment reply the network refuses comes back as the draft (by: person), unless someone wrote a newer one. Null when there is none.

can
object
required

What the key’s user may do with it, by their role and what the network allows.

cant_reply_reason
string | null
required

Why nobody can answer it from PostSyncer, in words to show the user, with where to answer instead: a mention the network takes no reply to from apps, The comment is hidden on {Network}. Unhide it to reply. or The comment was deleted on {Network}. Null when a reply can go out, and always on a review.

reply_limit
integer | null
required

The longest reply the network takes, in characters.

source
object
required

The id to answer it with: comment_id (a comment), mention_id (a mention) or review_id (a review). Only the one of its kind is there. A comment's also says whether it is hidden on its network.