curl --request POST \
--url http://localhost:3001/api/admin/content/templates/batch-send \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "<string>",
"templateId": "<string>",
"users": [
{
"id": "<string>",
"properties": {},
"messageId": "<string>",
"context": {}
}
],
"channel": "Email",
"subscriptionGroupId": "<string>",
"context": {},
"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 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "<string>",
"templateId": "<string>",
"users": [
{
"id": "<string>",
"properties": {},
"messageId": "<string>",
"context": {}
}
],
"channel": "Email",
"subscriptionGroupId": "<string>",
"context": {},
"provider": "SendGrid"
}
'{
"results": [
{
"userId": "<string>",
"type": "Success",
"messageId": "<string>"
}
]
}Show child attributes
Message Id to set on the tracked event. If not provided, a message id will be generated.
Email SendGrid