feature-flags-api

Official

Enable feature flags for API apps

AuthorPostHog
Version1.0.0
Installs0

System Documentation

What problem does it solve?

PostHog feature flags for API applications provide a way to control API behavior remotely, enabling experiments, gradual rollouts, and safer feature releases without redeploys.

Core Features & Use Cases

  • Server-side feature-flag evaluation for API endpoints across languages and frameworks, enabling targeted rollouts.
  • Guidance for integrating flag checks, sending flag payloads, and tracking flag exposure in API workflows.
  • Best practices for environment variables, security, and safe, incremental changes to API behavior.
  • Use case: Gate a new API response path behind a feature flag to test with a subset of clients before full rollout.

Quick Start

Initialize PostHog in your API project and guard an endpoint with a feature flag.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: feature-flags-api
Download link: https://github.com/PostHog/skills/archive/main.zip#feature-flags-api

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.