Send Email With Template
Use this endpoint to send transactional emails using a pre-defined template in SendX with variable substitution. The API returns 202 Accepted when your email is queued for delivery. Actual sending happens in the background. A 202 response means your request was accepted—it does not guarantee delivery. Per-recipient status is not returned in the response.Endpoint
POST https://api.sendx.io/api/v1/rest/send/template
Headers
Request Body
Sender and domain whitelisting: If a sending domain is whitelisted (verified) in SendX, you can use any
from email address at that domain and any display name. For example, with domain example.com verified, both support@example.com and orders@example.com are valid, with any name.
Example Request
Success Response (202 Accepted)
When all validations pass and the message is successfully queued for delivery:
Note: Delivery happens in the background. A 202 does not guarantee delivery. We automatically retry failed sends. You can check delivery status in your SendX dashboard.
Error Response Format
All error responses use the same JSON shape:message values below for debugging and programmatic handling.