Preview a comment prompt against a sample post
sequences:operate scope (or a broader one that includes it).
Use this endpoint to try out a comment prompt against a generic sample post while you are still writing it. Nothing is fetched from LinkedIn and no Reply credits are spent, so this is the cheap way to iterate on wording. Pass sequenceId if the prompt text contains sequence variables and you want them filled in for the preview. Check outcome to see whether a comment was produced: generated means commentText holds the result, while any other value explains why the AI produced nothing. The number of sample previews you can run per day is capped.
Authorizations
Authenticate every request with a Bearer token. Pass your Reply API key in the
Authorization header:
Get your API key from the Reply dashboard: Settings → API Key.
Body
Request body for previewing a comment prompt against a generic sample post.
The prompt instructions to test
2000Topics the AI should refuse to comment on. A post matching one of these returns the aiSkip outcome.
Sequence to resolve variables against when promptText contains sequence variables. Omit if the prompt has
no variables.
x >= 1Response
The preview result
The result of a comment preview. Read outcome first — it tells you whether a comment was produced and, if not,
why.
Whether a comment was generated, and why not if it was skipped
generated, noRecentPosts, postsUnavailable, commentingRestricted, reshareNoText, noPostContent, aiSkip The generated comment. Populated only when outcome is generated.
The text of the post the comment was written for
The topic the AI detected in the post. Useful for checking why a post was skipped.
Link to the post the comment was written for