GET /api/projects/:id/feature_flags
Returns a paginated list of all feature flags in a project. Supports filtering by various criteria including active status, creation, tags, and evaluation runtime.Path Parameters
integer
required
Project ID
Query Parameters
string
Filter by active status:
true, false, or STALEstring
Filter by user ID who created the flag
string
Search by feature flag key or name (case insensitive)
string
Filter by flag type:
boolean, multivariant, or experimentstring
Filter by evaluation runtime:
server, client, or bothstring
JSON-encoded array of tag names to filter by
string
Filter by presence of evaluation context tags:
true or falsestring
JSON-encoded array of flag keys to exclude from results
string
Field to order by (prefix with
- for descending). Default: -created_atinteger
default:"100"
Number of results per page
integer
default:"0"
Pagination offset
Response
integer
Total number of feature flags matching the filters
string | null
URL for the next page of results
string | null
URL for the previous page of results
array
Array of feature flag objects
integer
Feature flag ID
string
Unique flag identifier
string
Flag description
object
Release conditions and configuration
boolean
Whether the flag is currently active
boolean
Whether the flag is soft-deleted
string
ISO 8601 timestamp
object
User who created the flag
array
Associated tag names
array
Evaluation context tag names
integer
Version number for optimistic locking
boolean
Whether the current user can edit this flag
array
Associated experiments
array
Associated surveys
array
Associated early access features
Examples
List All Flags
Filter Active Flags
Search by Key or Name
Filter by Type and Tags
Filter by Evaluation Runtime
Pagination
Response Example
Notes:
- Internal flags created by surveys and product tours are automatically excluded from results
- Flags are ordered by creation date (newest first) by default
- Use the
orderparameter to sort by other fields (e.g.,order=keyororder=-updated_at) - The
STALEstatus filter returns flags that haven’t been evaluated recently - When filtering by tags, flags must have ALL specified tags (AND logic)
- The
has_evaluation_tagsfilter helps identify flags with runtime context requirements