Skip to main content
POST
/
admin
/
email
/
send
Send SendGrid template email
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>"
}
'
{}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Body

application/json

SendGrid email request

dynamic_data
object
required

Dynamic data for the template

subject
string
required

The email subject

template_id
string
required

The SendGrid template ID

to
string
required

The recipient email address

Response

OK

The response is of type object.