Unipile icon

Unipile

Interact with Unipile API

Overview

This node integrates with the Unipile API to perform various operations on different resources. Specifically, for the "Post" resource and the "Add Reaction" operation, it allows users to add a reaction to a post by sending a raw JSON body. This is useful in scenarios where you want to programmatically interact with posts, such as adding emoji reactions or other types of feedback automatically based on workflow conditions.

Practical examples include:

  • Automatically reacting to social media posts or messages when certain keywords are detected.
  • Adding standardized reactions to posts in a team collaboration tool to acknowledge receipt or approval.
  • Integrating with monitoring systems that react to alerts posted as messages.

Properties

Name Meaning
Body (JSON) Raw JSON body to send when adding a reaction. This should contain the necessary data to specify the reaction details according to the Unipile API requirements.

Output

The node outputs JSON data representing the response from the Unipile API after attempting to add the reaction. The structure typically includes confirmation of the added reaction or error details if the operation failed.

If the API supports binary data responses (not indicated here), the node would handle them accordingly, but this operation primarily deals with JSON data.

Dependencies

  • Requires an active connection to the Unipile API via an API key credential configured in n8n.
  • The base URL for API requests is dynamically set from the credential's DSN (Data Source Name).
  • The node sends HTTP requests with Accept and Content-Type headers set to application/json.

Troubleshooting

  • Invalid JSON Body: If the JSON provided in the "Body (JSON)" property is malformed, the API will likely return an error. Ensure the JSON syntax is correct.
  • Authentication Errors: Missing or invalid API credentials will cause authentication failures. Verify that the API key credential is correctly configured.
  • API Endpoint Issues: If the base URL or endpoint paths are incorrect or the API service is down, requests will fail. Check network connectivity and API status.
  • Permission Denied: The API user might lack permissions to add reactions. Confirm the API user's access rights.
  • Unexpected Response Structure: If the API changes its response format, the node output may not match expectations. Review API documentation for updates.

Links and References

Discussion