Getting Started
Send Email With Template
Send emails using pre-defined templates in SendX for dynamic content rendering and faster delivery setup.
๐งพ Send Email With Template
Use this endpoint to send transactional emails using a pre-defined template in SendX.
Endpoint
POST https://app.sendx.io/rest/email/template
Headers
Header | Value | Description |
---|---|---|
Content-Type | application/json | Required |
Authorization | Bearer YOUR_API_KEY | Your SendX API key |
Request Body Schema
Example Usage: Send With Template
โ Successful Response
Return fields:
messageId
: Unique ID for the sent message.accepted
: Recipients the email was successfully queued for.rejected
: Recipients that failed validation.
๐จ Error Response
Common error details:
400
: Bad Request โ missing required fields.401
: Unauthorized โ bad or missing API key.404
: Template not found โ check your template name.429
: Too Many Requests โ rate limit exceeded.