Contentful

Authentication methods

CMA Token

To generate a token:

  1. Log in to Contentful, access "CMA tokens" from the Settings menu:

  2. Give the token any name

  3. Set the Expiration date - consider choosing "No expiration" to ensure syncs are not disrupted

Inbound Syncs

The following streams are supported, with Full Refresh and Incremental strategies:

Outbound Syncs

There is currently no outbound sync functionality for Contentful. If you have a use case, please let us know!

Functions

FETCH_ORGANIZATIONS

Fetches a list of Contentful organizations.

Parameters:

  • CONNECTION_SLUG (VARCHAR): The slug of the connection to query

Examples:

select *
from table(OMNATA_CONTENTFUL_PLUGIN.UDFS.FETCH_ORGANIZATIONS(
                'my-contentful-connection'
));

FETCH_SPACES

Fetches a list of Contentful spaces

Parameters

  • CONNECTION_SLUG (VARCHAR): The slug of the connection to query

  • ORGANISATION_ID: If using the Content Management API, an organization filter to use

Examples:

select *
from table(OMNATA_CONTENTFUL_PLUGIN.UDFS.FETCH_ASSETS(
                'my-contentful-connection',
                '2ZpZ4abFMgULJGHyVFpKU8'
));

FETCH_ASSETS

Fetches Contentful assets

Parameters

  • CONNECTION_SLUG (VARCHAR): The slug of the connection to query

  • ORGANISATION_ID: If using the Content Management API, an organization filter to use

  • ENVIRONMENT_ID: The environment ID

  • SPACE_ID: The space ID

Last updated