Unipile icon

Unipile

Interact with Unipile API

Overview

The node integrates with the Unipile API, allowing users to perform various operations on different resources managed by Unipile. Specifically, for the "Post" resource and the "Create Post" operation, it enables creating a new post by sending a raw JSON body to the Unipile service. This is useful in scenarios where you want to automate content creation or publish posts programmatically within workflows.

Practical examples include:

  • Automatically posting updates or announcements to a social media platform integrated via Unipile.
  • Creating posts based on data collected from other nodes or external triggers.
  • Automating content publishing schedules.

Properties

Name Meaning
Body (JSON) Raw JSON body to send when creating a post. This should contain all necessary fields as required by the Unipile API for a post creation.

Output

The node outputs JSON data representing the response from the Unipile API after attempting to create the post. This typically includes details of the created post such as its ID, content, timestamps, and status. The output can be used downstream in the workflow for further processing or logging.

If the API supports binary data related to posts (e.g., images or attachments), the node would handle that accordingly, but based on the provided code and properties, the focus is on JSON data.

Dependencies

  • Requires an API key credential for authenticating with the Unipile API.
  • The base URL for the API is configured dynamically from the credentials.
  • The node expects the Unipile API to accept and return JSON-formatted data.

Troubleshooting

  • Invalid JSON in Body (JSON) property: Ensure the JSON entered is valid and matches the expected schema for creating a post in Unipile.
  • Authentication errors: Verify that the API key credential is correctly set up and has the necessary permissions.
  • API endpoint issues: Confirm that the base URL in the credentials is correct and the Unipile service is reachable.
  • Unexpected API responses: Check the structure of the JSON sent; missing required fields may cause errors.

Links and References

Discussion