Functions

Overview

Functions are backend serverless workloads 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.

Types of Functions to extend Contentful:

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

NOTE: App Event functions are in beta. Sign up for early access here.

These functions provide apps an easy way to expose generic capabilities to their own frontends as well as to other apps.

NOTE: App Action functions are in beta. Sign up for early access here.

  • Functions on delivery (GraphQL)

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

Use Cases

  • App Event 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

Availability

App Event functions

Custom backend logic and integrations

AppEvents / App Framework

Beta

App Action functions

Custom backend logic and integrations

AppActions / App Framework

Beta

Functions on delivery

Dynamic content integrations

GraphQL delivery path

General availability

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