
CLOUDFLARE n8n INTEGRATION: AUTOMATE CLOUDFLARE WITH N8N
CLOUDFLARE N8N INTEGRATION: AUTOMATE CLOUDFLARE WITH N8N
Need help automating Cloudfare with n8n?
Our team will get back to you in minutes.
Why automate Cloudfare with n8n?
The Cloudflare n8n integration gives you access to 4 dedicated actions focused on zone certificate management. This means you can retrieve individual certificates, upload new ones, delete expired or unused certificates, and bulk-fetch certificate lists—all without ever logging into the Cloudflare dashboard manually.
Significant time savings come from eliminating repetitive certificate management tasks. Instead of manually navigating through Cloudflare's interface every time you need to check a certificate status or upload a new SSL cert, you set up the workflow once and let it run automatically. For teams managing multiple domains, this translates to hours saved every week. Zero oversight is another major advantage: your workflows can monitor certificate statuses and take action immediately when something needs attention, even outside business hours.
Here are concrete ways teams use this integration daily:
- Automated certificate provisioning: When a new domain is added to your system, automatically upload the corresponding SSL certificate to Cloudflare
- Certificate inventory management: Regularly fetch all certificates across zones and sync them to a spreadsheet or database for compliance tracking
- Cleanup automation: Automatically delete certificates when domains are decommissioned, keeping your Cloudflare account organized
- Multi-zone certificate retrieval: Pull certificate data from multiple zones in a single workflow and generate reports for your security team
How to connect Cloudfare to n8n?
! 1 stepHow to connect Cloudfare to n8n?
- 01
Add the node
Connecting Cloudflare to n8n requires API credentials that authenticate your requests. Cloudflare supports API Token authentication, which is the recommended method for granular permission control.Basic configuration:Create an API Token in Cloudflare: Log into your Cloudflare dashboard, navigate to "My Profile" → "API Tokens" → "Create Token". Select the appropriate permissions for zone certificates (typically "Zone:SSL and Certificates:Edit" for full access).Copy your API Token: Once created, copy the token immediately—Cloudflare only shows it once. Store it securely.Add credentials in n8n: In your n8n workflow, add a Cloudflare node. Click on "Credential to connect with" and select "Create New". Paste your API Token and save.Test the connection: Execute a simple "Get many certificates" action to verify your credentials work correctly.
TIP💡 TIP: Always create dedicated API tokens for n8n with the minimum required permissions rather than using your Global API Key. This follows the principle of least privilege and makes it easier to revoke access if needed without affecting other integrations.- 01
Need help automating Cloudfare with n8n?
Our team will get back to you in minutes.
Cloudfare actions available in n8n
01 Action 01Get a certificate
This action retrieves detailed information about a specific SSL/TLS certificate associated with a zone in your Cloudflare account. It's your go-to action when you need to check the status, expiration date, or configuration of a particular certificate programmatically.
Key parameters to configure:
- Credential to connect with: Select your Cloudflare API credentials from the dropdown menu. This is required for authentication.
- Zone Name or ID: Text field where you specify which zone's certificate you want to retrieve. This is optional—leave it empty if you're working with a default zone.
- Certificate ID: Text field to input the unique identifier of the specific certificate you want to fetch. Also optional, useful when you need details about one particular cert.
When to use this action:
- Verify a certificate's expiration date before it causes downtime
- Check if a newly uploaded certificate is properly configured
- Retrieve certificate details to include in automated reports or alerts

02 Action 02Upload a certificate
This action allows you to programmatically upload SSL certificates to your Cloudflare account, enabling fully automated certificate deployment workflows. Perfect for teams that generate certificates through Let's Encrypt, internal CAs, or other automated certificate authorities.
Key parameters to configure:
- Credential to connect with: Dropdown to select your Cloudflare credentials. Required.
- Zone Name or ID: Text field specifying the zone where the certificate will be uploaded. Required—you must indicate the target zone.
- Certificate Content: Text field where you paste the full PEM-encoded certificate content. Required.
- Private Key: Text field for the certificate's corresponding private key. Required for the certificate to function properly.
Practical use cases:
- Automatically deploy certificates generated by your CI/CD pipeline
- Upload renewed certificates from Let's Encrypt or other ACME providers
- Sync certificates from a centralized certificate management system to Cloudflare
💡 Pro tip: Combine this action with a webhook trigger to automatically upload new certificates as soon as your certificate authority issues them.

03 Action 03Delete a certificate
This action removes a specified SSL certificate from your Cloudflare account. Use it to clean up expired, unused, or replaced certificates and keep your zone certificate inventory organized.
Key parameters to configure:
- Credential to connect with: Dropdown for selecting your Cloudflare API credentials. Required.
- Zone Name or ID: Text input specifying the zone containing the certificate to delete. Required.
- Certificate ID: Text field accepting the unique identifier of the certificate you want to remove. Required—you must specify exactly which certificate to delete.
When this action shines:
- Automate cleanup of expired certificates after replacements are uploaded
- Remove certificates for decommissioned domains as part of offboarding workflows
- Maintain compliance by ensuring old certificates don't linger in your account

04 Action 04Get many certificates
This bulk retrieval action fetches multiple SSL certificates from your Cloudflare account at once. It's essential for inventory management, compliance auditing, and any workflow that needs to process certificates in batch.
Key parameters to configure:
- Credential to connect with: Dropdown for Cloudflare credentials. Required.
- Zone Name or ID: Text field to filter results by a specific zone. Optional—leave empty to retrieve certificates across all accessible zones.
- Return All: Toggle switch to retrieve every matching certificate regardless of pagination. Optional, defaults to false.
- Limit: Numeric input setting the maximum number of certificates to return per request (default: 25). Optional.
- Filters: Expandable section where you can add criteria to narrow down results based on specific attributes. Optional.
Powerful use cases:
- Generate weekly certificate inventory reports sent to your security team
- Monitor all certificates approaching expiration and trigger renewal workflows
- Sync your complete certificate list to a database like Airtable or spreadsheet for compliance documentation
- Build dashboards showing certificate status across all your Cloudflare zones

Build your first workflow with our team
Drop your email and we'll send you the catalog of automations you can ship today.
- Free n8n & Make scenarios to import
- Step-by-step setup docs
- Live cohort + community support
Frequently asked questions
Is the Cloudflare n8n integration free?
Yes, the Cloudflare integration is included natively in n8n at no additional cost—both in the self-hosted open-source version and in n8n Cloud plans. You simply need valid Cloudflare API credentials to authenticate. Keep in mind that Cloudflare itself may have API rate limits depending on your plan, but the n8n integration itself incurs no extra charges. For high-volume certificate operations, check your Cloudflare plan's API limits to ensure your workflows run smoothly.What data can I manage between Cloudflare and n8n?
The current Cloudflare n8n integration focuses specifically on Zone Certificate management. This means you can retrieve, upload, delete, and list SSL/TLS certificates associated with your Cloudflare zones. You'll have access to certificate content, private keys, certificate IDs, zone associations, and metadata like expiration dates. While this integration doesn't cover other Cloudflare features like DNS management or firewall rules, it provides comprehensive control over your certificate lifecycle automation.How long does it take to set up the Cloudflare n8n integration?
Most users complete the setup in under 5 minutes. The process involves creating an API token in Cloudflare (about 2 minutes), adding that credential to n8n (1 minute), and testing with a simple action like "Get many certificates" (1-2 minutes). If you already have your API token ready, you can be running your first certificate automation workflow in under 3 minutes. The intuitive parameter interface in n8n means you don't need to read API documentation—just fill in the fields and execute.



