# Mailer send Integration via LowCodeAPI
**Last Updated**: February 10, 2026
## Overview
Email service
**Categories:**
- {'id': 'transactional-email', 'name': 'Transactional Email'}
## Base Endpoint
https://api.lowcodeapi.com/mailersend
**Important**: Always include the provider name in the URL path after `api.lowcodeapi.com/`
## Authentication
**Type:** TOKEN
**Official Documentation:** https://developers.mailersend.com
## URL Format (Important)
LowCodeAPI supports two URL formats. **Always try the New Format first**, then fall back to Old Format if needed.
### New Format (Priority)
- Path parameters stay in the URL path
- Do NOT include path parameters as query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/{id}?api_token=XXX`
### Old Format (Fallback)
- Path parameters become query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/id?id={id}&api_token=XXX`
### Decision Flow for AI Agents
1. Always use **New Format** first - keep path parameters in the URL path
2. If you get a 404 or error, try **Old Format** with sanitized path
3. Log which format worked for future requests to this provider
## API Categories
## Common Endpoints
### Send an email
**Method:** POST
**LowCodeAPI Path:** /v1/email
**New Format URL:**
https://api.lowcodeapi.com/mailersend/v1/email?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mailersend/v1/email?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| text | string | |
| attachments | array | |
| bcc | array | |
| cc | array | |
| from | object | |
| headers | object | |
| html | string | |
| in_reply_to | string | |
| personalization | array | |
| precedence_bulk | boolean | |
| reply_to | object | |
| send_at | number | |
| settings | object | |
| subject | string | |
| tags | array | |
| template_id | string | |
| to | array | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/mailersend/v1/email?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.mailersend.com/api/v1/email.html#send-an-email
### Send bulk emails
**Method:** POST
**LowCodeAPI Path:** /v1/bulk-email
**New Format URL:**
https://api.lowcodeapi.com/mailersend/v1/bulk-email?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mailersend/v1/bulk-email?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| text | string | |
| from | object | |
| html | string | |
| personalization | array | |
| subject | string | |
| tags | array | |
| template_id | string | |
| to | array | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/mailersend/v1/bulk-email?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.mailersend.com/api/v1/email.html#send-bulk-emails
### List domains
**Method:** GET
**LowCodeAPI Path:** /v1/domains
**New Format URL:**
https://api.lowcodeapi.com/mailersend/v1/domains?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mailersend/v1/domains?api_token=YOUR_API_TOKEN
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| limit | number | |
| page | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/mailersend/v1/domains?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.mailersend.com/api/v1/domains.html#get-a-list-of-domains
### Get a domain
**Method:** GET
**LowCodeAPI Path:** /v1/domains/{domain_id}
**New Format URL:**
https://api.lowcodeapi.com/mailersend/v1/domains/{domain_id}?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mailersend/v1/domains/domain_id?domain_id={domain_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| domain_id | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/mailersend/v1/domains/{domain_id}?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.mailersend.com/api/v1/domains.html#get-a-single-domain
### Create a domain
**Method:** POST
**LowCodeAPI Path:** /v1/domains
**New Format URL:**
https://api.lowcodeapi.com/mailersend/v1/domains?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mailersend/v1/domains?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| name | string | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/mailersend/v1/domains?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.mailersend.com/api/v1/domains.html#create-a-domain
### Update a domain
**Method:** PUT
**LowCodeAPI Path:** /v1/domains/{domain_id}
**New Format URL:**
https://api.lowcodeapi.com/mailersend/v1/domains/{domain_id}?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mailersend/v1/domains/domain_id?domain_id={domain_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| domain_id | string | |
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| custom_tracking_subdomain | string | |
| name | string | |
| return_path_subdomain | string | |
**Example Request (New Format):**
```bash
curl -X PUT 'https://api.lowcodeapi.com/mailersend/v1/domains/{domain_id}?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.mailersend.com/api/v1/domains.html#update-a-domain
### Delete a domain
**Method:** DELETE
**LowCodeAPI Path:** /v1/domains/{domain_id}
**New Format URL:**
https://api.lowcodeapi.com/mailersend/v1/domains/{domain_id}?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mailersend/v1/domains/domain_id?domain_id={domain_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| domain_id | string | |
**Example Request (New Format):**
```bash
curl -X DELETE 'https://api.lowcodeapi.com/mailersend/v1/domains/{domain_id}?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.mailersend.com/api/v1/domains.html#delete-a-domain
### Verify a domain
**Method:** GET
**LowCodeAPI Path:** /v1/domains/{domain_id}/verify
**New Format URL:**
https://api.lowcodeapi.com/mailersend/v1/domains/{domain_id}/verify?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mailersend/v1/domains/domain_id/verify?domain_id={domain_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| domain_id | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/mailersend/v1/domains/{domain_id}/verify?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.mailersend.com/api/v1/domains.html#verify-a-domain
### Get DNS records
**Method:** GET
**LowCodeAPI Path:** /v1/domains/{domain_id}/dns-records
**New Format URL:**
https://api.lowcodeapi.com/mailersend/v1/domains/{domain_id}/dns-records?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mailersend/v1/domains/domain_id/dns-records?domain_id={domain_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| domain_id | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/mailersend/v1/domains/{domain_id}/dns-records?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.mailersend.com/api/v1/domains.html#get-dns-records
### List templates
**Method:** GET
**LowCodeAPI Path:** /v1/templates
**New Format URL:**
https://api.lowcodeapi.com/mailersend/v1/templates?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mailersend/v1/templates?api_token=YOUR_API_TOKEN
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| limit | number | |
| page | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/mailersend/v1/templates?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.mailersend.com/api/v1/templates.html#get-a-list-of-templates
## Usage Examples
### Example 1: Send an Email
```bash
# Send an email - no path parameters needed
curl -X POST "https://api.lowcodeapi.com/mailersend/send?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"from": "[email protected]",
"to": "[email protected]",
"subject": "Test Email",
"text": "This is a test email from Mailer send"
}'
```
### Example 2: List Sent Emails
```bash
# Get list of sent emails
curl -X GET "https://api.lowcodeapi.com/mailersend/messages?api_token=YOUR_API_TOKEN"
```
### Example 3: Get Email Details
```bash
# Get specific message by ID
curl -X GET "https://api.lowcodeapi.com/mailersend/messages/{MESSAGE_ID}?api_token=YOUR_API_TOKEN"
```
## Error Handling
LowCodeAPI returns standard HTTP status codes. Common errors:
| Status Code | Description |
|-------------|-------------|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters or request body |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Endpoint or resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Server Error - Provider API error |
All error responses include error details:
```json
{
"data": {
"error": {
"message": "Error description",
"code": "ERROR_CODE"
}
}
}
```
## Complete Endpoint Reference
| Endpoint | Method | Category |
|----------|--------|----------|
| Send an email | POST | Emails |
| Send bulk emails | POST | Emails |
| List domains | GET | Domains |
| Get a domain | GET | Domains |
| Create a domain | POST | Domains |
| Update a domain | PUT | Domains |
| Delete a domain | DELETE | Domains |
| Verify a domain | GET | Domains |
| Get DNS records | GET | Domains |
| List templates | GET | Templates |
| Get a template | GET | Templates |
| Create a template | POST | Templates |
| Update a template | PUT | Templates |
| Delete a template | DELETE | Templates |
| List webhooks | GET | Webhooks |
| Get a webhook | GET | Webhooks |
| Create a webhook | POST | Webhooks |
| Update a webhook | PUT | Webhooks |
| Delete a webhook | DELETE | Webhooks |
| List activity events | GET | Activity |
| Get an activity event | GET | Activity |
| List bounces | GET | Suppressions |
| Add bounces | POST | Suppressions |
| Delete a bounce | DELETE | Suppressions |
| List unsubscribes | GET | Suppressions |
| Add unsubscribes | POST | Suppressions |
| Delete an unsubscribe | DELETE | Suppressions |
| List spam complaints | GET | Suppressions |
| Add spam complaints | POST | Suppressions |
| Delete a spam complaint | DELETE | Suppressions |
| List tokens | GET | Tokens |
| Get a token | GET | Tokens |
| Create a token | POST | Tokens |
| Update a token | PUT | Tokens |
| Delete a token | DELETE | Tokens |
| List recipients | GET | Recipients |
| Get a recipient | GET | Recipients |
| Create a recipient | POST | Recipients |
| Update a recipient | PUT | Recipients |
| Delete a recipient | DELETE | Recipients |
| List recipient lists | GET | Recipients |
| Get a recipient list | GET | Recipients |
| Create a recipient list | POST | Recipients |
| Update a recipient list | PUT | Recipients |
| Delete a recipient list | DELETE | Recipients |
| Add recipients to a list | POST | Recipients |
| Remove a recipient from a list | DELETE | Recipients |
## API Definition Endpoints
You can fetch the complete API specification for this provider:
**New Format (OpenAPI spec):**
```bash
curl 'https://backend.lowcodeapi.com/mailersend/openapi'
```
**Old Format (API definition):**
```bash
curl 'https://backend.lowcodeapi.com/mailersend/definition'
```
## Response Format
All responses are wrapped in a `data` key:
```json
{
"data": {
// Actual response from provider (object or array)
}
}
```