Namecheap icon

Namecheap

Consume Namecheap API

Overview

The node integrates with the Namecheap API to manage domain-related operations. Specifically, for the Domain - Create operation, it allows users to register a new domain name for a specified number of years with optional registration settings such as privacy protection and DNS features.

This node is beneficial in scenarios where automated domain registration is needed, such as:

  • Registering new domains programmatically during website or app deployment.
  • Automating domain portfolio management workflows.
  • Integrating domain registration into broader automation pipelines (e.g., marketing campaigns, client onboarding).

Example: Automatically register "example.com" for 2 years with WhoisGuard privacy enabled and auto-renewal turned on.

Properties

Name Meaning
Domain Name The domain name to register (e.g., "example.com").
Years Number of years to register the domain (integer between 1 and 10).
Registration Options Collection of optional settings:
- Add Free WhoisGuard (boolean): add free privacy protection.
- Enable WhoisGuard (boolean): enable privacy protection.
- Premium DNS (boolean): enable premium DNS service.
- Auto Renew (boolean): enable automatic renewal of the domain.

Output

The node outputs a JSON object with the following structure:

{
  "success": true,
  "data": { /* response data from the domain creation API call */ }
}
  • success: Boolean indicating if the operation succeeded.
  • data: Contains the detailed response from the Namecheap API about the domain creation result, such as confirmation details, status, or error messages if any.

No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the Namecheap API.
  • Needs an API authentication credential configured in n8n (an API key or token).
  • Internet access to communicate with Namecheap's services.

Troubleshooting

  • Common issues:

    • Invalid domain name format or unsupported TLD.
    • Attempting to register a domain that is already taken.
    • Insufficient permissions or invalid API credentials.
    • Exceeding allowed registration years or invalid year values.
  • Error messages:

    • "The operation "create" is not known for resource "domain"!" — indicates a misconfiguration of the operation parameter.
    • API errors returned by Namecheap will be included in the error field if continueOnFail is enabled.
  • Resolutions:

    • Verify domain name correctness and availability.
    • Check API credentials and permissions.
    • Ensure the "Years" value is within 1 to 10.
    • Review Namecheap API limits and account status.

Links and References

Discussion