Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: LaunchFlag Evaluation API
version: 1.0.0
summary: Feature flags and kill switches, evaluated in your own process.
description: Two families. The evaluation endpoints take an environment key (lf_dev_, lf_staging_, lf_prod_) and answer what a flag is for a user; the SDK calls these for you and caches the config, so most apps never call them directly. The management endpoints under /api/v1 take an API token (lfk_) and create, change, promote and delete flags. The same management surface is available to agents over MCP at /api/mcp.
contact:
name: LaunchFlag
url: https://launchflag.dev
email: contact@launchflag.dev
license:
name: Proprietary
url: https://launchflag.dev/terms
servers:
- url: https://launchflag.dev
tags:
- name: Evaluation
description: Answer what a flag is, for a user, in one environment.
paths:
/api/eval:
get:
tags:
- Evaluation
operationId: evaluateFlag
summary: Evaluate one flag for one user
security:
- environmentKey: []
parameters:
- name: flag
in: query
required: true
schema:
type: string
- name: user
in: query
required: false
schema:
type: string
responses:
'200':
description: The answer for this user
content:
application/json:
schema:
$ref: '#/components/schemas/Evaluation'
example:
enabled: false
reason: disabled
variant: null
'401':
$ref: '#/components/responses/Error'
/api/flags:
get:
tags:
- Evaluation
operationId: evaluateAll
summary: Every flag in this environment, evaluated for one user
description: Always returns the whole environment. `keys` registers keys we have not seen, it never filters.
security:
- environmentKey: []
parameters:
- name: user
in: query
required: false
schema:
type: string
- name: keys
in: query
required: false
schema:
type: string
responses:
'200':
description: Every flag, evaluated
'401':
$ref: '#/components/responses/Error'
/api/config:
get:
tags:
- Evaluation
operationId: getConfig
summary: The rule set for one environment
description: What the SDK polls to evaluate locally. Contains rules, never user data. ETag is the version.
parameters:
- name: key
in: query
required: true
schema:
type: string
responses:
'200':
description: The environment's rule set
'401':
$ref: '#/components/responses/Error'
components:
responses:
Error:
description: A JSON error with a message that says how to fix it
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: string
example:
error: 'Missing API token. Send Authorization: Bearer lfk_…'
schemas:
Evaluation:
type: object
required:
- enabled
- variant
properties:
enabled:
type: boolean
variant:
type:
- string
- 'null'
reason:
type: string
description: Why the answer is what it is, such as "disabled".
securitySchemes:
environmentKey:
type: http
scheme: bearer
description: 'An environment key: lf_dev_, lf_staging_ or lf_prod_. Scoped to one environment, read only, 600 requests a minute. The publishable key (lfpub_) is the browser-safe variant.'
apiToken:
type: http
scheme: bearer
description: 'An lfk_ API token from the dashboard, 120 requests a minute. Its scope caps what it may do: full is everything you can do, CI changes flags in dev and staging only, read only changes nothing.'
externalDocs:
description: Full documentation
url: https://launchflag.dev/docs