Emails
Send an email
Send 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
post/emails
Headers
Idempotency-Keystring
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"
}
}