{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/customer-io/json-schema/customer-io-archived-message-object-schema.json",
  "title": "archivedMessageObject",
  "description": "An archived message, including a complete message body.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/customer-io-messages-api-openapi.yml#/components/schemas/archivedMessageObject",
  "x-scalar-ignore": true,
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/message_id"
    },
    "body": {
      "type": "string",
      "description": "The body of the variant. You cannot modify the body if you created it with our drag-and-drop editor."
    },
    "from": {
      "$ref": "#/$defs/from"
    },
    "reply_to": {
      "$ref": "#/$defs/reply_to"
    },
    "recipient": {
      "description": "The recipient address for an action.",
      "type": "string"
    },
    "subject": {
      "$ref": "#/$defs/subject"
    },
    "cc": {
      "$ref": "#/$defs/cc"
    },
    "bcc": {
      "$ref": "#/$defs/bcc"
    },
    "fake_bcc": {
      "$ref": "#/$defs/fake_bcc"
    },
    "preheader_text": {
      "$ref": "#/$defs/preheader_text"
    },
    "url": {
      "$ref": "#/$defs/url"
    },
    "request_method": {
      "$ref": "#/$defs/request_method"
    },
    "headers": {
      "$ref": "#/$defs/headers"
    },
    "forgotten": {
      "$ref": "#/$defs/forgotten"
    }
  },
  "$defs": {
    "bcc": {
      "x-scalar-ignore": true,
      "readOnly": true,
      "description": "The blind-copy address(es) for this action.",
      "type": "string"
    },
    "cc": {
      "x-scalar-ignore": true,
      "readOnly": true,
      "description": "The carbon-copy address(es) for this action.",
      "type": "string"
    },
    "fake_bcc": {
      "x-scalar-ignore": true,
      "readOnly": true,
      "type": "boolean",
      "description": "If true, rather than sending true copies to BCC addresses, Customer.io sends a copy of the message with the subject line containing the recipient address(es).\n"
    },
    "forgotten": {
      "x-scalar-ignore": true,
      "type": "boolean",
      "description": "If true, Customer.io does not retain the message content."
    },
    "from": {
      "x-scalar-ignore": true,
      "type": "string",
      "description": "The address that the message is from, relevant if the action `type` is `email`.",
      "readOnly": true
    },
    "headers": {
      "x-scalar-ignore": true,
      "description": "A JSON string containing header objects with `name` and `value`. Names and values must be strings, with no non-ASCII characters or spaces. You can't overwrite reserved headers.",
      "type": "string",
      "format": "json"
    },
    "message_id": {
      "x-scalar-ignore": true,
      "description": "The identifier for a delivery—the instance of a message intended for an individual recipient.",
      "type": "string",
      "readOnly": true
    },
    "preheader_text": {
      "x-scalar-ignore": true,
      "type": "string",
      "description": "[Also known as \"preview text\"](/journeys/channels/email/headers/custom-preheader-text/), this is the small block of text shown in an email inbox next to or underneath the subject line.\n"
    },
    "reply_to": {
      "x-scalar-ignore": true,
      "type": "string",
      "description": "The address that receives replies for the message, if applicable.",
      "readOnly": true
    },
    "request_method": {
      "x-scalar-ignore": true,
      "type": "string",
      "description": "The method used in conjunction with a webhook `url`.",
      "enum": [
        "GET",
        "POST",
        "PUT",
        "DELETE",
        "PATCH"
      ]
    },
    "subject": {
      "x-scalar-ignore": true,
      "type": "string",
      "description": "The subject line for an `email` action."
    },
    "url": {
      "x-scalar-ignore": true,
      "type": "string",
      "description": "The URL of a webhook or action."
    }
  }
}