FlagFix
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
/api/v1/runtime/evaluate-public

Traits sensibles filtrés côté serveur (email, phone, token, password, secret). reason et variant omis dans la réponse publique. matchedSegments toujours vide.

Header Parameters

X-FlagFix-Sdk-Key*string

Clé 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.

Request Body

application/json
  1. body
keys?array<string>

Si omis, tous les flags publiés de l'environnement

targetingKey?string|null
context?|null

Response Body

Flags publics

application/json
  1. response
flags*array<>
matchedSegments*array<string>
configurationVersion*integer
Formatint64
Example Request
curl -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?