Functions

Overview

Functions are backend serverless functions that run on Contentful’s infrastructure and are enabled through the App Framework.

Functions allow you to run custom code on the Contentful platform, augmenting parts of the GraphQL and Content Management API. This unlocks limitless possibilities to adapt Contentful to your business needs.

NOTE: Functions are only available for Premium plans and Partners.

Two types of Functions to extend Contentful:

AppEvent Functions

These functions allow custom backend logic to be executed within the App Framework, ideal for various integrations and custom workflows.

Functions on Delivery (GraphQL)

Specifically designed to run in the path of GraphQL delivery requests, enabling dynamic content manipulations and real-time data integrations.

Use Cases

  • AppEvent Functions

    • Integration with third-party services, complex workflow automation.

  • Functions on Delivery (GraphQL)

    • Real-time Data Integrations with:

      • Product Catalogs, E-commerce systems, Translation systems, Legacy CMS systems, Digital Asset Management platforms

      • Any other API

    • Content Enrichment: Enhance your content with additional information, metadata, or related data fetched from external sources to provide richer context.

    • Inline External Media: Include images from third-party systems inline to reduce network requests.

    • Dynamic Routing: Route your content requests to different sources or destinations based on conditions, enabling dynamic content delivery logic.

At a glance

Feature

Purpose

Execution context

Typical Use Cases

AppEvent Functions

Custom backend logic and integrations

AppEvents / App Framework

Workflow automation, service integration

Functions on Delivery

Dynamic content integrations

GraphQL delivery path

Real-time data integration, content updates

For more information and to get started, see our Developer Documentation for Functions.
View our Example Apps on GitHub.


Feedback

To share your feedback, fill in this form.

Next steps