Postiz icon

Postiz

Consume Postiz API

Create Post

AI-generated

Overview

This node operation allows users to create posts on the Postiz platform. It supports creating posts as drafts, scheduled posts, or immediate posts. Users can specify post details such as type, whether to use short links, the date and time for the post, tags, and an array of posts with channel IDs, groups, provider-specific settings, and content items including text and images. This operation is useful for automating social media or content publishing workflows where posts need to be managed programmatically.

Use Case Examples

  1. Scheduling a social media post with specific tags and content for multiple channels.
  2. Creating a draft post with detailed settings and content items for later review.
  3. Publishing a post immediately with short links enabled and tagged for categorization.

Properties

Name Meaning
Type Type of post to create (Draft, Schedule, or Now)
Short Link Whether to use short links in the post (boolean)
Date Date and time for the post (used for scheduling)
Tags Tags for the post, each with a value and label
Posts Array of posts, each containing channel ID, group, provider-specific settings, and content items with text and images

Output

JSON

  • type - Type of the created post
  • shortLink - Indicates if short links are used
  • date - Scheduled date and time of the post
  • tags - Array of tags with value and label
  • posts
    • integration
      * id - ID of the channel where the post is published
    • group - Group of the post
    • settings - Provider-specific settings as key-value pairs
    • value
      * content - Content text of the post
      * id - Optional content ID
      * image
      * id - ID of images associated with the content
      * path - Path or URL of images associated with the content

Dependencies

  • Postiz API authentication credential

Troubleshooting

  • Ensure all required fields are provided, especially channel IDs and content items for non-draft posts.
  • Verify the date and time format for scheduling posts is correct and in the expected timezone.
  • Check API credentials and permissions if the request fails due to authentication errors.
  • If the post creation fails, inspect error messages for missing or invalid settings in provider-specific configurations.
  • For binary data issues, ensure the input data is correctly formatted and contains the expected properties.

Discussion