Send Email
Send templated emails through the iSend API using dynamic placeholders with a single API call.
Endpoint
POST https://api.isend.ai/emails/send
Headers
- Authorization (string, required): Bearer token using your API key.
Example:Authorization: Bearer is_xxxxxxx
- Content-Type:
application/json
Request Body Parameters
Field | Type | Required | Description |
---|---|---|---|
from | string | ✅ | Sender’s email. Use name <email@domain.com> format if needed. |
to | string or array | ✅ | Email or array of emails for recipients. |
template | string | ✅ | Identifier or name of the template to send. |
data_mapping | object | ✅ | Dynamic placeholder values to inject into the template. |
Sample Request
Sample Response
PHP SDK Example
Notes
- Ensure the
template
exists and is active on your account. data_mapping
must match the placeholders used in your template.- You may use an array for
to
if you want to send to multiple recipients.
Response
200
Successful response