Skip to content
Optimizly
Live

Publish to Contentful

Entries of your content type as Markdown, HTML or Rich Text, with a linked image asset.

Connects via
Contentful Content Management API
Lands as
Entries of a content type (default blogPost)
Tested
Automated API tests

What syncs

What Optimizly writes

  • All mapped fields via a configurable field map
  • Body as Markdown, HTML or Contentful Rich Text
  • Featured image created, published and linked as asset
  • Publish, unpublish and delete

Limitations

Good to know

  • Items that are not yet published in Optimizly, or targets with publishing switched off, are saved as drafts.
  • The mapped image field must be a Media field.

Setup

Connect Contentful

  1. Generate a personal CMA token (Settings → CMA tokens). The user needs a role that may create, edit, publish, unpublish and delete entries and assets.
  2. Note the space ID, environment (usually master), content type API identifier and locale.
  3. In Optimizly add a Contentful target with those values.
  4. Optional: adjust the field map (logical field → your CMS field; dotted paths write into components such as seo.metaTitle, an empty value skips a field) and a URL pattern such as https://example.com/blog/{slug}.
  5. In Optimizly: Publishing → Add target → choose the platform, paste the credentials and click Test connection. Credentials are stored encrypted.

Headless CMS

All integrations

Publish your next article to Contentful.

Start a free trial, add your site as publishing target and test the connection.