Resources · n8n integration

Cockpit n8n integrationAutomate Cockpit with n8n.

Your Cockpit content can feed the rest of your tools without anyone opening the admin panel. The Cockpit n8n integration exposes 5 operations over 3 resources: collections, forms and singletons. Cockpit has no trigger node, so a workflow starts elsewhere and calls Cockpit when it needs to read or write.

Verified Trustpilot reviews · AI, automation & growth agency

Why automate

What does the Cockpit n8n integration actually give you?

The Cockpit n8n integration is one node that talks to the Cockpit API from inside a workflow. It groups 5 operations under 3 resources: collections (create, read, update entries), forms (store a submission) and singletons (read one). You choose the resource, choose the operation, point it at a collection or a singleton by name, and n8n signs the call with the credential you saved once in the Credentials menu.

Reading is where most people start. A Schedule Trigger fires every morning, collection.getAll pulls the entries of a products collection, and the rows land in Google Sheets for the sales team. Switch Return All on and n8n keeps asking the API for the next page until the collection is exhausted. Leave it off and Limit caps how many entries come back, which is what you want while you are still testing the workflow.

Writing back is the second half. Say an editor approves a draft in a review tool: the workflow picks up that approval, then collection.update changes the matching entry in Cockpit. The operation needs the Entry ID of the record, not its title, so the update usually follows a read that already carries the identifier. Nothing else in the entry moves unless you put it in Entry Data.

Forms cover the inbound side. A landing page posts to an n8n Webhook, which is a URL n8n publishes so an outside service can call your workflow. From there form.submit stores the answers in the Cockpit form of that name, and a confirmation goes out through Gmail in the same run. Everything stays on your Cockpit instance instead of a third-party form vendor.

Singletons are the small, quiet one. singleton.get reads a single block of content, the kind you use for a banner, a contact address or a feature flag, and a downstream node decides what to do with it. It reads only, so treat it as configuration a workflow consults rather than data it maintains.

Two things are worth knowing before you build. The Cockpit node has no trigger, so the schedule or the webhook always comes from another node. And anything outside these 5 catalog operations goes through the HTTP Request node, which calls any Cockpit API endpoint while reusing the same credential. If you want a second opinion on the platform before committing, the n8n review covers it, and the n8n training walks through building workflows like these.

Connect

How do you connect Cockpit to n8n?

  1. 01

    Create the API token in Cockpit

    You need a Cockpit account and a self-hosted instance of Cockpit running before anything else. Inside it, generate an API token following Cockpit's own Managing tokens documentation. That token is the only supported authentication method for this node, so there is no OAuth screen to click through and no second app to register. Keep the token somewhere safe, you will paste it into n8n in the next step.

  2. 02

    Save the Cockpit credential in n8n

    Open the Credentials menu in n8n and create a Cockpit credential, which is the stored login n8n reuses on every call. Two values go in. Cockpit URL is the URL you use to reach your own Cockpit instance. Access Token is the API token you just generated in Cockpit. Save it once and every Cockpit node in every workflow can select it from a dropdown.

  3. 03

    Pick a resource and run the node once

    Drop a Cockpit node in a workflow and choose the resource first: Collection, Form or Singleton. The operation list narrows to what that resource supports. For a collection, Collection Name or ID loads the collections from your instance, so you select the right one instead of typing it. Run the node on its own and check the output before you wire anything behind it.

Actions

What can the Cockpit node do?

The Cockpit node exposes 5 operations across 3 resources. For each one: the node as you configure it in n8n, the required fields, and our field notes.

Resources × operations matrix
ResourceCreate an EntryGetGet Many EntriesUpdate an EntrySubmit a Form
Collection✓✓✓
Form✓
Singleton✓

Collection

3 operations
01

Create a collection entry

collection.create

What you see in n8n

Notes & use cases

Adds a new entry to a Cockpit collection and hands the stored record to the next node, so a workflow can keep working with what it just created.

Key parameters

  • Collection Name or ID: the collection the entry lands in. Pick it from the list n8n loads from your instance, or supply an ID with an expression.
  • JSON Data Fields: decides how you fill the entry, through the key-value pair interface or as raw JSON.
  • Entry Data: the content itself, typed field by field or pasted whole as JSON.
Use cases
a new event published on your site the moment your calendar confirms it, with the title and the date mapped from the incoming item.
02

Get many collection entries

collection.getAll

What you see in n8n

Notes & use cases

Reads entries out of a collection and returns them as separate items, one per entry, ready to loop over or send somewhere else.

Key parameters

  • Return All: on, n8n pages through the API until every entry is back; off, Limit sets the ceiling.
  • Filter Query: a query in Mongolite format, such as {"name": "Jim"}, so the filtering happens in Cockpit rather than in a later node.
  • Fields: a comma-separated list like _id,name when you only need two columns out of a heavy entry.
  • Populate: resolves items linked from other collections instead of leaving raw references.
Use cases
a weekly catalog export, sorted with Sort Query and paged with Skip when the collection is long.
03

Update a collection entry

collection.update

What you see in n8n

Notes & use cases

Changes one existing entry in place. The entry keeps its identity, only the fields you send are rewritten.

Key parameters

  • Entry ID: the identifier of the record to modify, usually carried over as an expression from a previous read step rather than typed by hand. A title will not do, Cockpit matches on the ID.
  • Collection Name or ID: the collection that holds the entry, selected from the list or given as an ID.
  • Entry Data and JSON Data Fields: the new values, and whether you enter them as key-value pairs or as JSON.
Use cases
flipping an article from draft to published once a reviewer signs off in Slack.

Form

1 operation
04

Submit a form

form.submit

What you see in n8n

Notes & use cases

Stores a form submission in Cockpit, exactly as if the visitor had filled the form on your own site. The submission is kept under the form you name.

Key parameters

  • Form: the name of the form the data belongs to. It is typed, not picked from a list, so the spelling has to match the form in Cockpit.
  • Form Data: the answers themselves, mapped field by field or sent as one JSON object.
  • JSON Data Fields: switches between those two ways of filling the data.
Use cases
a chatbot conversation that ends in a quote request, written into the Cockpit form your team already reads every morning.

Singleton

1 operation
05

Get a singleton

singleton.get

What you see in n8n

Notes & use cases

Fetches one singleton, the standalone piece of content Cockpit keeps outside any collection, and returns it as a single item.

Key parameters

  • Singleton Name or ID: which singleton to read, chosen from the list n8n pulls from your instance or passed as an ID through an expression.
Use cases
reading the site-wide announcement banner at the start of a workflow, then letting an IF node decide whether the campaign is still live before the rest of the run continues.
Need help

Need help automating Cockpit with n8n?

A person reads every message.

FAQ

Questions people ask about Cockpit and n8n

01Is the Cockpit n8n integration free?
Yes, on the n8n side. The Cockpit node ships with n8n, so there is nothing to install and nothing extra to pay to use it. That holds both on n8n Cloud, the hosted offer run by n8n, and on an instance you host yourself with Docker or npm under the Community Edition and its Sustainable Use licence. A workflow behaves the same way in either place. What Cockpit itself costs you is a separate question and depends on how you run your own instance, which this page does not cover.
02Which credentials does the Cockpit node need?
One credential, using an API access token. It holds two values: the Cockpit URL, meaning the address you use to reach your own Cockpit instance, and an Access Token, which is the API token you create in Cockpit following its Managing tokens documentation. You need a Cockpit account and a self-hosted Cockpit instance before you can generate that token. Once the credential is saved in the n8n Credentials menu it is reusable, so every Cockpit node in every workflow just selects it from a dropdown rather than asking for the token again.
03What are the limits of the Cockpit node in n8n?
The node carries 5 operations over 3 resources: collections, forms and singletons. For long collections, keep pagination in mind. Return All walks through the API pages until everything is back, while Limit stops the read earlier, and the Options block on Get many collection entries adds 7 more fields including Skip, Sort Query and RAW Data. Anything that falls outside those catalog operations goes through the HTTP Request node, which can call any endpoint of the Cockpit API while reusing the same credential you already set up.
04Does Cockpit have a trigger in n8n?
No. Cockpit has no trigger node in n8n, so a workflow around it always starts with something else. The usual choices are a Schedule Trigger, which runs the workflow at a fixed interval, or an n8n Webhook, a URL n8n publishes so an outside service can call the workflow as soon as something happens on its side. A trigger belonging to another tool works just as well. Once the workflow is running, the Cockpit node does the reading or the writing wherever you place it in the chain.
05n8n or Make for Cockpit?
It depends on where your data should live and how you want to pay. Make is a hosted automation platform with no self-hosting option, billed per operation. n8n runs on n8n Cloud or on your own server. Since Cockpit is something you host yourself, keeping the automation next to it means the content never leaves machines you control, which is often the deciding argument here. Make suits teams that want no server to look after at all. Both build workflows visually, so the choice rarely comes down to the canvas itself.