{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/customer-io/json-schema/customer-io-export-object-schema.json",
  "title": "exportObject",
  "description": "Metadata about an export.",
  "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/exportObject",
  "x-scalar-ignore": true,
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/export_id"
    },
    "user_id": {
      "type": "integer",
      "description": "The user who created the export."
    },
    "user_email": {
      "type": "string",
      "description": "The email of the user who created the export."
    },
    "total": {
      "type": "integer",
      "description": "The number of entries in the export. Exports report 0 until done."
    },
    "deduplicate_id": {
      "$ref": "#/$defs/deduplicate_id"
    },
    "type": {
      "$ref": "#/$defs/export_type"
    },
    "failed": {
      "$ref": "#/$defs/export_failed"
    },
    "description": {
      "$ref": "#/$defs/export_description"
    },
    "downloads": {
      "$ref": "#/$defs/export_downloads"
    },
    "created_at": {
      "$ref": "#/$defs/created"
    },
    "updated_at": {
      "$ref": "#/$defs/updated"
    },
    "status": {
      "type": "string",
      "enum": [
        "done",
        "pending",
        "failed"
      ],
      "description": "The state of your export where `done` indicates an export that you can download, `pending`, indicates that your export is not ready to download, and `failed` indicates an export that has failed and will not be downloadable."
    }
  },
  "$defs": {
    "created": {
      "x-scalar-ignore": true,
      "type": "integer",
      "format": "unix timestamp",
      "description": "The date time when the referenced ID was created.",
      "readOnly": true
    },
    "deduplicate_id": {
      "x-scalar-ignore": true,
      "type": "string",
      "readOnly": true,
      "description": "An identifier in the format `id:timestamp` where the id is for the object you're working with (Automations, Deliveries, Exports, Identities, One-time sends, Segments, and Templates), and the timestamp is the last time the object was updated."
    },
    "export_description": {
      "x-scalar-ignore": true,
      "type": "string",
      "description": "A description of the export."
    },
    "export_downloads": {
      "x-scalar-ignore": true,
      "type": "integer",
      "description": "Counts the total number of times the export has been downloaded."
    },
    "export_failed": {
      "x-scalar-ignore": true,
      "type": "boolean",
      "description": "If true, the export was unsuccessful."
    },
    "export_id": {
      "x-scalar-ignore": true,
      "type": "integer",
      "description": "The identifier for the export."
    },
    "export_type": {
      "x-scalar-ignore": true,
      "type": "string",
      "description": "The type of information contained in the export.",
      "enum": [
        "customers",
        "deliveries"
      ]
    },
    "updated": {
      "x-scalar-ignore": true,
      "type": "integer",
      "format": "unix timestamp",
      "description": "The date time when the referenced ID was last updated.",
      "readOnly": true
    }
  }
}