Create or schedule a post
create_publicationPublish or schedule a post on one connected social account. Validates text against network limits and handles network-specific requirements like Pinterest boards or TikTok visibility.
Instructions
Publish now or schedule a post on ONE connected account. Pass state 'ready' with a future publish_date to schedule, or 'draft' to leave it for a person to review. Media has to be uploaded first with upload_media; pass the returned ids in files. The text is validated against the network's limits before anything is sent. On Pinterest a pin needs things no other network asks for: a board (destination_id, from list_destinations), at least one image or video — a pin is never text alone — and, if it should lead somewhere, the URL in link. On TikTok the user has to choose who can see the post (visibility), whether people can comment, Duet or Stitch (interactions) and whether it is commercial content; nothing may be preselected. Call this without them and the answer lists what that account allows, so you can ask. On YouTube, ask whether the video is made for kids. An Instagram video can come back in state publishing while the network processes it: that is not a failure, PlanVortex finishes it by itself within minutes, and creating it again would publish it twice. Always show the user what you are about to publish and let them confirm it: this posts publicly under their brand.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | No | Pinterest only: where the pin takes whoever clicks it. It goes here, not in the text: inside the text it is visible and cannot be clicked. | |
| text | No | The post body. | |
| files | No | Upload ids from upload_media. | |
| state | No | 'ready' publishes or schedules it; 'draft' just saves it. A post with problems is stored as 'withErrors' either way, and does not go out. | ready |
| title | No | Only on networks with a title field: YouTube, and the pin's title on Pinterest. | |
| id_account | Yes | The connected account to publish on. One post, one account. | |
| visibility | No | Who can see the post, on YouTube (public, unlisted, private) and TikTok (public, friends, followers, private). REQUIRED on TikTok and always the user's choice: TikTok forbids a default, and which values an account allows depends on the account. Other networks have no such setting; leave it out. | |
| interactions | No | TikTok only, REQUIRED there: whether people can comment, and on a video Duet and Stitch with it. Each is false unless the user says yes. | |
| publish_date | No | ISO 8601. Leave empty to publish immediately. | |
| made_for_kids | No | YouTube only: whether the video is made for kids (COPPA). The law makes it the channel owner's call: ask if it is not obvious. Leave it out elsewhere. | |
| destination_id | No | REQUIRED on Pinterest: the board the pin goes to, an id from list_destinations (never the board's name). Other networks have no destinations; leave it out there. | |
| social_network | Yes | The account's network: instagram, facebook, linkedin, telegram… | |
| id_organization | No | The PlanVortex organization id. Optional. | |
| publication_type | No | profile | |
| commercial_content | No | TikTok only: whether the post promotes the user's own brand (labeled Promotional content) and/or is a paid partnership with a third party (labeled Paid partnership; cannot be private). Leave it out if it is neither. | |
| destination_section_id | No | Pinterest only, optional: a section of that board, from list_destinations. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| publication | Yes | ||
| already_existed | Yes |