Get Item

cockpit.get_item
ActionBusiness appsconnection required

Calls the Cockpit API with the connection's credentials.

Read one content item by its Cockpit id.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Cockpit
Secret shape
the API key, or {"api_key": "…"}
Config it needs
base_url, locale
Resolved by
config.connection_id, else node.connection_id

Configuration

5 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
model
Name of the Cockpit model to work with, as it appears in the admin UI.
stringYes——posts
item_id
The item's Cockpit id, the _id value a listing or save returned.
stringYes——65f1a2b3c4d5e6f708091a2b
fields
MongoDB-style projection choosing which fields come back, e.g. {"title": 1}.
objectNo——{"title":1}
populate
How many levels of linked content items to resolve; 0 leaves links as ids.
numberNo0≥ 0—
locale
Locale to return content for; leave blank to use the connection's locale.
stringNo——default

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "fields": {
    "title": 1
  },
  "item_id": "65f1a2b3c4d5e6f708091a2b",
  "locale": "default",
  "model": "posts",
  "populate": 0
}

Output

One shape.

result

FieldTypeExample
model
The model that was read.
string—
found
False when Cockpit matched no item (it answers JSON false).
boolean—
item
The content item, or an empty object when nothing matched.
object—
{
  "found": false,
  "item": {},
  "model": ""
}

See Get Item run in a workflow.

In a technical demo we add the Cockpit connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.