Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Your Moonbase API key.

Body

application/json

The ProgramMessage to be sent.

Parameters for sending a ProgramMessage.

person
object
required

The person to send the message to.

program_template_id
string
required

The ID of the ProgramTemplate to use for sending the message.

custom_variables
object

Any custom Liquid variables to be interpolated into the message template.

Response

Message accepted.

Represents a single message sent as part of a Program.

type
string
required

String representing the object’s type. Always program_message for this object.

Allowed value: "program_message"
id
string
required

Unique identifier for the object.

program_template
ProgramTemplate · object
required

The ProgramTemplate used to generate this message.

created_at
string<date-time>
required

Time at which the message was created and enqueued for sending, as an ISO 8601 timestamp in UTC.

updated_at
string<date-time>
required

Time at which the object was last updated, as an ISO 8601 timestamp in UTC.