API referenceReferenceRuntime Flags
Évaluer des flags pour clients publics (CLIENT_SDK)
Traits sensibles filtrés côté serveur (email, phone, token, password, secret). `reason` et `variant` omis dans la réponse publique. `matchedSegments` toujours vide.
POST
Traits sensibles filtrés côté serveur (email, phone, token, password, secret).
reason et variant omis dans la réponse publique.
matchedSegments toujours vide.
X-FlagFix-Sdk-Key*stringClé d'environnement complète {prefix}.{secret}.
Le serveur en dérive projectId, environmentId et keyType.
CLIENT_SDK et SERVER_SDK acceptés selon l'opération.
application/json- body
keys?array<string>Si omis, tous les flags publiés de l'environnement
targetingKey?string|nullcontext?|nullFlags publics
application/json- response
flags*array<>matchedSegments*array<string>configurationVersion*integerFormat
int64curl -X POST 'http://localhost:18080/api/v1/runtime/evaluate-public' \ -H 'X-FlagFix-Sdk-Key: ff_development_client-sdk.abc123…' \ -H 'Content-Type: application/json' \ -d '{ "targetingKey": "user_123", "context": { "plan": "pro", "country": "SN" }}'Example Response
{ "flags": [ { "key": "new_checkout", "enabled": true, "value": null, "reason": null, "variant": null, "configurationVersion": 12 } ], "matchedSegments": [], "configurationVersion": 12}Was this page useful?