Contentful GraphQL API

Contentful is an API First CMS to build Digital products. It offers a GraphQL API which can be joined with Hasura using Remote Schema.

Adding Contentful as Remote Schema

  • Get the GraphQL Content API Endpoint in the following format:<space-id>

And replace <space-id> with the appropriate value.

  • In Contentful dashboard, click on Settings. Under Space Settings click on API keys. Copy the Space ID and paste in the above endpoint.
  • Now copy Content Delivery API - access token and use it in Authorization headers like below:
Authorization: Bearer <access_token>
  • In Hasura Console, head to Remote Schemas and enter GraphQL Server URL with the above contentful endpoint. Under Additional Headers, enter the Authorization header with the access_token as mentioned above.

Video demo

Released: June 10, 2021
Developed by: Contentful
Category: CMS