☰ DiAstrologer API Docs

Admin

2 endpoint(s).

Endpoint Method Summary Auth
/api/v1/admin/flags GET List Flags
/api/v1/admin/flags/{flag_name} POST Toggle Flag

GET /api/v1/admin/flags

List Flags

List all feature flags + status.

Response 422HTTPValidationError

Example

curl -X GET 'https://api.example.com/api/v1/admin/flags' \
  -H 'Authorization: Bearer <API_KEY>'

POST /api/v1/admin/flags/{flag_name}

Toggle Flag

Toggle a flag (or explicitly set enabled=true/false via body).

Param In Type Required Description
flag_name path string yes

Request body (application/json)

Response 422HTTPValidationError

Example

curl -X POST 'https://api.example.com/api/v1/admin/flags/${flag_name}' \
  -H 'Authorization: Bearer <API_KEY>'