A treatment is a state of a feature flag. A simple feature flag has two treatments: on and off. An experiment can have any number of treatments.

  "name": String,
  "configurations": String,
  "description": String,
  "keys": [ String ],
  "segments": [ String ]

Keys are used to show the specified treatment for a specific customer. It is analogous to the individual target section on the user interface.

In the same way, segments is used to show the treatment to users in a particular segment.

'Configurations' are JSON representations of components of your feature that might you want to be able to change on the fly (e.g., you could set the color of a button to red or set number of retries allowed on an API endpoint using these configurations)