list_flags
List flags.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectIdOrName | string | Yes | The project id or name |
state | string | No | The state of the flags to retrieve. Defaults to active. Allowed values: "active", "archived". |
withMetadata | boolean | No | Deprecated. Whether to include creator metadata in each flag in the response. Resolve creator identity client-side (e.g. via the team members endpoint) instead. This parameter will be removed in a future release. Use GET /v1/projects/:id/feature-flags/flags/:flagIdOrSlug?withMetadata=true for single-flag lookups that need creator metadata. |
limit | integer | No | Maximum number of flags to return. When not set, all flags are returned. Minimum: 1. Maximum: 100. |
cursor | string | No | Pagination cursor to continue from. |
search | string | No | Search flags by their slug or description. Case-insensitive. |
tags | Array<string> | No | Filter flags by tag. Repeat the parameter for multiple tags (all must match). |
teamId | string | No | Team ID to use for this operation. |
slug | string | No | Team slug to use for this operation. Use instead of teamId. |
Was this helpful?