Send an email
Changed onSend a single email message. The email is accepted for immediate delivery and typically delivered within seconds.
Example use case: Send a password reset email to a user.
Required fields: from, to, subject, and either html or text
Idempotency: Supports Idempotency-Key header for safe retries.
Related endpoints:
- GET /emails/{emailId} - Track delivery status
- GET /emails/{emailId}/deliveries - View delivery attempts
- POST /emails/{emailId}/retry - Retry failed delivery
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
{
"from": "Acme <hello@acme.com>",
"to": [
"user@example.com"
],
"subject": "Hello World",
"html": "<h1>Welcome!</h1><p>Thanks for signing up.</p>",
"metadata": {
"user_id": "usr_123456",
"campaign": "welcome_series"
}
}Response
Email accepted successfully
Example response
{
"data": {
"id": "aBc123XyZ456",
"messageId": "<abc123@mail.arkhq.io>"
},
"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 - 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 - info
removed the
postal_errorenum value from the/response property for the response status
- warning