Emails
Overview of emails API methods
Last updated
Overview of emails API methods
Last updated
POST
https://api.codemash.io/:version/notifications/email
Send an email message.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
More about templates and template languages here.
version
string
A version of the API endpoint.
Authorization
string
Secret API key which belongs to your project or user. Not required if using cookies with a session ID.
x-cm-projectid
string
Your project's ID. Can be passed as a query parameter.
templateId
string
The ID of the email template to use.
cultureCode
string
Language code. If you have more than one language set in your project you can use this parameter to specify which language template to use.
forceRequestLanguage
string
If the recipient user has a language set, user language is used to select a template language. This forces us to use cultureCode parameter instead of user's language.
roles
array
Roles of users to be set as recipients.
emails
array
An array of emails to be set as recipients.
users
array
An array of user IDs to be set as recipients.
ccEmails
array
An array of emails to be set as CC recipients.
ccUsers
array
An array of user IDs to be set as CC recipients.
bccEmails
array
An array of emails to be set as BCC recipients.
bccUsers
array
An array of user IDs to be set as BCC recipients.
tokens
object
Key-value pair (string: string) object of custom tokens.
postpone
integer
Amount of milliseconds to postpone sending the email.
respectTimeZone
boolean
If creating a postponed email and the recipient of an email has a timezone set, then postpones according to the recipient's timezone.