List Content Types
contentful.list_content_types
ActionBusiness appsconnection required
Calls the Contentful API with the connection's credentials.
List the content types defined in a space environment.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- Bearer token
- Providers
- Contentful
- Secret shape
- the CMA access token, or {"access_token": "…"}
- Config it needs
- space_id, environment_id, base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
6 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
order Sort order, such as 'sys.updatedAt'. Prefix the field with '-' to reverse it. | string | No | — | — | — |
limit How many items to return in one page (1-1000); Contentful defaults to 100. | number | No | — | 1–1000 | — |
skip How many items to skip before this page starts, so pages can be walked. | number | No | — | ≥ 0 | — |
query_params Any further Contentful query parameters as JSON, such as {"fields.slug": "about"}; field filters also need content_type set. | object | No | — | — | {"fields.slug":"about"} |
space_id The space to act on. Leave blank to use the connection's space. | string | No | — | — | — |
environment_id The environment to act on. Leave blank to use the connection's environment, or 'master'. | string | No | — | — | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"query_params": {
"fields.slug": "about"
}
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
items The page of entities Contentful returned. | array | — |
count How many entities are in this page. | number | — |
total How many entities match in total, across all pages. | number | — |
skip How many entities were skipped before this page. | number | — |
limit The page size Contentful applied. | number | — |
space_id The space the page was read from. | string | — |
environment_id The environment the page was read from. | string | — |
{
"count": 0,
"environment_id": "",
"items": [],
"limit": 0,
"skip": 0,
"space_id": "",
"total": 0
}See List Content Types run in a workflow.
In a technical demo we add the Contentful connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.