{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/customer-io/json-schema/customer-io-export-shared-props-schema.json",
  "title": "exportSharedProps",
  "description": "Contains properties shared by export filters.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/customer-io-exports-api-openapi.yml#/components/schemas/exportSharedProps",
  "x-scalar-ignore": true,
  "type": "object",
  "properties": {
    "start": {
      "$ref": "#/$defs/start"
    },
    "end": {
      "$ref": "#/$defs/end"
    },
    "attributes": {
      "description": "Recipient attributes you want to include as extra columns in your export. You can't include event or trigger properties.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "metric": {
      "$ref": "#/$defs/metric"
    },
    "drafts": {
      "$ref": "#/$defs/drafts"
    },
    "template_id": {
      "type": "integer",
      "description": "Restrict the export to a specific message template (content) within the selected automation, one-time send, or transactional message."
    }
  },
  "$defs": {
    "drafts": {
      "x-scalar-ignore": true,
      "description": "If true, your request returns both drafts and active/sent messages.",
      "type": "boolean"
    },
    "end": {
      "x-scalar-ignore": true,
      "description": "The unix timestamp representing the end of the export.",
      "type": "integer",
      "format": "unix timestamp"
    },
    "metric": {
      "x-scalar-ignore": true,
      "description": "Determines the metric(s) you want to return.",
      "type": "string",
      "enum": [
        "created",
        "attempted",
        "sent",
        "delivered",
        "opened",
        "clicked",
        "converted",
        "bounced",
        "spammed",
        "unsubscribed",
        "dropped",
        "failed",
        "undeliverable"
      ]
    },
    "start": {
      "x-scalar-ignore": true,
      "description": "The unix timestamp representing the beginning of the export.",
      "type": "integer",
      "format": "unix timestamp"
    }
  }
}