Overview
The Contentful connector integrates with Contentful’s Content Management API to publish articles directly to your Contentful space. It supports:- Publishing to any content type
- Rich Text content formatting
- Asset management and linking
- Entry references for taxonomies
- Scheduled publishing
Prerequisites
Before connecting, ensure you have:- Contentful space with a content type for articles
- Content Management API token with write permissions
- Space ID from your Contentful dashboard
- Environment ID (usually
master)
Setup Guide
Step 1: Get Your Space ID
- Go to your Contentful dashboard
- Navigate to Settings → General settings
- Copy the Space ID
Step 2: Create a Content Management Token
- Go to Settings → API keys
- Click Content management tokens tab
- Click Generate personal token
- Give it a descriptive name (e.g., “Skayle Integration”)
- Copy the generated token
Step 3: Create Your Content Type
Create a content type for blog posts with these fields:| Field Name | Field Type | Field ID | Notes |
|---|---|---|---|
| Title | Short text | title | Required |
| Slug | Short text | slug | Unique |
| Excerpt | Short text | excerpt | Summary |
| Body | Rich Text | body | Main content |
| Featured Image | Media | featuredImage | Single asset |
| Publish Date | Date | publishDate | Publication date |
| Categories | References | categories | Many references |
| Tags | References | tags | Many references |
| Author | Reference | author | Single reference |
Step 4: Configure in Skayle
- Go to Settings → Connectors in Skayle
- Select Contentful as your connector type
- Enter your configuration:
- Click Test Connection to verify
Content Formatting
Skayle converts BlockNote JSON to Contentful Rich Text format.Rich Text Structure
Contentful uses a structured JSON format for rich text:Supported Node Types
| BlockNote Type | Contentful Node Type |
|---|---|
| Paragraph | paragraph |
| Heading 1-6 | heading-1 - heading-6 |
| Bullet List | unordered-list |
| Numbered List | ordered-list |
| List Item | list-item |
| Blockquote | blockquote |
| Code Block | paragraph with code mark |
| Horizontal Rule | hr |
| Image | embedded-asset-block |
| Link | hyperlink |
Text Marks
| BlockNote Mark | Contentful Mark |
|---|---|
| Bold | bold |
| Italic | italic |
| Underline | underline |
| Code | code |
Contentful Rich Text has specific validation rules. Skayle automatically ensures content meets these requirements.
Asset Management
Uploading Images
Contentful requires assets to be uploaded before they can be referenced:- Upload the asset file
- Create an asset entry
- Process the asset
- Publish the asset
- Reference in content
Asset Structure
Taxonomy Mapping
Entry References
Contentful uses entry references for relationships:- Single Reference
- Multiple References
For author (one-to-one):
Taxonomy Content Types
Create separate content types for taxonomies: Category Content Type:| Field | Type | ID |
|---|---|---|
| Name | Short text | name |
| Slug | Short text | slug |
| Description | Long text | description |
| Field | Type | ID |
|---|---|---|
| Name | Short text | name |
| Slug | Short text | slug |
| Field | Type | ID |
|---|---|---|
| Name | Short text | name |
| Slug | Short text | slug |
| Bio | Long text | bio |
| Avatar | Media | avatar |
Publishing Workflow
Entry States
Contentful entries have multiple states:- Draft: Entry exists but isn’t published
- Changed: Published entry with unpublished changes
- Published: Entry is live
- Archived: Entry is archived
Publishing Process
- Create as draft only
- Auto-publish immediately
- Schedule for future publication
Contentful supports scheduled publishing natively. Skayle can set the
publishedAt field for future dates.Localization
Contentful supports multiple locales. Configure your default locale:Troubleshooting
Connection Issues
401 Unauthorized
401 Unauthorized
404 Not Found
404 Not Found
- Verify Space ID is correct
- Check Environment ID exists
- Ensure content type ID is correct
422 Validation Error
422 Validation Error
- Check required fields are provided
- Verify field types match
- Ensure references point to valid entries
Content Issues
Rich Text validation failed
Rich Text validation failed
- Check for unsupported node types
- Verify embedded assets exist
- Ensure proper nesting of elements
Asset processing failed
Asset processing failed
- Verify image URL is accessible
- Check file format is supported
- Ensure file size is within limits
Reference not found
Reference not found
- Ensure taxonomy entries exist
- Run taxonomy sync first
- Verify content type IDs match
API Rate Limits
Contentful enforces API rate limits:| API | Requests/Second |
|---|---|
| Content Management | 10 |
| Content Delivery | 78 |
| Asset Upload | 10 |
Best Practices
- Use environments: Test in a non-master environment first
- Validate content types: Ensure field IDs match exactly
- Sync taxonomies first: Create category/tag entries before articles
- Monitor webhooks: Set up webhooks for sync notifications
- Use content models: Design your content model before integration