Create or schedule a post
create_publicationPublish or schedule a social post on one connected account, saving it as a draft for review, validating limits, and handling platform-specific media and board requirements.
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. 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. | |
| publish_date | No | ISO 8601. Leave empty to publish immediately. | |
| 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 | |
| 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 |