{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/converly-io/json-schema/converly-io-test-event-body-schema.json",
  "title": "TestEventBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/converly-io-test-event-api-openapi.yml#/components/schemas/TestEventBody",
  "type": "object",
  "properties": {
    "flow_id": {
      "$ref": "#/$defs/FlowId"
    },
    "meta_test_event_code": {
      "type": "string",
      "maxLength": 200
    },
    "reddit_test_id": {
      "type": "string",
      "maxLength": 200
    },
    "tiktok_test_event_code": {
      "type": "string",
      "maxLength": 200
    },
    "allow_real_conversion": {
      "type": "boolean",
      "description": "Set true to permit a test that would create a REAL reported conversion (a server-side ad destination with no valid sandbox code). Omitted/false → such a request is refused with would_create_real_conversion."
    },
    "action": {
      "type": "object",
      "properties": {
        "action_id": {
          "type": "string"
        },
        "integration_id": {
          "type": "string"
        },
        "fire_mode": {
          "type": "string"
        },
        "config": {
          "type": "object",
          "additionalProperties": {}
        }
      },
      "required": [
        "action_id",
        "integration_id",
        "config"
      ]
    }
  },
  "required": [
    "flow_id",
    "action"
  ],
  "$defs": {
    "FlowId": {
      "type": "string",
      "pattern": "^flow_[0-9A-Za-z]{22}$",
      "description": "Prefixed flow id, e.g. flow_xxxxxx"
    }
  }
}