Create a post (draft or scheduled)
create_draft_postCreate a post in PurrPlan, attached to one or more connected social accounts. content takes either a string (a simple post — an empty line starts a new paragraph) or an ARRAY of strings whose first element is the post and whose following elements are published automatically AFTER it. What the second block becomes depends on the network: a THREAD (chained reply) on X/Twitter, Threads, Mastodon and Bluesky — a FIRST COMMENT on Facebook Page, Instagram and Instagram Direct, which automates the "link or call to action in the first comment" habit. On the other networks (LinkedIn, TikTok, YouTube, Pinterest, Reddit, Telegram, Google Business) the extra blocks are IGNORED and the response carries a warnings field. By default this creates a draft. Pass scheduled_at (ISO 8601 UTC) to schedule it instead; publication then happens at that time, not during this call. Media imported with upload_media_from_url can be attached (they go on the first block). options carries network-specific settings keyed by provider — for example {"threads": {"topic_tag": "buildinpublic"}} to post inside a Threads topic. Do not use this tool for a STORY: it creates a FEED post. Use create_stories, or pass options {"": {"type": "story"}} explicitly (Instagram, Instagram Direct, Facebook Page, Facebook extension). Without that option the post goes to the feed. — FR : crée un post (brouillon par défaut, programmé avec scheduled_at) ; post de FIL, pas une story.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Texte du post (appliqué à tous les comptes). String = post simple. Tableau de strings = post + suites : thread sur X/Threads/Mastodon/Bluesky, PREMIER COMMENTAIRE sur Facebook/Instagram, ignoré ailleurs (voir `warnings` dans la réponse). | |
| options | No | Réglages propres à un réseau, indexés par nom de provider (celui renvoyé par list_accounts). Exemple : {"threads": {"topic_tag": "buildinpublic"}}. Pour publier une STORY plutôt qu'un post de fil : {"facebook_page": {"type": "story"}} (valeurs post|reel|story sur Instagram, Instagram Direct et Facebook Page). Chaque réseau valide ses propres clés ; une clé inconnue ou un provider non ciblé par `account_ids` est refusé. | |
| account_ids | Yes | IDs numériques des comptes cibles (issus de list_accounts) | |
| media_uuids | No | UUIDs des médias à attacher (obtenus via upload_media_from_url) | |
| scheduled_at | No | Date/heure UTC ISO 8601. Si fourni, programme le post au lieu de créer un brouillon. | |
| workspace_uuid | Yes |