Skip to main content

API Reference

The Feature Flag Service exposes two API surfaces:

Management API (/api/*)

Used by the dashboard and by developers who want to automate flag management. Authenticated with a JWT token obtained from the auth endpoints.

Base URL: https://api.ffs.adarshrust.com

SectionDescription
AuthenticationRegister, login, get a JWT
ProjectsCreate and manage projects
EnvironmentsCreate and manage environments
Feature FlagsCreate, update, toggle flags
Targeting RulesAdd and manage targeting rules

SDK API (/sdk/*)

Used by your application at runtime to evaluate flags. Authenticated with an SDK key (X-SDK-Key header).

SectionDescription
EvaluateEvaluate all flags for a user

Common conventions

Authentication header (management):

Authorization: Bearer <jwt_token>

Authentication header (SDK):

X-SDK-Key: sdk_your_key_here

Content type: All request bodies are JSON. All responses are JSON.

Error format: plain text string body. Not JSON.

Invalid input

Timestamps: All timestamps are ISO 8601 in UTC: "2026-05-22T10:00:00Z"

IDs: All resource IDs are opaque strings. Do not parse or construct them.

Health check

GET /health

Returns 200 OK with a database ping result. No authentication required. Use this for uptime monitoring.

{ "status": "ok", "db": "ok" }