{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reddit/json-schema/reddit-components-schema-pixel-schema.json",
  "title": "Pixel",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reddit-pixels-api-openapi.yml#/components/schemas/components_schema_pixel",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "business_id": {
      "$ref": "#/$defs/id"
    },
    "id": {
      "description": "The Pixel ID.",
      "type": "string",
      "readOnly": true
    },
    "name": {
      "description": "The Pixel's human-readable name.",
      "minLength": 1,
      "maxLength": 100,
      "type": "string"
    },
    "created_at": {
      "$ref": "#/$defs/components_schema_created_at"
    },
    "created_by": {
      "$ref": "#/$defs/id-6",
      "description": "The ID of the member who created the Pixel."
    },
    "modified_at": {
      "$ref": "#/$defs/components_schema_modified_at"
    },
    "modified_by": {
      "$ref": "#/$defs/id-6",
      "description": "The ID of the member who last modified the Pixel."
    },
    "automatic_matching_config": {
      "$ref": "#/$defs/components_schema_automatic_advanced_matching_config",
      "description": "The Pixel's [automated advanced matching](https://business.reddithelp.com/s/article/automated-advanced-matching) settings."
    },
    "enhanced_signal_collection_config": {
      "$ref": "#/$defs/components_schema_enhanced_signal_collection_config",
      "description": "The Pixel's enhanced signal collection settings."
    }
  },
  "$defs": {
    "components_schema_automatic_advanced_matching_config": {
      "title": "Automatic Advanced Matching Config",
      "type": "object",
      "additionalProperties": false,
      "description": "The Pixel's [automated advanced matching](https://business.reddithelp.com/s/article/automated-advanced-matching) settings.",
      "properties": {
        "collect_email": {
          "description": "Whether to automatically collect email addresses.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "collect_phone_number": {
          "description": "Whether to automatically collect phone numbers.",
          "type": [
            "boolean",
            "null"
          ]
        }
      }
    },
    "components_schema_business_id": {
      "description": "The business ID.",
      "type": "string",
      "format": "uuid"
    },
    "components_schema_created_at": {
      "description": "When this entity was created ([ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)).",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "components_schema_enhanced_signal_collection_config": {
      "title": "Enhanced Signal Collection Config",
      "type": "object",
      "additionalProperties": false,
      "description": "The Pixel's enhanced signal collection settings.",
      "properties": {
        "collect_page_metadata": {
          "description": "Whether the advertiser has opted in to automatically collecting page metadata for this pixel.\n`true` means the advertiser opted in to the feature, `false` means the advertiser opted out, and\n`null` means the advertiser has not made a selection yet.\n",
          "type": [
            "boolean",
            "null"
          ]
        }
      }
    },
    "components_schema_modified_at": {
      "title": "Modified At",
      "description": "When this entity was last changed ([ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)).",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "id": {
      "allOf": [
        {
          "$ref": "#/$defs/components_schema_business_id"
        },
        {
          "readOnly": true
        }
      ]
    },
    "id-6": {
      "type": "string",
      "description": "The member's ID.",
      "readOnly": true
    }
  }
}