Evolution API icon

Evolution API

Interact with Evolution API

Overview

This node, named "Evolution API," allows users to interact with the Evolution API service. Specifically, for the resource "Instancia" and operation "Deletar Instancia," it enables deleting an instance by its name. This is useful in scenarios where you need to programmatically remove instances from the Evolution system, such as cleaning up unused or obsolete instances automatically.

Practical example: If you manage multiple instances in Evolution and want to automate the deletion of a specific instance based on certain criteria (e.g., after a project ends), this node operation can be integrated into your workflow to perform that deletion without manual intervention.

Properties

Name Meaning
Nome Da Instancia The name of the instance to be deleted. This is a required string input identifying which instance will be removed.

Output

The node outputs a JSON array containing the result of the delete operation. Typically, this would include confirmation details such as success status or any relevant metadata returned by the Evolution API about the deletion.

If the API supports binary data output for this operation, it is not indicated here; thus, the output is expected to be purely JSON.

Dependencies

  • Requires an API key credential for authenticating with the Evolution API.
  • The base URL for requests is set to https://doc.evolution-api.com/api-reference.
  • Proper configuration of the API authentication credentials within n8n is necessary for successful execution.

Troubleshooting

  • Operation Not Supported Error: If you receive an error stating the operation is not supported, verify that the resource and operation names are correctly specified as "instances-api" and "delete-instance" respectively.
  • Authentication Errors: Ensure that the API key credential is valid and has sufficient permissions to delete instances.
  • Instance Not Found: If the specified instance name does not exist, the API may return an error or empty response. Double-check the instance name spelling and existence.
  • Network Issues: Confirm network connectivity to the Evolution API endpoint and that no firewall or proxy is blocking the request.

Links and References

Discussion