Actions26
Overview
This node integrates with the GoHighLevel V2 API, allowing users to manage various resources such as Contacts, Companies, Opportunities, and Custom Fields within their GoHighLevel account. Specifically, for the Company - Delete operation, it enables the deletion of a company record by its unique identifier.
Common scenarios where this node is beneficial include automating CRM cleanup tasks, removing outdated or incorrect company entries, and integrating company data management into broader workflows without manual intervention.
For example, you might use this node in a workflow that triggers when a company is marked as inactive in another system, automatically deleting the corresponding company record in GoHighLevel.
Properties
| Name | Meaning |
|---|---|
| Company ID | The unique identifier of the company to delete. This is a required string input. |
Output
The node outputs JSON data representing the result of the delete operation. Typically, this will be a confirmation of successful deletion or an error message if the operation failed.
- The
jsonoutput field contains the response from the GoHighLevel API after attempting to delete the specified company. - No binary data output is produced by this operation.
Dependencies
- Requires an active connection to the GoHighLevel V2 API via OAuth2 authentication.
- The node depends on proper configuration of the GoHighLevel OAuth2 credentials within n8n.
- Network access to the GoHighLevel API endpoint is necessary.
Troubleshooting
Common issues:
- Providing an invalid or non-existent Company ID will cause the API to return an error.
- Missing or expired OAuth2 credentials will prevent the node from authenticating successfully.
- Network connectivity problems can cause timeouts or failures.
Error messages:
"The resource "company" is not known!": This indicates an internal misconfiguration or unsupported resource; ensure the resource parameter is correctly set to "company".- API errors related to authorization or invalid IDs will be returned in the node's output JSON under an error message field.
Resolutions:
- Verify the Company ID is correct and exists in your GoHighLevel account.
- Re-authenticate or update the OAuth2 credentials if authorization errors occur.
- Check network connectivity and firewall settings if requests fail to reach the API.
Links and References
- GoHighLevel API Documentation (for detailed API endpoints and responses)
- n8n OAuth2 Credential Setup (for configuring OAuth2 credentials)