Split · Example Payload

Split Get Treatment Example

ExperimentationFeature FlagsFeature ManagementRolloutsSDKs

Split Get Treatment Example is an example object payload from Split, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "GET",
    "url": "http://localhost:7548/client/get-treatment?key=user-123&split-name=checkout_v2",
    "headers": {
      "Authorization": "Bearer {SDK_KEY}"
    }
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "splitName": "checkout_v2",
      "treatment": "on",
      "config": "{\"checkoutVersion\":2,\"enableNewFlow\":true}"
    }
  }
}