curl --request POST \
--url http://localhost:3001/api/admin/content/templates/batch-send \
--header 'Content-Type: application/json' \
--data '{
"workspaceId": "<string>",
"templateId": "<string>",
"subscriptionGroupId": "<string>",
"users": [
{
"id": "<string>",
"messageId": "<string>",
"properties": {}
}
],
"context": {},
"channel": "Email",
"provider": "SendGrid"
}'
{
"results": [
{
"userId": "<string>",
"type": "Success",
"messageId": "<string>"
}
]
}
Send messages to a batch of users using a message template.
curl --request POST \
--url http://localhost:3001/api/admin/content/templates/batch-send \
--header 'Content-Type: application/json' \
--data '{
"workspaceId": "<string>",
"templateId": "<string>",
"subscriptionGroupId": "<string>",
"users": [
{
"id": "<string>",
"messageId": "<string>",
"properties": {}
}
],
"context": {},
"channel": "Email",
"provider": "SendGrid"
}'
{
"results": [
{
"userId": "<string>",
"type": "Success",
"messageId": "<string>"
}
]
}
Default Response
The response is of type object
.