- Home
- Resources
- Integrations
- Cloudflare
Cloudflare n8n integrationAutomate Cloudflare with n8n.
Your zone certificates should not live in a folder nobody opens. The Cloudflare n8n integration exposes 4 operations on a single resource, Zone Certificate, so a workflow can list them, read one, upload a new one or remove an old one. Useful when renewals still happen by hand.
Verified Trustpilot reviews · AI, automation & growth agency
What does the Cloudflare n8n integration actually do?
The Cloudflare n8n integration drives one resource of the Cloudflare API from a workflow: Zone Certificate. Four operations sit behind it, Get Many, Get, Upload and Delete, each scoped to a zone you pick from a dropdown or pass as an ID. The node comes bundled with n8n, so there is nothing to install and nothing extra to pay on the n8n side, whether you run n8n Cloud or a self-hosted instance.
Start with the inventory, because it is the cheapest win. A Schedule Trigger fires every Monday, Get Many pulls the custom certificates of a zone, and the Status filter narrows the list to the ones marked expired or pending. Rows land in Google Sheets for the people who want a table, and a short message goes to Slack for the person on call. Nobody has to remember to open a dashboard.
The second job is the renewal itself. When a new certificate has been issued, Upload sends the leaf certificate and its private key to the right zone in one step. Teams that keep their certificate material in a repository often chain it after a GitHub step, so the workflow reads what was just merged and pushes it without a copy and paste round trip.
Third comes the cleanup that usually gets skipped. Get reads a single certificate by its ID and confirms you are looking at the right one, then Delete removes the superseded entry. Writing the ID and the timestamp of that deletion into Postgres gives you a trail you can query later, which beats reconstructing a history from memory.
Anything outside those 4 operations is not a dead end. The HTTP Request node calls any endpoint of the Cloudflare API and reuses the same credential through predefined authentication, so a workflow can mix dedicated Cloudflare steps with raw calls and keep one token to manage. That is the pattern to reach for as soon as your need leaves the Zone Certificate resource.
One structural point to plan around: this tool has no trigger node in n8n. A Cloudflare workflow always starts somewhere else, usually a Schedule Trigger on a fixed interval, an n8n Webhook (a URL another service calls) or the trigger of another tool in the chain. If you are weighing the platform before building, the n8n review goes into the hosting and cost side in more depth.
How do you connect Cloudflare to n8n?
- 01
Set up the Cloudflare side first
Two prerequisites, in this order. Create a Cloudflare account, then add a domain to it. Zone certificates are attached to a zone, and a zone is what adding a domain creates, so an account with no domain gives the node nothing to point at. Do this before touching n8n and the rest of the setup takes a couple of minutes.
- 02
Create an API token
The Cloudflare node authenticates with an API token, which is the only supported method. Generate it from the Cloudflare dashboard following their token creation flow, then copy the value straight away. A token is shown once, and the fix for a lost one is to issue a new one rather than to hunt for the old value in a browser tab.
- 03
Save the credential in n8n
In n8n, open the Credentials menu, create a Cloudflare credential and paste the API token into it. A credential is created once and reused across every workflow, so the second and third Cloudflare workflow cost you nothing to connect. Back in the node, the credential shows up in its dropdown and the connection is done.
What can the Cloudflare node do?
The Cloudflare node exposes 4 operations across 1 resources. For each one: the node as you configure it in n8n, the required fields, and our field notes.
| Resource | Get | Delete | Get Many | Upload |
|---|---|---|---|---|
| Zone Certificate | ✓ | ✓ | ✓ | ✓ |
Operations index
Zone Certificate
4 operationsDelete a certificate
zoneCertificate.deleteWhat you see in n8n
Notes & use cases
Removes one custom certificate from a zone. The rest of the zone's certificates stay untouched, and the workflow carries on with whatever comes next.
Key parameters
- Zone Name or ID: the zone the certificate belongs to, picked from the list n8n loads from your account, or passed as an ID through an expression when an earlier node decides which zone to act on.
- Certificate ID: the identifier of the certificate itself, not its hostname. Read it with Get Many first so the workflow deletes the entry you meant.
Get a certificate
zoneCertificate.getWhat you see in n8n
Notes & use cases
Reads a single certificate from a zone and returns its record, which the following nodes can then test or log.
Key parameters
- Zone Name or ID: the zone to read from, chosen in the dropdown or given as an ID by expression.
- Certificate ID: which certificate to fetch. This is the value Get Many returns for each item, so the natural pattern is a list step feeding a read step.
Get many certificates
zoneCertificate.getManyWhat you see in n8n
Notes & use cases
Lists the custom certificates attached to a zone, one item per certificate, which makes it the starting point of most Cloudflare workflows.
Key parameters
- Zone Name or ID: the zone to inventory.
- Return All: switched on, n8n walks the API pages and brings back every certificate of the zone. Switched off, Limit caps how many items come out.
- Status, in Filters: keeps only the certificates in one state,
active,expired,deletedorpending.
expired and writes what it finds into a spreadsheet the whole team can read.Upload a certificate
zoneCertificate.uploadWhat you see in n8n
Notes & use cases
Sends a certificate and its key to a zone, so a renewal ends inside a workflow instead of in a browser tab.
Key parameters
- Zone Name or ID: the zone receiving the certificate.
- Certificate Content: the zone's leaf certificate, pasted in or, more often, read from a previous node with an expression.
- Private Key: the matching key. Since this field is required, an empty value stops the node, which is the behaviour you want here rather than a half-finished upload.
Need help automating Cloudflare with n8n?
A person reads every message.



