LaunchFlag Evaluation API

Answer what a flag is, for a user, in one environment.

GitHub OpenAPI

Operations 3

GET /api/eval Evaluate one flag for one user #
GET /api/flags Every flag in this environment, evaluated for one user #
GET /api/config The rule set for one environment #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/launchflag-dev:launchflag-dev-evaluation-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

launchflag-dev-evaluation-api-openapi.yml Raw ↑
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