provider Integration audit log subscriptions POST /api/v2/integrations/{integrationKey}
@utdk/launchdarkly /api/v2/integrations/{integrationKey}
Create audit log subscription
Create an audit log subscription.<br /><br />For each subscription, you must specify the set of resources you wish to subscribe to audit log notifications for. You can describe these resources using a custom role policy. To learn more, read [Custom role concepts](https://launchdarkly.com/docs/home/account/role-concepts).
integrationKey path required
The integration key
string

Try it

Authentication
Configure credentials for LaunchDarkly REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

createsubscription
POST/api/v2/integrations/{integrationKey}
Create an audit log subscription.<br /><br />For each subscription, you must specify the set of resources you wish to subscribe to audit log notifications for. You can describe these resources using a custom role policy. To learn more, read [Custom role concepts](https://launchdarkly.com/docs/home/account/role-concepts).

Parameters

required

The integration key

Input

required

A human-friendly name for your audit log subscription.

Whether or not you want your subscription to actively send events.

An array of tags for this subscription.

required

The unique set of fields required to configure an audit log subscription integration of this type. Refer to the <code>formVariables</code> field in the corresponding <code>manifest.json</code> at https://github.com/launchdarkly/integration-framework/tree/main/integrations for a full list of fields for the integration you wish to configure.

Slack webhook receiver URL. Only necessary for legacy Slack webhook integrations.

Datadog API key. Only necessary for legacy Datadog webhook integrations.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import launchdarkly from '@utdk/launchdarkly';

await launchdarkly.createsubscription()