For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sign inTry it free
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
  • Integrations
    • Collaboration tools
    • Data Export
    • Edge tools
    • Environments as a service
    • Experimentation and metric integrations
    • Internal developer platforms
    • Monitoring tools
    • Segments integrations
    • Workflow management tools
    • More integrations
    • Managing integrations
    • Using the LaunchDarkly integration framework
    • Building partner integrations
      • Getting started
      • Defining an integration manifest
      • Registering a LaunchDarkly OAuth client
      • Using form variables
      • Using integration framework capabilities
        • Approvals capability
        • Change history events hook capability
        • Endpoints capability
        • Feature stores capability
        • Flag links capability
        • Reserved custom properties capability
        • Synced segments capability
        • Triggers capability
      • Validating an integration
Sign inTry it free
LogoLogo
On this page
  • Overview
  • About triggers
IntegrationsBuilding partner integrationsUsing integration framework capabilities

Triggers capability

Was this page helpful?
Previous

Validating an integration

Next
Built with

Overview

This topic explains how to use the triggers integration framework capability.

About triggers

Flag triggers are available to customers on select plans

Flag triggers are only available to customers on select plans. To learn more, read about our pricing. To upgrade your plan, contact Sales.

Flag triggers let you turn flags on or off remotely from a third-party application. To learn more about the feature, read Flag triggers.

You can use the trigger capability to generate a unique webhook URL that your service can request to generate a user-defined flag change in LaunchDarkly. By default, the trigger URL contains a globally unique path parameter to provide security in the form of an unguessable URL. To learn more, read Google’s Unguessable URLs.

The required documentation field must be a link to documentation outlining how webhooks should be configured in your service.

If the integration offers the option to send test events or webhook requests, the optional testEventNameRegexp field lets you to specify regex to match the expected eventName value. This tells the integration framework not to make any real flag or resource changes associated with matching events.

If your webhooks’ request bodies are non-empty, you can specify the optional parser object with one or more of eventName, value, and url. The provided values will flow through LaunchDarkly into the resulting change history messages when your service invokes a trigger in LaunchDarkly.

Here is an example trigger capability:

Trigger capability
1 "trigger": {
2 "documentation": "https://example.com/configuring-webhooks",
3 "parser": {
4 "eventName": "/event",
5 "value": "/value",
6 "url": "/links/self/href"
7 },
8 }

If an integration only has the trigger capability, the word “trigger” will be added to its name in the LaunchDarkly user interface (UI). For this reason, do not include the word “trigger” in the manifest name. For an example, read the generic-trigger manifest.