Postiz icon

Postiz

Consume Postiz API

Overview

This node integrates with the Postiz API to manage social media posts and related media content. It supports multiple operations including creating posts, deleting posts by ID, generating AI videos, uploading files, retrieving connected channels, and fetching posts within a date range.

The Delete Post operation specifically allows users to delete a post on Postiz by providing its unique post ID. This is useful for automating content management workflows where outdated or incorrect posts need to be removed programmatically.

Practical example:

  • Automatically delete scheduled posts that are no longer relevant based on external triggers or conditions in your workflow.
  • Clean up posts after a campaign ends without manual intervention.

Properties

Name Meaning
Post ID ID of the post to delete

Output

The output is a JSON array containing the response from the Postiz API after attempting to delete the specified post. Typically, this will include confirmation of deletion or an error message if the deletion failed.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the Postiz API.
  • The node uses HTTP requests to communicate with Postiz endpoints.
  • No additional environment variables are explicitly required beyond the API authentication setup.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent Post ID will result in an error from the API.
    • Network connectivity problems can cause request failures.
    • Insufficient permissions or expired API credentials may prevent successful deletion.
  • Error messages:

    • Errors returned from the API typically include descriptive messages indicating why the deletion failed (e.g., "Post not found").
    • If the input item does not contain the required postId property or it is empty, the node will throw an error before making the API call.
  • Resolution tips:

    • Verify the Post ID is correct and exists in your Postiz account.
    • Ensure your API key credential is valid and has necessary permissions.
    • Check network connectivity and retry if transient errors occur.

Links and References

Discussion