Amazon Pinpoint · Schema

MessageRequest

Specifies the configuration and other settings for a message.

CampaignsCommunicationsEmailMarketingMessagingPush NotificationsSMSVoiceCustomer EngagementSegmentationJourneysAnalytics

Properties

Name Type Description
Addresses object
Context object
Endpoints object
MessageConfiguration object
TemplateConfiguration object
TraceId object
View JSON Schema on GitHub

JSON Schema

amazon-pinpoint-message-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-pinpoint/refs/heads/main/json-schema/amazon-pinpoint-message-request-schema.json",
  "title": "MessageRequest",
  "description": "Specifies the configuration and other settings for a message.",
  "type": "object",
  "properties": {
    "Addresses": {
      "allOf": [
        {
          "$ref": "#/components/schemas/MapOfAddressConfiguration"
        },
        {
          "description": "A map of key-value pairs, where each key is an address and each value is an <a href=\"https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-messages.html#apps-application-id-messages-model-addressconfiguration\">AddressConfiguration</a> object. An address can be a push notification token, a phone number, or an email address. You can use an <a href=\"https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-messages.html#apps-application-id-messages-model-addressconfiguration\">AddressConfiguration</a> object to tailor the message for an address by specifying settings such as content overrides and message variables."
        }
      ]
    },
    "Context": {
      "allOf": [
        {
          "$ref": "#/components/schemas/MapOf__string"
        },
        {
          "description": "A map of custom attributes to attach to the message. For a push notification, this payload is added to the data.pinpoint object. For an email or text message, this payload is added to email/SMS delivery receipt event attributes."
        }
      ]
    },
    "Endpoints": {
      "allOf": [
        {
          "$ref": "#/components/schemas/MapOfEndpointSendConfiguration"
        },
        {
          "description": "A map of key-value pairs, where each key is an endpoint ID and each value is an <a href=\"https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-messages.html#apps-application-id-messages-model-endpointsendconfiguration\">EndpointSendConfiguration</a> object. You can use an <a href=\"https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-messages.html#apps-application-id-messages-model-endpointsendconfiguration\">EndpointSendConfiguration</a> object to tailor the message for an endpoint by specifying settings such as content overrides and message variables."
        }
      ]
    },
    "MessageConfiguration": {
      "allOf": [
        {
          "$ref": "#/components/schemas/DirectMessageConfiguration"
        },
        {
          "description": "The settings and content for the default message and any default messages that you defined for specific channels."
        }
      ]
    },
    "TemplateConfiguration": {
      "allOf": [
        {
          "$ref": "#/components/schemas/TemplateConfiguration"
        },
        {
          "description": "The message template to use for the message."
        }
      ]
    },
    "TraceId": {
      "allOf": [
        {
          "$ref": "#/components/schemas/__string"
        },
        {
          "description": "The unique identifier for tracing the message. This identifier is visible to message recipients."
        }
      ]
    }
  },
  "required": [
    "MessageConfiguration"
  ]
}