Headless
Discover how to integrate Umbraco.Engage.Headless package with Umbraco 12.0+ for a Content Delivery API.
Umbraco Engage offers the Umbraco.Engage.Headless package for seamless integration with Umbraco 12.0 and later. This package enables access to the Headless Content Delivery API, enabling personalized content, A/B tests, and segmentation.
Requirements
To install Umbraco.Engage.Headless, ensure the following prerequisites:
Umbraco v13 is required to integrate with the Content Delivery API.
Enable the Umbraco Content Delivery API by adding the following configuration setting in the
appsettings.jsonfile:
{
"Umbraco": {
"CMS": {
"DeliveryApi": {
"Enabled": true
}
}
}
}Installing the Umbraco Engage Headless API
To install the Umbraco Engage Headless API, follow these steps:
Install the
Umbraco.Engage.Headlesspackage:
Using an IDE: Install the
Umbraco.Engage.Headlesspackage from NuGet in Visual Studio or JetBrains Rider.Using the command line:
Navigate to your Umbraco website root folder in your terminal.
Run the following command:
dotnet add package Umbraco.Engage.HeadlessUpdating Program.cs
To update the Program.cs file, follow these steps:
Open your
Program.csfile.Add the line
.AddEngageApiDocumentation()after.AddDeliveryApi(). YourCreateUmbracoBuildermethod should look like this:
builder.CreateUmbracoBuilder()
.AddBackOffice()
.AddWebsite()
.AddDeliveryApi()
.AddEngageApiDocumentation()
.AddComposers()
.Build();
Rebuild and run your site.
Navigate to /umbraco/swagger in your browser.
Check for the Umbraco Engage API from the top right definition dropdown.

Last updated
Was this helpful?