Evolution API icon

Evolution API

Interact with Evolution API

Overview

The node "Evolution API" allows interaction with the Evolution API service. Specifically, for the resource Instancia and operation Reiniciar Instancia, it enables users to restart a particular instance by specifying its name. This is useful in scenarios where an instance needs to be rebooted or refreshed remotely via API calls, such as recovering from errors, applying updates, or resetting state.

Practical example: A user can automate restarting a server instance named "prod-server-1" after deploying new code or when monitoring detects performance degradation.

Properties

Name Meaning
Nombre De La Instancia The name of the instance you want to restart. This is a required string input.

Output

The node outputs a JSON array containing the response from the Evolution API after attempting to restart the specified instance. The exact structure depends on the API's response but typically includes status information about the restart operation.

No binary data output is indicated.

Dependencies

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

Troubleshooting

  • Operation not supported error: If the node throws an error stating the operation is not supported, verify that the resource and operation names are correctly set to "instances-api" and "restart-instance" respectively.
  • Authentication errors: Ensure the API key credential is valid and has sufficient permissions to perform instance restarts.
  • Instance not found: If the specified instance name does not exist, the API may return an error; double-check the instance name spelling.
  • Network issues: Confirm network connectivity to the Evolution API endpoint.

Links and References

Discussion