The Flags REST API endpoints let you configure, list, toggle, and delete feature flags programmatically.
List All Flags
Terminal
curl -X GET https://api.tryflagpilot.com/v1/flags \ -H "Authorization: Bearer fk_secret_xxxxxxxx"
Create Flag
Terminal
curl -X POST https://api.tryflagpilot.com/v1/flags \
-H "Authorization: Bearer fk_secret_xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"key": "beta-analytics",
"description": "Beta access to premium user charts",
"enabled": false
}'Delete Flag
Terminal
curl -X DELETE https://api.tryflagpilot.com/v1/flags/beta-analytics \ -H "Authorization: Bearer fk_secret_xxxxxxxx"
FAQ
How does Flags Endpoints interact with local caches?
Configurations are synced down using Edge Config or fallback REST triggers. The client automatically reads evaluations in-memory, resulting in sub-millisecond local evaluation times.
Where can I obtain support for Flags Endpoints?
You can open a support ticket in your dashboard, check the community roadmap, or consult the FlagPilot Platform Status page.
