{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/customer-io/json-schema/customer-io-get-transactional-action-object-schema.json",
  "title": "getTransactionalActionObject",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/customer-io-transactional-api-openapi.yml#/components/schemas/getTransactionalActionObject",
  "x-scalar-ignore": true,
  "allOf": [
    {
      "$ref": "#/$defs/transactionalActionObject"
    },
    {
      "type": "object",
      "properties": {
        "headers": {
          "$ref": "#/$defs/headers"
        }
      }
    }
  ],
  "$defs": {
    "action_id": {
      "x-scalar-ignore": true,
      "description": "The identifier for an action.",
      "type": "integer",
      "readOnly": true
    },
    "bcc": {
      "x-scalar-ignore": true,
      "readOnly": true,
      "description": "The blind-copy address(es) for this action.",
      "type": "string"
    },
    "body_amp": {
      "x-scalar-ignore": true,
      "type": "string",
      "description": "AMP-enabled content for your email. If a recipient's email client doesn't support AMP, they receive your `body` content instead. Make sure you're [set up to send AMP](/journeys/channels/email/layouts/amp-for-email/) first."
    },
    "cc": {
      "x-scalar-ignore": true,
      "readOnly": true,
      "description": "The carbon-copy address(es) for this action.",
      "type": "string"
    },
    "created": {
      "x-scalar-ignore": true,
      "type": "integer",
      "format": "unix timestamp",
      "description": "The date time when the referenced ID was created.",
      "readOnly": true
    },
    "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"
    },
    "from": {
      "x-scalar-ignore": true,
      "type": "string",
      "description": "The address that the message is from, relevant if the action `type` is `email`.",
      "readOnly": true
    },
    "from_id": {
      "x-scalar-ignore": true,
      "type": "integer",
      "description": "The identifier of the `from` address, commonly known as the \"sender\". Use [List sender identities](/integrations/api/app/tag/sender-identities/listSenders/) to find valid IDs."
    },
    "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"
    },
    "language": {
      "x-scalar-ignore": true,
      "type": "string",
      "description": "The language variant for your message. If you don't use our [localization feature](/journeys/channels/localization/getting-started), or this is the default message, this value is an empty 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"
    },
    "preprocessor": {
      "x-scalar-ignore": true,
      "type": "string",
      "description": "If CSS pre-processing is enabled, this key is populated with `premailer`. Note, Juice replaced Premailer as the pre-processor, but you will only see `premailer` as the value.",
      "enum": [
        "premailer"
      ],
      "readOnly": true
    },
    "recipient": {
      "x-scalar-ignore": true,
      "description": "The recipient address for an action.",
      "type": "string"
    },
    "reply_to": {
      "x-scalar-ignore": true,
      "type": "string",
      "description": "The address that receives replies for the message, if applicable.",
      "readOnly": true
    },
    "reply_to_id": {
      "x-scalar-ignore": true,
      "type": [
        "integer",
        "null"
      ],
      "description": "The identifier for the `reply_to` address, if applicable. Use [List sender identities](/integrations/api/app/tag/sender-identities/listSenders/) to find valid IDs."
    },
    "subject": {
      "x-scalar-ignore": true,
      "type": "string",
      "description": "The subject line for an `email` action."
    },
    "transactionalActionObject": {
      "x-scalar-ignore": true,
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/action_id"
        },
        "name": {
          "type": "string",
          "description": "The name of the transactional message.",
          "readOnly": true
        },
        "created": {
          "$ref": "#/$defs/created"
        },
        "updated": {
          "$ref": "#/$defs/updated"
        },
        "body": {
          "type": "string",
          "description": "The body of the transactional message. You cannot modify the body if you created it with our drag-and-drop editor."
        },
        "language": {
          "$ref": "#/$defs/language"
        },
        "type": {
          "type": "string",
          "description": "The type of message.",
          "enum": [
            "email",
            "push"
          ],
          "readOnly": true
        },
        "from": {
          "$ref": "#/$defs/from"
        },
        "from_id": {
          "$ref": "#/$defs/from_id"
        },
        "reply_to": {
          "$ref": "#/$defs/reply_to"
        },
        "reply_to_id": {
          "$ref": "#/$defs/reply_to_id"
        },
        "preprocessor": {
          "$ref": "#/$defs/preprocessor"
        },
        "recipient": {
          "$ref": "#/$defs/recipient",
          "readOnly": true
        },
        "subject": {
          "$ref": "#/$defs/subject"
        },
        "cc": {
          "$ref": "#/$defs/cc"
        },
        "bcc": {
          "$ref": "#/$defs/bcc"
        },
        "fake_bcc": {
          "$ref": "#/$defs/fake_bcc"
        },
        "preheader_text": {
          "$ref": "#/$defs/preheader_text"
        },
        "body_amp": {
          "$ref": "#/$defs/body_amp"
        }
      }
    },
    "updated": {
      "x-scalar-ignore": true,
      "type": "integer",
      "format": "unix timestamp",
      "description": "The date time when the referenced ID was last updated.",
      "readOnly": true
    }
  }
}