Unleash: API Design — Admin & Client APIs
Docs-backedTwo API surfaces: Admin API for management and Client API for SDK evaluation. Admin API at {unleash-url}/api/admin/ covers features, strategies, projects, environments, segments, and API tokens. Feature toggle creation specifies type (release, experiment, operational, kill-switch, permission) and initial strategy. Strategy configuration uses parameters (percentage, userIds, hostNames) and constraints (attribute-based conditions). The Client API at /api/client/ provides feature configurations and accepts metrics. Feature toggle state is per-environment — a toggle can be enabled in staging and disabled in production. The API design is straightforward REST. Variants enable multivariate flags. Impression data tracks evaluation events. The Admin API follows standard CRUD patterns without the semantic patching complexity of LaunchDarkly.