Skip to main content

Examples

This section shows request and response examples for the IntelSend Email API.


📤 Sample Email Request

{
"to": "abc@gmail.com",
"from": "info@xyz.com",
"subject": "Email subject line",
"bodyText": "Hello User, This is a sample email body",
"bodyHtml": "<strong>Hello User</strong>,<p>This is a sample email body</p>",
"sendAt": "2024-11-01 11:00:00",
"uid": "abc-123",
"programId": 12345,
"checkDNC": true
}
Important

sendAt must be in UTC format: YYYY-MM-DD HH:mm:ss.

uid must be unique per request.

programId groups multiple requests for reporting & billing.


📥 Sample Email Response

{
"isid": "123-abc-456-xyz",
"status": "QUEUED",
"errorCode": 0,
"to": "abc@gmail.com",
"from": "info@xyz.com",
"uid": "abc-123",
"programId": 12345
}
Success vs Error

✅ status: "QUEUED" with errorCode: 0 → Request accepted successfully.

❌ status: "REJECTED" with errorCode > 0 → Request failed, check Error Codes .