Skip to main content

Contentful Connector

Contentful Contentful is a content management system (CMS) that allows developers to manage and deliver content across multiple platforms and devices.

The Contentful component allows managing spaces, environments, content types, entries, assets, organizations, webhooks, and bulk actions.

API Documentation​

This component was built using the Contentful Content Management API Reference.

Connections​

OAuth 2.0​

Authenticate using OAuth 2.0.

To connect to Contentful, create a new OAuth application.

Prerequisites​

  • A Contentful account with developer access

Setup Steps​

  1. Navigate to the Developer Account Settings for OAuth applications
  2. Click Create New Application
  3. Enter the Redirect URI as https://oauth2.integrations.zenqms.com/callback
  4. Select Confidential for the client type
  5. Select the applicable scope (e.g., Content management manage)
  6. Save the application
  7. Copy the Client ID and Client Secret
Single Scope Requirement

Contentful only accepts a single scope per authorization request. The content_management_manage scope includes read access, so a separate content_management_read scope is not needed.

Available Scopes​

ScopeDescription
content_management_manageManage and read content in all Spaces
content_management_readRead content in all Spaces

Configure the Connection​

Create a connection of type OAuth 2.0 and enter:

  • Client ID: Enter the Client ID from the OAuth application
  • Client Secret: Enter the Client Secret from the OAuth application
  • Scopes: Enter a single scope (e.g., content_management_manage)

This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.

InputCommentsDefault
ScopesA single OAuth 2.0 scope. Contentful accepts one scope per authorization. Valid values: content_management_manage, content_management_read. The manage scope includes read access.content_management_manage
Client IDThe Client ID from the OAuth application credentials.
Client SecretThe Client Secret from the OAuth application credentials.

Triggers​

Event Subscription​

Receive event notifications from Contentful. Automatically creates and manages a webhook subscription for selected topics when the instance is deployed, and removes the subscription when the instance is deleted.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
EventsThe event types to subscribe to for this webhook.

Webhook​

Receive and validate webhook requests from Contentful for webhooks you configure.

InputCommentsDefault
ConnectionThe Contentful connection to use.

Actions​

Archive Entry​

Archives an existing entry.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Entry IDThe unique identifier for the entry.

Create Asset​

Creates a new asset.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
TitleThe title of the asset as a JSON object with locale keys.
{
"en-US": "Example Asset"
}
DescriptionThe description of the asset as a JSON object with locale keys.
{
"en-US": "Streamliner description"
}
FileThe file metadata for the asset as a JSON object with locale keys and upload details.
{
"en-US": {
"contentType": "image/jpeg",
"fileName": "example.jpeg",
"upload": "https://example.com/example.jpg"
}
}

Create Content Type​

Creates a new content type.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Content Type NameThe display name for the content type.
Content Type FieldsThe field definitions for the content type as a JSON array of field objects.
[
{
"id": "title",
"name": "Title",
"required": true,
"localized": true,
"type": "Text"
},
{
"id": "body",
"name": "Body",
"required": true,
"localized": true,
"type": "Text"
}
]
Display FieldThe field used as the main display field for entries of this content type.
DescriptionA brief explanation of what this content type is used for in the content model.

Create Entry​

Creates a new entry in a space.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Content Type IDThe unique identifier for the content type.
Entry DataThe entry data as a JSON object containing fields and their values.

Create Environment​

Creates a new environment.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Environment NameThe display name for the environment.

Create Space​

Creates a new space.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Organization IDThe unique identifier for the organization.
Space NameThe display name for the space.
Default LocaleThe default locale code for the space.

Create Webhook​

Creates a new webhook.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
NameA descriptive label to identify the webhook in the Contentful dashboard.
URLThe URL where webhook events will be sent.
EventsThe event types to subscribe to for this webhook.

Delete Asset​

Deletes an existing asset.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Asset IDThe unique identifier for the asset.

Delete Entry​

Deletes an existing entry.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Entry IDThe unique identifier for the entry.

Delete Environment​

Deletes an existing environment.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.

Delete Instanced Webhooks​

Deletes all webhooks that point to a flow in the current instance.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.

Delete Space​

Deletes an existing space.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.

Delete Upload​

Deletes a file from temporary data storage.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Upload IDThe unique identifier for the upload.

Delete Webhook​

Deletes an existing webhook.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Webhook IDThe unique identifier for the webhook.

Get Asset​

Retrieves a single asset by ID.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Asset IDThe unique identifier for the asset.

Get Bulk Action​

Retrieves a bulk action by ID.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Bulk Action IDThe unique identifier for the bulk action.

Get Entry​

Retrieves a single entry by ID.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Entry IDThe unique identifier for the entry.

Get Environment​

Retrieves a single environment by ID.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.

Get Organization​

Retrieves an organization by ID.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Organization IDThe unique identifier for the organization.

Get Space​

Retrieves a single space by ID.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.

Get Upload​

Retrieves an unmodified image.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Upload IDThe unique identifier for the upload.

Get Webhook​

Retrieves a single webhook by ID.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Webhook IDThe unique identifier for the webhook.

List Assets​

Retrieves all assets of a space.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.

List Content Types​

Retrieves all content types of a space.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.

List Entries​

Retrieves all entries of a space.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.

List Environments​

Retrieves all environments in a space.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.

List Organizations​

Retrieves all organizations the account has access to.

InputCommentsDefault
ConnectionThe Contentful connection to use.

List Published Entries​

Retrieves all published entries of a space.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.

List Spaces​

Retrieves all spaces the account has access to.

InputCommentsDefault
ConnectionThe Contentful connection to use.

List Webhooks​

Retrieves all webhooks of a space.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.

Patch Entry​

Applies partial updates to an entry using JSON Patch (RFC 6902) operations.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Entry IDThe unique identifier for the entry.
Patch OperationsA JSON array of JSON Patch (RFC 6902) operations.
Entry VersionThe current version number of the entry. Required for optimistic locking.

Process Asset​

Processes an asset for content delivery.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Asset IDThe unique identifier for the asset.

Publish Asset​

Publishes an asset.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Asset IDThe unique identifier for the asset.

Publish Bulk Action​

Publishes a bulk action.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
ItemsThe items to be processed in the bulk action as a JSON object containing entities and actions.
[
{
"sys": {
"linkType": "Entry",
"type": "Link",
"id": "<entry_id>",
"version": 2
}
},
{
"sys": {
"linkType": "Asset",
"type": "Link",
"id": "<asset_id>",
"version": 1
}
}
]

Publish Entry​

Publishes an entry.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Entry IDThe unique identifier for the entry.

Put Entry​

Replaces all fields of an existing entry with the provided data.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Entry IDThe unique identifier for the entry.
Entry DataThe full entry data as a JSON object. All existing fields will be replaced with the provided data.

Raw Request​

Sends a raw HTTP request to the Contentful API.

InputCommentsDefault
ConnectionThe Contentful connection to use.
URLInput the path only (/spaces), The base URL is already included (https://api.contentful.com). For example, to connect to https://api.contentful.com/spaces, only /spaces is entered in this field.
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Retry Delay (ms)The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.false
Max Retry CountThe maximum number of retries to attempt. Specify 0 for no retries.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.false

Unarchive Entry​

Unarchives an existing entry.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Entry IDThe unique identifier for the entry.

Unpublish Asset​

Unpublishes an asset.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Asset IDThe unique identifier for the asset.

Unpublish Bulk Action​

Unpublishes a bulk action.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
ItemsThe items to be unpublished in the bulk action as a JSON object containing entities to unpublish.
[
{
"sys": {
"linkType": "Entry",
"type": "Link",
"id": "<entry_id>"
}
},
{
"sys": {
"linkType": "Asset",
"type": "Link",
"id": "<asset_id>"
}
}
]

Unpublish Entry​

Unpublishes an entry.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Entry IDThe unique identifier for the entry.

Update Asset​

Updates an existing asset.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Asset IDThe unique identifier for the asset.
TitleThe updated title of the asset. Locale key must match the original locale of the asset to be updated.
{
"en-US": "Example Asset"
}
Asset DescriptionThe updated description of the asset. Locale key must match the original locale of the asset to be updated.
{
"en-US": "Streamliner description"
}

Update Content Type​

Updates an existing content type.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Content Type IDThe unique identifier for the content type.
Content Type NameThe updated name for the content type.
Content Type FieldsThe updated field definitions for the content type.
[
{
"id": "title",
"name": "Title",
"required": true,
"localized": true,
"type": "Text"
},
{
"id": "body",
"name": "Body",
"required": true,
"localized": true,
"type": "Text"
}
]
Display FieldThe updated field used as the main display field for entries.
DescriptionThe updated description for the content type.

Update Environment​

Updates an existing environment.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Environment IDThe unique identifier for the Contentful environment.
Environment NameThe updated name for the environment.

Update Organization​

Updates the security contact for an organization.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Organization IDThe unique identifier for the organization.
Security IDThe unique identifier for the security contact.

Update Space​

Updates an existing space.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
Space NameThe updated name for the space.

Update Webhook​

Updates an existing webhook.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
NameThe updated name for the webhook.
Webhook IDThe unique identifier for the webhook.

Upload File​

Uploads a file to temporary file storage.

InputCommentsDefault
ConnectionThe Contentful connection to use.
Space IDThe unique identifier for the Contentful space.
File ContentsThe contents to write to a file. This can be a string of text, it can be binary data that was generated in a previous step.