Linq icon

Linq

Interact with Linq API

Actions20

Overview

This node interacts with the Linq API to manage chat messages and other related resources. Specifically, for the Chat Message - Delete operation, it deletes a specified chat message by its ID. This is useful in scenarios where you want to programmatically remove unwanted or outdated messages from a chat conversation.

Practical examples include:

  • Automatically deleting messages that contain sensitive information after processing.
  • Cleaning up chat histories by removing spam or irrelevant messages.
  • Integrating with workflows that moderate chat content by deleting flagged messages.

Properties

Name Meaning
Chat Message ID The ID of the chat message to delete

Output

The output contains a JSON object representing the response from the Linq API after attempting to delete the chat message. Typically, this will confirm whether the deletion was successful or provide details if the message could not be deleted.

The json output field structure corresponds directly to the API's response for the delete request on a chat message resource.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the Linq API.
  • The node makes HTTP requests to the Linq API endpoints, specifically to:
    DELETE https://api.linqapp.com/api/partner/v2/chat_messages/{chatMessageId}
    
  • Proper configuration of the API key credential within n8n is necessary.

Troubleshooting

  • Rate Limit Errors: If the node throws an error indicating "Rate limit exceeded," it means too many requests were made in a short period. Wait at least 10 seconds before retrying.
  • Invalid Chat Message ID: Providing an incorrect or non-existent chat message ID will result in an error from the API. Verify the ID before running the node.
  • Authentication Issues: Ensure the API key credential is valid and has the required permissions to delete chat messages.
  • Network Issues: Connectivity problems can cause request failures; verify network access to the Linq API endpoint.

Links and References

Discussion