API ReferenceEmailsTxeid
Get a transactional email
x-sendlit-apikey<token>
In: header
Path Parameters
txeId*string
Response Body
application/json
application/json
curl -X GET "https://api.sendlit.dev/emails/string"{
"txeId": "string",
"to": "string",
"from": "string",
"replyTo": "string",
"subject": "string",
"templateId": "string",
"variables": {
"property1": null,
"property2": null
},
"status": "queued",
"error": "string",
"trackOpens": true,
"trackClicks": true,
"openCount": 0,
"clickCount": 0,
"sentAt": "string",
"createdAt": "string",
"updatedAt": "string",
"html": "string"
}{
"error": "string"
}Send a transactional email POST
Requires a non-empty mailing address in the team's general settings. `templateId` must identify a team-owned transactional template; marketing templates return 422 template_not_transactional. Unguarded Liquid variables must be supplied in `variables`, or the API returns 422 missing_template_variables without creating a row or queue job. Inline `html` is sent verbatim without Liquid rendering. address, unsubscribe_link, and subscriber are marketing-only server-owned values and are unavailable to transactional templates.
List uploaded media GET
Returns the team's uploaded MediaLit-backed media. Unsplash and external URL images are not stored here.