Trigger Messages
Use our API to manually trigger the sending of transactional emails that have been templated and set up before, or to re-trigger messages that have already been sent.
Trigger Message
Details of how the trigger-message
endpoint can be used to manually trigger emails configured in the parcelLab system are described below.
Recipients
The recipients are defined in the to
array as an array of objects.
The recipient values are described in the following table.
address
Recipient email address, or phone number, or recipient ID for alternative notification channels.
string
Yes
name
Clear name of the recipient.
string
No
Placeholders
You can provide placeholders
in the API call.
The placeholders
key is an array of objects with two fields, one defining the name of the placeholder and one the value. The name must be identical to the placeholder used in the message.
The placeholder values are described in the following table.
name
The name of the placeholder to be used in the message.
string
Yes
value
The actual content of the placeholder, can be text, number, or boolean for conditional placeholders.
string
, number
, bool
Yes
Re-trigger Message
Details of how the re-trigger-message
endpoint can be used to re-trigger emails sent in the parcelLab system are described below.
Feedback via Webhook
Our system will notify about sending the result asynchronously via webhook, if the webhook has been set up in the system. One webhook receiver can be defined by client
.
The feedback webhook includes the following:
correlationId
correlationId
The correlationId
that was either given in the request, or returned as part of the request by our API. If no correlationId
has been given in the request, our system will generate a UUID v4 and return it.
result
result
The result of email delivery, which can either be success or bounce.
{
"correlationId": "5ee80bba-7bb9-4427-a32f-5b374e39a1de",
"success": true
}
The webhook setup is identical to the status data feedback.
WebhooksLast updated
Was this helpful?