Send multiple emails
Changed onSend up to 100 emails in a single request. Useful for sending personalized emails to multiple recipients efficiently.
Each email in the batch can have different content and recipients. Failed emails don't affect other emails in the batch.
Idempotency: Supports Idempotency-Key header for safe retries.
Request
- Base URLhttps://api.arkhq.io/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Unique key for idempotent requests. If a request with this key was already processed, the cached response is returned. Keys expire after 24 hours.
Request body
Example request
{
"emails": [
{
"metadata": {
"user_id": "usr_123456",
"order_id": "ord_789012",
"campaign": "welcome_series"
}
}
]
}Response
Batch accepted
Example response
{
"data": {
"total": 10,
"accepted": 9,
"failed": 1
},
"meta": {
"requestId": "req_V1StGXR8_Z5jdHi6"
}
}Changes
- warning
the optional response header
X-RateLimit-Limitremoved for the status429 - warning
the optional response header
X-RateLimit-Remainingremoved for the status429 - warning
the optional response header
X-RateLimit-Resetremoved for the status429
- warning
- warning
added the new
infrastructure_errorenum value to the/response property for the response status - warning
added the new
infrastructure_errorenum value to the/response property for the response status - warning
added the new
infrastructure_errorenum value to the/response property for the response status - warning
added the new
infrastructure_errorenum value to the/response property for the response status - warning
added the new
infrastructure_errorenum value to the/response property for the response status - warning
added the new
infrastructure_errorenum value to the/response property for the response status - info
removed the
postal_errorenum value from the/response property for the response status - info
removed the
postal_errorenum value from the/response property for the response status - info
removed the
postal_errorenum value from the/response property for the response status - info
removed the
postal_errorenum value from the/response property for the response status - info
removed the
postal_errorenum value from the/response property for the response status - info
removed the
postal_errorenum value from the/response property for the response status
- warning