Documentation Center

Connector for Contentful configuration properties

Implementing the Tridion Connector for Contentful requires a JSON configuration file, which defines your specific integration of Tridion with Contentful.

This topic describes the configuration properties that are needed specifically for the Connector for Contentful. For complete information on standard configuration format, see the related topic for configuring a Connector.

In the Connectors's JSON configuration file, use the following properties:

accessToken
Access token to be used to authenticate over OAuth.
The Connector will generate a Base64-encoded bearer token based on the access token and the username.
hostUrl
URL to the REST API endpoint.
Normally this is the following:https://api.contentful.com
bearerTokenUrl
URL to the OAuth2 authorization endpoint to acquire Bearer token.
Normally this is the following: https://be.contentful.com/oauth/token

Example configuration file

The following sample code illustrates a configuration file that includes the Connector for Contentful:

{
  "configuration": {
    "ContentfulConnector": {
      "configuration": {
        "AccessToken": "BFPAF-MF8fFBB6j2Q9Fcq5n7LRlSjpzVZ506Nqvvvx9UXYpp9",
        "HostUrl": "https://api.contentful.com",
        "BearerTokenUrl": "https://be.contentful.com/oauth/token"
      }
    }
  },
  "sitesCm": {
    "isEnabled": true,
    "ContentfulConnector": {
      "namespaces": {
        "contentful": {
          "displayName": "Contentful",
          "stubFolders": [ "tcm:2-71-2" ],
          "privilegedUserName": "Administrator"
        }
      }
    }
  },
  "staging": {
    "isEnabled": true,
    "ContentfulConnector": { 
    	"namespaces": {
         "contentful": {
         }
    }
  }
}