Send A Single Email
Use the single send endpoint for transactional email such as login codes, receipts, onboarding messages, and notifications.
Example request
curl -X POST "https://app.yourdomain.com/api/batch_mail/api/send" \
-H "Content-Type: application/json" \
-H "X-API-Key: $PING8_API_KEY" \
-d '{
"recipient": "user@example.com",
"attribs": {
"first_name": "Alex"
}
}'Never hardcode API keys in source code.
Success response
The API queues the message. Delivery outcome arrives later through logs, analytics, and lifecycle telemetry.
Common failures
- Invalid API key.
- API template inactive.
- Sender domain not verified.
- Recipient suppressed.
- Delivery engine disabled.
- IP allowlist does not include the caller.