Overview
This node, named "Lis - Delete Thread," is designed to delete a specific thread from an external service. It is useful in scenarios where you need to programmatically remove threads, such as cleaning up outdated conversations, managing support tickets, or automating thread lifecycle management within a messaging or ticketing system.
For example, if you have a list of thread IDs that are no longer relevant, this node can be used to delete each one by sending a DELETE request to the corresponding API endpoint.
Properties
| Name | Meaning |
|---|---|
| Thread ID | The unique identifier of the thread to be deleted. This is a required string input. |
Output
The node outputs a JSON array where each element corresponds to the response from the API after attempting to delete a thread. Each item in the output array contains the raw JSON response returned by the DELETE HTTP request for the respective thread ID.
No binary data is output by this node.
Dependencies
- Requires an API key credential to authenticate with the external service's API.
- The node sends HTTP DELETE requests to the URL constructed from the base URL provided in the credentials plus
/agent/threads/{threadId}. - Proper configuration of the API URL and authentication token in the node’s credentials is necessary.
Troubleshooting
Common issues:
- Invalid or missing Thread ID: The node requires a valid thread ID; ensure it is correctly provided.
- Authentication errors: If the API key or credentials are incorrect or expired, the DELETE request will fail.
- Network or endpoint errors: If the base URL is incorrect or the service is unreachable, requests will not succeed.
Error messages:
- HTTP 401 Unauthorized or 403 Forbidden: Check that the API key credential is valid and has sufficient permissions.
- HTTP 404 Not Found: The specified thread ID does not exist or the URL is incorrect.
- Other HTTP errors: Review the API documentation for error codes and ensure the request format matches expectations.
Links and References
- Refer to the external service’s API documentation for details on the thread deletion endpoint and required authentication.
- n8n HTTP Request node documentation for understanding how HTTP methods work within n8n workflows.