Create and update flags from deployment or operations tooling.
Automated release administration
Kinde · Module
Kinde’s Feature Flags API lets authenticated machine-to-machine clients create, edit, override, and delete feature flags through the Management API. API-created flags support string, integer, and boolean types; JSON flags must be created in the dashboard.
The Feature Flags API lets a machine-to-machine application use the Kinde Management API to create, update, override, and delete feature flags. Requests require a valid access token with the relevant feature-flag scope; API-created flags can be string, integer, or boolean, while JSON flags must originate in the dashboard.
HTTP requests to the Kinde Management API using a Bearer access tokenThe page describes feature-flag management operations rather than one single return type; individual API responses depend on the requested operation.
const token = await getManagementApiToken();
const response = await fetch(
"https://<your-kinde-domain>/api/v1/feature_flags",
{
headers: { Authorization: `Bearer ${token}` }
}
);
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const flags = await response.json();
console.log(flags);Fetches feature flags from the Kinde Management API using a machine-to-machine access token.
Automated release administration
Targeted rollout
Flag cleanup
Use a machine-to-machine application to connect to the Kinde Management API, then authenticate requests with a valid access token. The API supports adding, editing, overriding, and deleting feature flags.
Follow-up: Which permissions should the application receive? Grant only the required feature-flag scopes, such as read, create, update, or delete, matching the operations it performs.
The API accepts str for strings, int for integers, and bool for booleans. JSON is not an API-createable type, even though it is available in the Kinde dashboard.
Follow-up: How would you provision a JSON flag? Create it in the dashboard first, then use the API only for supported management operations such as overrides or deletion.
A flag can be overridden for an environment or organization, allowing a different value from the general flag configuration. This supports targeted releases without changing the base flag definition.
Follow-up: What should be checked before performing an override? Confirm that the flag exists, the target environment or organization is correct, and the access token includes the required update permission.
Kinde Management APImachine-to-machine applicationvalid access tokenenvironment overrideorganization overridestrintbool