POST
/
v1
/
transactional
curl --request POST \
  --url https://app.loops.so/api/v1/transactional \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "<string>",
  "transactionalId": "<string>",
  "dataVariables": {},
  "attachments": [
    {
      "filename": "<string>",
      "contentType": "<string>",
      "data": "<string>"
    }
  ]
}'
{
  "success": true
}

Request

Body

email
string
required

The email address of the recipient.

transactionalId
string
required

The ID of the transactional email to send.

dataVariables
object

An object containing data as defined by the data variables added to the transactional email template. Values can be of type string or number.

attachments
object[]

Please email us to enable attachments on your account before using them with the API.
An object containing file(s) sent along with an email message.

Response

Success

success
boolean
required

Error

success
boolean
required
path
string
required
message
string
required