Cativa icon

Cativa

Consume Cativa API

Overview

The Cativa node for n8n allows you to interact with the Cativa API, specifically to manage users, groups, and posts.
For the User resource and the Ban User operation, this node enables you to ban a user by their email address.
This is useful in scenarios where you need to automate moderation workflows, such as automatically banning users who violate community guidelines or integrating with other systems that trigger bans based on certain events.

Example use cases:

  • Automatically ban users reported for spam.
  • Integrate with external abuse detection tools to enforce bans in Cativa.
  • Batch-ban users from a list.

Properties

Name Meaning
Email The email address of the user to be banned. Required. Example: [email protected]

Output

The output will be a JSON object (or array of objects) representing the result of the ban operation.
If the operation is successful, it typically contains confirmation details about the banned user.
If an error occurs and "Continue On Fail" is enabled, the output will include an error field with the error message.

Example output:

[
  {
    "success": true,
    "email": "[email protected]",
    "message": "User has been banned."
  }
]

Or, in case of error:

[
  {
    "error": "User not found"
  }
]

Dependencies

  • External Service: Requires access to the Cativa API.
  • API Key: You must configure valid Cativa API credentials in n8n under the name cativaApi.

Troubleshooting

  • Common Issues:

    • Invalid Email: If the provided email does not correspond to a user, you may receive an error like "User not found".
    • Missing Credentials: If the Cativa API credentials are not set up correctly, authentication will fail.
    • Network Errors: Connectivity issues between n8n and the Cativa API can cause failures.
  • Error Messages:

    • "Authentication failed": Check your API credentials.
    • "User not found": Verify the email address is correct and exists in Cativa.
    • "Insufficient permissions": Ensure your API key has rights to ban users.

Links and References

  • n8n Documentation
  • (If available) Cativa API documentation – refer to your Cativa platform administrator for API docs.

Discussion