Xsolla-logoXsolla Developers
oder
Zum Kundenportal

Send email based on template

post/templates/email/send

Sends an email based on a custom template and data that you provided to the specified email address.

SecurityServer
Request
query Parameters
projectId
required
string <uuid>

Login-Projekt-ID aus dem Kundenportal.

Request Body schema: application/json
email
required
string [ 1 .. 255 ] characters

E-Mail-Adresse des Benutzers.

required
object
id
required
string

Name of the template created by the Create custom email template call.

locale
string = 5 characters

Region of the texts that you provided in the template in the <language code>_<country code> format, where:

object

JSON object with texts for all variables that you specified in the email template created by the Create custom email template call.

// If you created body of the template with

Hi {{first_name}} {{last_name}}!
We will be glad to see you on the {{site_link}} page.

// Pass the following JSON here

"params": {
  "first_name": "John",
  "last_name": "Smith",
  "site_link": "https://example.com/"
}
property name*
additional property
string
Responses
204

No Content

401

Unauthorized

404

Not Found

422

Unprocessable Entity

Request samples
application/json
{
  • "email": "john_smith@gmail.com",
  • "template": {
    }
}
Response samples
{
  • "error": {
    }
}