Publish held drafts to the community
publish_postsRelease chosen posts (and their reply drafts) to the community earn feed. Free. This is the approval step for a campaign created with post_visibility 'private' (held mode): drafts are found and written but nobody can claim them until you publish them. Pass the post_ids the user approved, or all:true. If the campaign is still private this makes it public — which turns on per-posted-reply billing (20 credits each) — so the API demands confirm:true; only pass it after the user has agreed. Unlike update_campaign's visibility flip, this touches only the posts you name and leaves future drafts held.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaign_id": "<campaign_id>"
},
"name": "publish_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Release every held post in the campaign | |
| confirm | No | Required only when the campaign itself is still private — confirms the user agreed to community distribution and per-reply billing | |
| post_ids | No | Post ids from get_posts to release. Omit with all:true to release every held post. | |
| campaign_id | Yes |