send_to_postiz
Publish or schedule a content variant to a connected Postiz social channel, storing the Postiz post ID and creating a publication record on success.
Instructions
[Pipeline step 6 — Publish] Send a variant to Postiz for immediate or scheduled publication to the connected social channel. Typical flow: create_variant (step 4) → update_variant to fill body_text & hashtags → list_postiz_integrations → send_to_postiz. On success: variant.status becomes "sent_to_postiz", postiz_post_id is stored in platform_settings, and a publications row is automatically created. Use raw_payload to bypass the default DTO builder when a specific Postiz feature (media, thread, poll, etc.) is needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | If true, send even when variant.status is already "sent_to_postiz". Default false — prevents accidental double-post. | |
| channel | No | Channel label for the publication record (e.g. "linkedin", "instagram"). If omitted, tries to infer from variant.platform. | |
| dry_run | No | If true, builds the payload but does NOT call Postiz — useful for agent debugging. | |
| variant_id | Yes | Variant id to publish. variant.body_text will be used as the post content. | |
| raw_payload | No | Advanced: fully override the Postiz POST /posts body. If set, the tool sends this payload as-is (still records variant link + publication on 2xx). | |
| scheduled_at | No | ISO 8601 timestamp to schedule the post. Omit for immediate publish. | |
| integration_id | Yes | Postiz integration id (channel). Get from list_postiz_integrations. |