Connect your Contentful space to Wrodium for enterprise-grade content optimization.
Created date:
Dec 5, 2025
Updated date:
Dec 11, 2025
Prerequisites
Contentful account with a Space
Content Management API (CMA) access
A Content Type for your articles/posts
Organization Admin or Space Admin permissions
Setup Steps
Step 1: Generate a Management Token
Go to Settings → API Keys in your Contentful space
Click the Content management tokens tab
Click Generate personal token
Give it a name (e.g., "Wrodium Integration")
Copy the token immediately
Important: Management tokens have full read/write access. Store securely.
Step 2: Find Your Space and Environment IDs
Space ID:
In Contentful, go to Settings → General Settings
Copy the Space ID
Environment ID:
Usually
master(default)For other environments, check Settings → Environments
Step 3: Identify Your Content Type
Go to Content Model in Contentful
Click on your article/post content type
Note the Content Type ID (shown in the URL or sidebar)
Note the Field IDs for:
Title (e.g.,
title)Body/content (e.g.,
body)Excerpt (e.g.,
excerpt)Slug (e.g.,
slug)
Step 4: Configure Wrodium
Go to Settings → CMS Connection in Wrodium
Select Contentful as your provider
Enter your configuration:
Field | Value |
|---|---|
Management Token | Your CMA token |
Space ID | Your space ID |
Environment ID |
|
Content Type ID | Your content type (e.g., |
Locale |
|
Title Field | Field ID for title |
Content Field | Field ID for body |
Excerpt Field | Field ID for excerpt |
Slug Field | Field ID for URL slug |
Site Base URL |
|
Click Test Connection then Save
Configuration Schema
API Behavior
Listing Articles
Wrodium queries entries via the Content Management API:
Updating Articles
Updates use optimistic locking with the X-Contentful-Version header:
Fetch current entry to get the version number
PUT updated entry with the version header
Publishing After Update
By default, Wrodium updates draft content. To auto-publish, enable the "Publish after update" option or call the publish endpoint separately:
Localization
Contentful requires locale-aware field access:
Wrodium uses the locale from your configuration for all reads and writes.
Rich Text Fields
If your content field uses Contentful's Rich Text type, the update payload changes:
For Rich Text fields, Wrodium automatically converts HTML to Contentful's Rich Text format.
Troubleshooting
"401 Unauthorized" Error
Management tokens don't expire, but they can be revoked
Verify you're using a CMA token (starts with
CFPAT-), not a CDA token
"409 Conflict" Error (Version Mismatch)
Another user or process updated the entry
Wrodium will automatically retry with the new version
"422 Validation Failed" Error
Check that all required fields are included
Verify field values match their expected types
Ensure the locale is valid for your space
Content Not Appearing on Site
Entry may be saved but not published
Enable "Publish after update" in Wrodium settings
Check Contentful's publish queue
Code Example
Webhooks (Optional)
Set up Contentful webhooks to notify Wrodium when content changes:
Go to Settings → Webhooks in Contentful
Add a webhook pointing to:
Select events:
Entry.publish,Entry.unpublish




