Resend an email
POST/v1/email/resend
Sends an email again to some or all of its recipients, reusing the stored payload of ref_id.
Without recipients, every recipient whose last attempt failed is resent. A recipient the mail server already accepted (already_sent) or one with no recorded attempt (no_attempt_recorded) is skipped unless force is true; forcing may deliver a duplicate.
A bulk email (process_email_inbulk) is resent as a whole, so recipients must be omitted. One resend per email is accepted every 15 minutes.
Only the account that sent the email can resend it, and its mailer must still be active.
Request
- application/json
Body
required
Resend request
Responses
- 202
- 400
- 401
- 404
- 409
- 500
Resend queued
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
skipped
object[]
{
"queued": [
"user@example.com"
],
"ref_id": "01JC3BBW8S9YGX2VNKG5MD7BTA",
"skipped": [
{
"email": "user@example.com",
"reason": "already_sent"
}
],
"success": true
}
INVALID_REQUEST / BULK_SUBSET
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
skipped
object[]
{
"code": "NOTHING_TO_RESEND",
"error": "string",
"skipped": [
{
"email": "user@example.com",
"reason": "already_sent"
}
],
"success": false,
"trace_id": "01JC3BBW8S9YGX2VNKG5MD7BTA"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
skipped
object[]
{
"code": "NOTHING_TO_RESEND",
"error": "string",
"skipped": [
{
"email": "user@example.com",
"reason": "already_sent"
}
],
"success": false,
"trace_id": "01JC3BBW8S9YGX2VNKG5MD7BTA"
}
EMAIL_NOT_FOUND
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
skipped
object[]
{
"code": "NOTHING_TO_RESEND",
"error": "string",
"skipped": [
{
"email": "user@example.com",
"reason": "already_sent"
}
],
"success": false,
"trace_id": "01JC3BBW8S9YGX2VNKG5MD7BTA"
}
NOTHING_TO_RESEND / RESEND_IN_FLIGHT / MAILER_INACTIVE
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
skipped
object[]
{
"code": "NOTHING_TO_RESEND",
"error": "string",
"skipped": [
{
"email": "user@example.com",
"reason": "already_sent"
}
],
"success": false,
"trace_id": "01JC3BBW8S9YGX2VNKG5MD7BTA"
}
INTERNAL
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
skipped
object[]
{
"code": "NOTHING_TO_RESEND",
"error": "string",
"skipped": [
{
"email": "user@example.com",
"reason": "already_sent"
}
],
"success": false,
"trace_id": "01JC3BBW8S9YGX2VNKG5MD7BTA"
}