API referenceReferenceRuntime Flags
Évaluer un flag (SERVER_SDK)
POST
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
key*stringLength
1 <= lengthtargetingKey?string|nullcontext?|nullRésultat d'évaluation (inclut reason / variant)
application/json- response
flag*matchedSegments?array<string>curl -X POST 'http://localhost:18080/api/v1/runtime/evaluate' \ -H 'X-FlagFix-Sdk-Key: ff_development_client-sdk.abc123…' \ -H 'Content-Type: application/json' \ -d '{ "key": "new_checkout", "targetingKey": "user_123", "context": { "plan": "pro", "country": "SN" }}'Example Response
{ "flag": { "key": "string", "enabled": true, "value": null, "reason": "string", "variant": "string", "configurationVersion": 0 }, "matchedSegments": [ "string" ]}Was this page useful?
Ingérer un lot d'événements analytics POST
Persiste durablement les événements valides, déduplique par `(project, environment, eventId)`, retourne un accusé partiel. Limites V1 : - max 100 events par lot - max 256 KiB corps sérialisé UTF-8 - max 32 KiB par événement sérialisé Rate limit : compteur Redis partagé multi-instance (repli mémoire si Redis down).
Évaluer plusieurs flags (SERVER_SDK) POST
Next Page