Create feature flag
create_flagCreate a Boolean, String, Number, or Json feature flag across every project environment, disabled by default, so agents can control rollouts and targeting.
Instructions
Create a feature flag. type is one of Boolean|String|Number|Json. Boolean flags get true/false variations automatically; for other types pass initialVariations. The flag is created in every environment of the project (disabled).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Unique flag key, e.g. checkout-v2 | |
| name | Yes | ||
| tags | No | ||
| type | Yes | ||
| project | Yes | Project key | |
| ownerEmail | No | Optional owner: the email of an active member (Pro plan and above, see set_flag_owner). Omitted, a personal access token makes its own user the owner and a service token leaves the flag unowned | |
| description | No | ||
| expiresAtUtc | No | Optional date (YYYY-MM-DD, end of that UTC day) or ISO-8601 timestamp the flag is expected to be removed by (see set_flag_expiry) | |
| idempotency_key | No | Idempotency-Key header for safe retries | |
| clientSideVisible | No | Expose to client-side SDKs (browser/mobile) | |
| initialVariations | No |