LaunchDarkly é uma plataforma de feature management que permite às equipes implantar, controlar e medir seus recursos de software em escala com segurança.
Com a integração do LaunchDarkly no Zoen, você pode:
- Gerenciamento de feature flags — Liste, crie, atualize, alterne e exclua feature flags de forma programática. Ative ou desative flags em ambientes específicos usando a semantic patch API do LaunchDarkly.
- Monitoramento de status das flags — Verifique se uma flag está ativa, inativa, nova ou launched em um determinado ambiente. Acompanhe a última vez que uma flag foi avaliada.
- Gerenciamento de projetos e ambientes — Liste todos os projetos e seus ambientes para entender a estrutura da sua organização no LaunchDarkly.
- Segmentos de usuários — Liste segmentos de usuários em um projeto e ambiente para entender como seu público está organizado para targeting.
- Visibilidade da equipe — Liste membros da conta e seus papéis para fluxos de auditoria e gerenciamento de acesso.
- Audit log — Recupere entradas recentes do audit log para rastrear quem alterou o quê e quando. Filtre entradas por tipo de recurso para monitoramento direcionado.
No Zoen, a integração do LaunchDarkly permite que seus agentes automatizem operações de feature flags como parte dos seus fluxos de trabalho. Isso habilita cenários como alternar flags com base em eventos do pipeline de deploy, monitorar o status das flags e alertar sobre flags obsoletas ou não utilizadas, auditar alterações consultando o audit log após deploys, sincronizar metadados de flags com suas ferramentas de gerenciamento de projetos e listar todas as feature flags entre projetos para governança.
Esta integração usa uma API key do LaunchDarkly. Você pode criar personal access tokens ou service tokens no dashboard do LaunchDarkly em Account Settings > Authorization. A API key é enviada diretamente no header Authorization (sem o prefixo Bearer).
Se você encontrar problemas com a integração do LaunchDarkly, entre em contato em help@zoen.space
Integrate LaunchDarkly into your workflow. List, create, update, toggle, and delete feature flags. Manage projects, environments, segments, members, and audit logs. Requires API Key.
Create a new feature flag in a LaunchDarkly project.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LaunchDarkly API key |
projectKey | string | Yes | The project key to create the flag in |
name | string | Yes | Human-readable name for the feature flag |
key | string | Yes | Unique key for the feature flag (used in code) |
description | string | No | Description of the feature flag |
tags | string | No | Comma-separated list of tags |
temporary | boolean | No | Whether the flag is temporary (default true) |
| Parameter | Type | Description |
|---|
key | string | The unique key of the feature flag |
name | string | The human-readable name of the feature flag |
kind | string | The type of flag (boolean or multivariate) |
description | string | Description of the feature flag |
temporary | boolean | Whether the flag is temporary |
archived | boolean | Whether the flag is archived |
deprecated | boolean | Whether the flag is deprecated |
creationDate | number | Unix timestamp in milliseconds when the flag was created |
tags | array | Tags applied to the flag |
variations | array | The variations for this feature flag |
↳ value | string | The variation value (any JSON type, shown as text) |
↳ name | string | The variation name |
↳ description | string | The variation description |
maintainerId | string | The ID of the member who maintains this flag |
maintainerEmail | string | The email of the member who maintains this flag |
Delete a feature flag from a LaunchDarkly project.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LaunchDarkly API key |
projectKey | string | Yes | The project key |
flagKey | string | Yes | The feature flag key to delete |
| Parameter | Type | Description |
|---|
deleted | boolean | Whether the flag was successfully deleted |
List audit log entries from your LaunchDarkly account.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LaunchDarkly API key |
limit | number | No | Maximum number of entries to return (default 10, max 20) |
spec | string | No | Resource specifier filter (e.g. "proj/:env/:flag/*" for all flag changes, or "proj/default:env/production:flag/my-flag" for one flag in one environment) |
| Parameter | Type | Description |
|---|
entries | array | List of audit log entries |
↳ id | string | The audit log entry ID |
↳ date | number | Unix timestamp in milliseconds |
↳ kind | string | The type of action performed |
↳ name | string | The name of the resource acted on |
↳ description | string | Full description of the action |
↳ shortDescription | string | Short description of the action |
↳ memberEmail | string | Email of the member who performed the action |
↳ targetName | string | Name of the target resource |
↳ targetKind | string | Resource specifier of the target (e.g. proj/default:env/production:flag/my-flag) |
totalCount | number | Total number of audit log entries |
Get a single feature flag by key from a LaunchDarkly project.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LaunchDarkly API key |
projectKey | string | Yes | The project key |
flagKey | string | Yes | The feature flag key |
environmentKey | string | No | Filter flag configuration to a specific environment |
| Parameter | Type | Description |
|---|
key | string | The unique key of the feature flag |
name | string | The human-readable name of the feature flag |
kind | string | The type of flag (boolean or multivariate) |
description | string | Description of the feature flag |
temporary | boolean | Whether the flag is temporary |
archived | boolean | Whether the flag is archived |
deprecated | boolean | Whether the flag is deprecated |
creationDate | number | Unix timestamp in milliseconds when the flag was created |
tags | array | Tags applied to the flag |
variations | array | The variations for this feature flag |
↳ value | string | The variation value (any JSON type, shown as text) |
↳ name | string | The variation name |
↳ description | string | The variation description |
maintainerId | string | The ID of the member who maintains this flag |
maintainerEmail | string | The email of the member who maintains this flag |
on | boolean | Whether the flag is on in the requested environment (null when the flag spans multiple environments and no environment key was provided) |
Get the status of a feature flag across environments (active, inactive, launched, etc.).
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LaunchDarkly API key |
projectKey | string | Yes | The project key |
flagKey | string | Yes | The feature flag key |
environmentKey | string | Yes | The environment key |
| Parameter | Type | Description |
|---|
name | string | The flag status (new, active, inactive, launched) |
lastRequested | string | Timestamp of the last evaluation |
defaultVal | string | The default variation value |
List environments in a LaunchDarkly project.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LaunchDarkly API key |
projectKey | string | Yes | The project key to list environments for |
limit | number | No | Maximum number of environments to return (default 20) |
| Parameter | Type | Description |
|---|
environments | array | List of environments |
↳ id | string | The environment ID |
↳ key | string | The unique environment key |
↳ name | string | The environment name |
↳ color | string | The color assigned to this environment |
↳ apiKey | string | The server-side SDK key for this environment |
↳ mobileKey | string | The mobile SDK key for this environment |
↳ tags | array | Tags applied to the environment |
totalCount | number | Total number of environments |
List feature flags in a LaunchDarkly project.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LaunchDarkly API key |
projectKey | string | Yes | The project key to list flags for |
environmentKey | string | No | Filter flag configurations to a specific environment |
tag | string | No | Filter flags by tag name |
limit | number | No | Maximum number of flags to return (default 20) |
| Parameter | Type | Description |
|---|
flags | array | List of feature flags |
↳ key | string | The unique key of the feature flag |
↳ name | string | The human-readable name of the feature flag |
↳ kind | string | The type of flag (boolean or multivariate) |
↳ description | string | Description of the feature flag |
↳ temporary | boolean | Whether the flag is temporary |
↳ archived | boolean | Whether the flag is archived |
↳ deprecated | boolean | Whether the flag is deprecated |
↳ creationDate | number | Unix timestamp in milliseconds when the flag was created |
↳ tags | array | Tags applied to the flag |
↳ variations | array | The variations for this feature flag |
↳ value | string | The variation value (any JSON type, shown as text) |
↳ name | string | The variation name |
↳ description | string | The variation description |
↳ maintainerId | string | The ID of the member who maintains this flag |
↳ maintainerEmail | string | The email of the member who maintains this flag |
totalCount | number | Total number of flags |
List account members in your LaunchDarkly organization.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LaunchDarkly API key |
limit | number | No | Maximum number of members to return (default 20) |
| Parameter | Type | Description |
|---|
members | array | List of account members |
↳ id | string | The member ID |
↳ email | string | The member email address |
↳ firstName | string | The member first name |
↳ lastName | string | The member last name |
↳ role | string | The member role (reader, writer, admin, owner) |
↳ lastSeen | number | Unix timestamp of last activity |
↳ creationDate | number | Unix timestamp when the member was created |
↳ verified | boolean | Whether the member email is verified |
totalCount | number | Total number of members |
List all projects in your LaunchDarkly account.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LaunchDarkly API key |
limit | number | No | Maximum number of projects to return (default 20) |
| Parameter | Type | Description |
|---|
projects | array | List of projects |
↳ id | string | The project ID |
↳ key | string | The unique project key |
↳ name | string | The project name |
↳ tags | array | Tags applied to the project |
totalCount | number | Total number of projects |
List user segments in a LaunchDarkly project and environment.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LaunchDarkly API key |
projectKey | string | Yes | The project key |
environmentKey | string | Yes | The environment key |
limit | number | No | Maximum number of segments to return (default 20) |
| Parameter | Type | Description |
|---|
segments | array | List of user segments |
↳ key | string | The unique segment key |
↳ name | string | The segment name |
↳ description | string | The segment description |
↳ tags | array | Tags applied to the segment |
↳ creationDate | number | Unix timestamp in milliseconds when the segment was created |
↳ unbounded | boolean | Whether this is an unbounded (big) segment |
↳ included | array | User keys explicitly included in the segment |
↳ excluded | array | User keys explicitly excluded from the segment |
totalCount | number | Total number of segments |
Toggle a feature flag on or off in a specific LaunchDarkly environment.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LaunchDarkly API key |
projectKey | string | Yes | The project key |
flagKey | string | Yes | The feature flag key to toggle |
environmentKey | string | Yes | The environment key to toggle the flag in |
enabled | boolean | Yes | Whether to turn the flag on (true) or off (false) |
| Parameter | Type | Description |
|---|
key | string | The unique key of the feature flag |
name | string | The human-readable name of the feature flag |
kind | string | The type of flag (boolean or multivariate) |
description | string | Description of the feature flag |
temporary | boolean | Whether the flag is temporary |
archived | boolean | Whether the flag is archived |
deprecated | boolean | Whether the flag is deprecated |
creationDate | number | Unix timestamp in milliseconds when the flag was created |
tags | array | Tags applied to the flag |
variations | array | The variations for this feature flag |
↳ value | string | The variation value (any JSON type, shown as text) |
↳ name | string | The variation name |
↳ description | string | The variation description |
maintainerId | string | The ID of the member who maintains this flag |
maintainerEmail | string | The email of the member who maintains this flag |
on | boolean | Whether the flag is now on in the target environment |
Update feature flag metadata (name, description, tags, temporary, archived) using semantic patch.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LaunchDarkly API key |
projectKey | string | Yes | The project key |
flagKey | string | Yes | The feature flag key to update |
updateName | string | No | New name for the flag |
updateDescription | string | No | New description for the flag |
addTags | string | No | Comma-separated tags to add |
removeTags | string | No | Comma-separated tags to remove |
archive | boolean | No | Set to true to archive, false to restore |
comment | string | No | Optional comment explaining the update |
| Parameter | Type | Description |
|---|
key | string | The unique key of the feature flag |
name | string | The human-readable name of the feature flag |
kind | string | The type of flag (boolean or multivariate) |
description | string | Description of the feature flag |
temporary | boolean | Whether the flag is temporary |
archived | boolean | Whether the flag is archived |
deprecated | boolean | Whether the flag is deprecated |
creationDate | number | Unix timestamp in milliseconds when the flag was created |
tags | array | Tags applied to the flag |
variations | array | The variations for this feature flag |
↳ value | string | The variation value (any JSON type, shown as text) |
↳ name | string | The variation name |
↳ description | string | The variation description |
maintainerId | string | The ID of the member who maintains this flag |
maintainerEmail | string | The email of the member who maintains this flag |