VoidhashDocs
DocumentationAPI reference
Dashboard
Essentials
API overview
Authentication
Endpoints
Analytics
Api_keys
Auth
Component_dev_sessions
Component_registry
Components
Development
Events
Experiments
Feature_flag_overrides
Feature_flag_targets
Feature_flags
Ingest_policy
Notification_sends
Notifications
Organizations
Payment_provider_configurations
Payment_provider_products
Paywall_locations
Paywalls
Perks
Persons
Products
Projects
Push_notification_configurations
Schema
Sdk
Users
Webhooks
Analytics
Event capture
Get Person
Identify Person
Sync Person Attributes
Sync Transaction
Sign Promotional Offer
Development Purchase
Evaluate Feature Flags
Resolve Paywall
Get Sdk Schema
Register Device
Refresh Device
Unregister Device

Evaluate Feature Flags

PreviousDevelopment PurchaseNextResolve Paywall
POST
/api/v1/sdk/evaluate-flags

Header Parameters

x-distinct-id*string
x-distinct-id-encoding?|null
x-publishable-key*string
x-client-bundle-id*string
x-client-locale?string|null
x-client-version?string|null
x-is-backgrounded*string

Value in

  • "true"
  • "false"
x-is-debug-build*string

Value in

  • "true"
  • "false"
x-nonce?string|null
x-observer-mode*string

Value in

  • "true"
  • "false"
x-platform*string
x-platform-brand?string|null
x-platform-device?string|null
x-platform-flavor*string

Value in

  • "native"
  • "browser"
x-platform-flavor-version?string|null
x-platform-version?string|null
x-preferred-locales?string|null
x-sdk*string

Value in

  • "react-native"
  • "web"
  • "ios"
  • "android"
x-sdk-version*string
x-storefront?string|null
x-environment?|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

flagKeys?array<string>|null

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/sdk/evaluate-flags" \  -H "x-distinct-id: string" \  -H "x-publishable-key: string" \  -H "x-client-bundle-id: string" \  -H "x-is-backgrounded: true" \  -H "x-is-debug-build: true" \  -H "x-observer-mode: true" \  -H "x-platform: string" \  -H "x-platform-flavor: native" \  -H "x-sdk: react-native" \  -H "x-sdk-version: string" \  -H "Content-Type: application/json" \  -d '{}'
{  "flags": [    {      "enabled": true,      "key": "string",      "payload": null,      "variantKey": "string"    }  ]}
{  "_tag": "Api/SdkValidationError",  "message": "string"}
{  "_tag": "Api/AuthenticationError",  "cause": "string",  "message": "string"}
{  "_tag": "Api/SdkServiceError",  "cause": "string"}