Processes a single SDK feature decision. An SDK feature rule can be configured in the console, and allows a custom decision to be made using a range of inputs to drive the behaviour of a website or app. SDK features can output any one of several data types as configured in the console.
SDK features permit business decisions to drive access or behaviour to be made in an app that is not using HTML content. SDK decisions are relevant for both anonymous and authenticated sessions. If no session is provided via the request then an anonymous session will not be created.
Invoking an SDK decision may cause side effects as configured in the rule, such as invoking webhooks or recording trial usages. When dryRunMode
is enabled in the request, trial usages will not be recorded.
OK. The output of the SDK feature rule, which may be wrapped with metadata according to the raw
query parameter value.
{- "sdkFeatureSlug": "sdk-feature-1",
- "session": "0f88f32c-b03c-49cd-b977-0ca224d1acee",
- "foreign_keys": {
- "external-system": "user-1"
}, - "ip": "56.123.124.23",
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11)...",
- "path": "/article.html",
- "contentId": "paid-article-123",
- "jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
- "dryRunMode": false,
- "giftToken": "23810040-8149-4f4e-a4d1-c8268340be7f",
- "custom-input-1": "custom-value"
}
{- "sdkFeatureSlug": "sdk-feature-1",
- "outputType": "ENUM",
- "outputValue": "YES"
}