0-CodeKit icon

0-CodeKit

A toolbox of no-code utilities

Overview

This node verifies the ownership or validity of a domain name using the "Verify a Domain" operation under the "Business" resource. It is useful in scenarios where you need to confirm that a domain exists, is properly configured, or is associated with a legitimate business. Practical applications include onboarding new users by verifying their company domains, preventing fraudulent signups, or automating compliance checks for business partners.

Properties

Name Meaning
Domain The domain name to be verified (e.g., example.com). This is required.

Output

The output will be a JSON object containing the results of the domain verification. While the exact structure depends on the external API response, typical fields may include:

  • valid: Boolean indicating if the domain is valid.
  • domain: The domain that was checked.
  • details or similar: Additional information about the domain's status or any issues found.

Example output:

{
  "valid": true,
  "domain": "example.com",
  "details": {
    "reason": "Domain is active and reachable"
  }
}

If an error occurs and "Continue On Fail" is enabled, the output will contain an error field with the error message.

Dependencies

  • External Service: Requires access to the CodeKit API endpoint for business/domain verification.
  • Credentials: You must configure the codeKitApi credential in n8n for authentication.

Troubleshooting

  • Missing or Invalid Domain: If the "Domain" property is empty or incorrectly formatted, the node may throw an error such as Invalid domain format. Ensure you provide a valid domain name.
  • API Key Issues: If the codeKitApi credential is missing or invalid, you may see authentication errors like 401 Unauthorized. Double-check your credentials configuration.
  • Network/Service Errors: Errors such as ENOTFOUND, ECONNREFUSED, or timeouts indicate connectivity issues with the external service. Verify network access and service availability.
  • Error Handling: If "Continue On Fail" is enabled, errors are returned in the output as { "error": "Error message" }.

Links and References

Discussion