Contentful API

Contentful is a content provider that's integrated with Frontastic.

The backend part of the integration is within our API documentation in GitHub. To see any updates to this library, check out our Libraries changelog.

We're using version 4.1 of the Contentful API.

project.yml configuration

To access the APIs for Contentful, you'll need the below configuration added to your project.yml (see the project.yml article for more information):

configuration:
    contentful:
        spaceId: # this is your unique Contentful space ID
        accessToken: # this is your unique Contentful access token
        previewToken: # this is your unique Contentful preview token
    content:
        engine: contentful

Available methods

See the ContentAPI docs for arguments, types, and other information.

ContentAPI methods

Available?

getContentTypes

yes

getContent

yes

query (by query string)

yes

query (by contentType)

yes

query (by contentIds)

yes

query (by attributes)

yes

Known limitations

None.


Did this page help you?