Reflag REST API
Introduction to Reflag REST API
What is the REST API?
Authentication
Use Cases
Toggling Flags
await fetch(
`https://app.reflag.com/api/apps/${appId}/flags/specific-targets/${envId}`,
{
method: "PATCH",
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer ${apiToken}`,
},
body: JSON.stringify({
updates: [
{
flagKey: "new-checkout-flow",
value: true,
companyId: "acme-corp",
},
],
changeDescription: "Enabled new checkout flow for Acme Corp in prod",
}),
}
);Automating TypeScript Type Generation with Reflag CLI in CI/CD
Further Documentation
Last updated
Was this helpful?