Skip to main content

Get all addons and providers

GET 

<your-unleash-url>/api/admin/addons

Retrieve all addons and providers that are defined on this Unleash instance.

Responses

addonsSchema

Schema
    addons object[]required

    All the addons that exist on this instance of Unleash.

  • Array [
  • idintegerrequired

    The addon's unique identifier.

    Possible values: >= 1

    Example: 27
    providerstringrequired

    The addon provider, such as "webhook" or "slack".

    Example: webhook
    descriptionstringnullablerequired

    A description of the addon. null if no description exists.

    Example: This addon posts updates to our internal feature tracking system whenever a feature is created or updated.
    enabledbooleanrequired

    Whether the addon is enabled or not.

    parameters objectrequired

    Parameters for the addon provider. This object has different required and optional properties depending on the provider you choose.

    property name*any

    Parameters for the addon provider. This object has different required and optional properties depending on the provider you choose.

    Example: {"url":"http://localhost:4242/webhook"}
    eventsstring[]required

    The event types that trigger this specific addon.

    Example: ["feature-created","feature-updated"]
    projectsstring[]

    The projects that this addon listens to events from. An empty list means it listens to events from all projects.

    Example: ["new-landing-project","signups-v2"]
    environmentsstring[]

    The list of environments that this addon listens to events from. An empty list means it listens to events from all environments.

    Example: ["development","production"]
  • ]
  • providers object[]required

    A list of all available addon providers, along with their parameters and descriptions.

  • Array [
  • namestringrequired

    The name of the addon type. When creating new addons, this goes in the payload's type field.

    Example: slack
    displayNamestringrequired

    The addon type's name as it should be displayed in the admin UI.

    Example: Slack
    documentationUrlstringrequired

    A URL to where you can find more information about using this addon type.

    Example: https://docs.getunleash.io/docs/addons/slack
    descriptionstringrequired

    A description of the addon type.

    Example: Allows Unleash to post updates to Slack.
    howTostring

    A long description of how to use this addon type. This will be displayed on the top of configuration page. Can contain markdown.

    Example: This is **how you use** this addon type... - Step 1 - Step 2 - Step 3
    tagTypes object[]

    A list of Unleash tag types that this addon uses. These tags will be added to the Unleash instance when an addon of this type is created.

  • Array [
  • namestringrequired

    The name of the tag type.

    Example: color
    descriptionstring

    The description of the tag type.

    Example: A tag type for describing the color of a tag.
    iconstringnullable

    The icon of the tag type.

    Example: not-really-used
    colorstringnullable

    The hexadecimal color code for the tag type.

    Possible values: Value must match regular expression ^#[0-9A-Fa-f]{6}$

    Example: #FFFFFF
  • ]
  • parameters object[]

    The addon provider's parameters. Use these to configure an addon of this provider type. Items with required: true must be provided.

  • Array [
  • namestringrequired

    The name of the parameter as it is used in code. References to this parameter should use this value.

    Example: emojiIcon
    displayNamestringrequired

    The name of the parameter as it is shown to the end user in the Admin UI.

    Example: Emoji Icon
    typestringrequired

    The type of the parameter. Corresponds roughly to HTML input field types. Multi-line inut fields are indicated as textfield (equivalent to the HTML textarea tag).

    Example: text
    descriptionstring

    A description of the parameter. This should explain to the end user what the parameter is used for.

    Example: The emoji_icon to use when posting messages to slack. Defaults to ":unleash:".
    placeholderstring

    The default value for this parameter. This value is used if no other value is provided.

    Example: :unleash:
    requiredbooleanrequired

    Whether this parameter is required or not. If a parameter is required, you must give it a value when you create the addon. If it is not required it can be left out. It may receive a default value in those cases.

    Example: false
    sensitivebooleanrequired

    Indicates whether this parameter is sensitive or not. Unleash will not return sensitive parameters to API requests. It will instead use a number of asterisks to indicate that a value is set, e.g. "******". The number of asterisks does not correlate to the parameter's value.

    Example: false
  • ]
  • eventsstring[]

    All the event types that are available for this addon provider.

    Example: ["feature-created","feature-updated","feature-archived","feature-revived","feature-stale-on","feature-stale-off","feature-environment-enabled","feature-environment-disabled","feature-strategy-remove","feature-strategy-update","feature-strategy-add","feature-metadata-updated","feature-variants-updated","feature-project-change"]
    installation object

    The installation configuration for this addon type.

    urlstringrequired

    A URL to where the addon configuration should redirect to install addons of this type.

    Example: https://unleash-slack-app.vercel.app/install
    titlestring

    The title of the installation configuration. This will be displayed to the user when installing addons of this type.

    Example: Slack App installation
    helpTextstring

    The help text of the installation configuration. This will be displayed to the user when installing addons of this type.

    Example: Clicking the Install button will send you to Slack to initiate the installation procedure for the Unleash Slack app for your workspace
    alerts object[]

    A list of alerts to display to the user when installing addons of this type.

  • Array [
  • typestringrequired

    The type of alert. This determines the color of the alert.

    Possible values: [success, info, warning, error]

    Example: info
    textstringrequired

    The text of the alert. This is what will be displayed to the user.

    Example: Please ensure you have the Unleash Slack App installed in your Slack workspace if you haven't installed it already. If you want the Unleash Slack App bot to post messages to private channels, you'll need to invite it to those channels.
  • ]
  • deprecatedstring

    This should be used to inform the user that this addon type is deprecated and should not be used. Deprecated addons will show a badge with this information on the UI.

    Example: This integration is deprecated. Please try the new integration instead.
  • ]

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L '<your-unleash-url>/api/admin/addons' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>'
Request Collapse all
Base URL
<your-unleash-url>
Auth
ResponseClear

Click the Send API Request button above and see the response here!