curl --request POST \
--url https://api.sprucecollective.co.uk/admin/email/send \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"dynamic_data": {},
"subject": "<string>",
"template_id": "<string>",
"to": "<string>"
}
'{}Send an email using a SendGrid dynamic template (admin only)
curl --request POST \
--url https://api.sprucecollective.co.uk/admin/email/send \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"dynamic_data": {},
"subject": "<string>",
"template_id": "<string>",
"to": "<string>"
}
'{}Type "Bearer" followed by a space and JWT token.
SendGrid email request
OK
The response is of type object.