Unleash provides a set of APIs to give you full programmatic control over your feature flags and to connect your applications and services to Unleash. There are three main APIs, each designed for a specific purpose.
The Client API is designed for backend services and returns complete flag configurations with all activation strategies for server-side evaluation.
Authentication: Backend tokens.
Key endpoints:
Backend tokens can be scoped to specific projects and environments. Create them at Admin settings > Access control > API access.
The Frontend API is designed for client-side environments and returns only enabled flags for a specific Unleash Context, providing security and performance benefits.
Authentication: Frontend tokens.
Key endpoints:
Each Frontend API request requires an Unleash Context for flag evaluation:
The Admin API provides comprehensive programmatic access to all Unleash resources. This API powers the Unleash Admin UI and enables automation workflows.
All requests require the Authorization header:
All Unleash APIs require authentication using an API token. The type of token you use depends on the API you are accessing and your specific use case.
Unleash supports four types of API tokens:
For an end-to-end Unleash integration, you might need to use multiple token types. For example, when connecting a frontend SDK to Unleash using Unleash Edge, you’ll need:
Ensure that the backend token has access to the same project and environment (or a broader scope) as the frontend token.
Depending on your permissions, you can create API tokens in the Unleash Admin UI:
Learn more about API tokens and client keys.
For a comprehensive and interactive reference of all available endpoints, Unleash provides an OpenAPI specification. This is useful for exploring the APIs, generating client libraries, and for testing.
Unleash version: 5.2+ enabled by default.
Unleash version: 4.13+ can be enabled using the ENABLE_OAS environment variable.
You can access the specification from your Unleash instance at the following paths:
/docs/openapi//docs/openapi.jsonFor detailed guides on each API, please refer to the full reference documentation.