{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-bucketing-information-schema.json",
  "title": "BucketingInformation",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-attribution-api-openapi.yml#/components/schemas/BucketingInformation",
  "properties": {
    "account_id": {
      "description": "ID of the Account",
      "format": "int64",
      "type": "integer"
    },
    "bucketing_history": {
      "description": "Array of bucketing information items",
      "items": {
        "$ref": "#/$defs/BucketingInformationItem"
      },
      "type": "array"
    },
    "visitor_id": {
      "description": "The unique identifier of the visitor",
      "format": "uuid",
      "readOnly": true,
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "BucketingInformationItem": {
      "properties": {
        "campaign_id": {
          "description": "The unique identifier of the Campaign",
          "format": "int64",
          "type": "integer"
        },
        "experiment_id": {
          "description": "The unique identifier of the Experiment",
          "format": "int64",
          "type": "integer"
        },
        "is_holdback": {
          "description": "Is the visitor bucketed into a variation or a holdback",
          "type": "boolean"
        },
        "timestamp": {
          "description": "The timestamp of the bucketing decision on the client side",
          "format": "int64",
          "type": "integer"
        },
        "variation_id": {
          "description": "The unique identifier of the Variation",
          "format": "int64",
          "type": "integer"
        }
      },
      "type": "object"
    }
  }
}