Feature Flags
Test Feature Flag
Authorization
apiKeyAuth x-api-key<token>
FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.
In: header
Path Parameters
idOrSlug*string
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v0/project/string/feature-flags/string/test" \ -H "Content-Type: application/json" \ -d '{}'{ "value": null, "variant": "string", "reason": "string", "ruleId": "string", "attributes": {}, "trace": { "prerequisites": [ { "flagKey": "string", "servedVariant": "string", "passed": true } ], "rules": [ { "ruleId": "string", "name": "string", "matched": true, "conditions": [ { "attribute": "string", "operator": "string", "actual": null, "matched": true } ] } ], "bucket": 0 }}identifier?string|null|null
userId?string|null|null
attributes?|null
userAgent?string|null|null
country?string|null|null