Coolify icon

Coolify

Interact with Coolify API

Overview

This node interacts with the Coolify API to manage environment variables within applications. Specifically, the "Delete" operation under the "Environment Variable" resource allows users to delete one or more environment variables by specifying their keys for a given application.

Common scenarios include:

  • Cleaning up unused or sensitive environment variables from an application.
  • Automating environment variable management as part of deployment pipelines.
  • Removing deprecated configuration values to maintain security and consistency.

For example, a user might want to delete several environment variables related to a feature flag that is no longer used in a specific application.

Properties

Name Meaning
Application ID The unique identifier of the application from which environment variables will be deleted.
Keys One or more keys (names) of the environment variables to delete from the specified application.

Output

The node outputs a JSON array containing the results of the delete operations. Each element corresponds to the outcome of deleting environment variables for each input item processed. The exact structure depends on the Coolify API response but generally confirms successful deletion or provides error details.

No binary data output is produced by this node.

Dependencies

  • Requires an active connection to the Coolify API.
  • Needs an API authentication token configured in n8n credentials to authorize requests.
  • The node uses internal helper functions to make HTTP requests to Coolify endpoints.

Troubleshooting

  • Missing or invalid Application ID: Ensure the Application ID provided exists and is correct; otherwise, the API will reject the request.
  • Empty or incorrect Keys list: If no keys are provided or keys do not match existing environment variables, deletion will fail or have no effect.
  • API authentication errors: Verify that the API key credential is valid and has sufficient permissions to modify environment variables.
  • Network or connectivity issues: Confirm that n8n can reach the Coolify API endpoint without firewall or proxy blocking.
  • Operation or Resource not implemented error: This indicates a misconfiguration in the node parameters; double-check that "Environment Variable" is selected as the resource and "Delete" as the operation.

Links and References

Discussion