Management

Create a flag, off in every environment

post/api/v1/flags

Request

  • Base URL: https://launchflag.dev
  • URL: https://launchflag.dev/api/v1/flags
  • Auth: HTTP bearer

Request body

keystring required
descriptionstring
type'boolean' | 'multivariate'
failMode'open' | 'closed'

What your app should answer when it cannot reach us. Closed for money and auth.

essentialboolean

Essential flags are left alone by emergency off.

requiresstring nullable

Key of a flag this one depends on. While that flag is off for a user, this one is off for them too. Cycles are refused.

variantsstring[]

Example request

{
  "key": "checkout_v2",
  "requires": "new_pricing"
}

Response

The created flag

Changes

No recorded changes to this operation across all 1 revision of this API.