Quarantine
Release Email
Releases a quarantined email for delivery. The body and subject are sanitized before being sent. Each quarantine_id can only be released once.
https://mail.sendcorex.com/v3.0/quarantine/release Where does the ID come from? When /send flags a message, it returns 403 with a quarantine_id. See My messages are flagged as spam.
Limits: a quarantine record expires after 3 hours, and releases are capped at 10 per 3 hours. Going over the cap returns RELEASE_LIMIT_REACHED and the account goes under review. Review the content before you release.
Body parameters
quarantine_idstringrequiredThe ID returned in the 403 response from /send when the email was flagged.
e.g.
"qtn_3f2a1b4c8e9d4f7a"
What happens on release
- 1
Lookup
The quarantine record is fetched and validated against your account. Records belonging to other accounts are rejected.
- 2
Sanitize
The body and subject are sanitized to strip any remaining harmful patterns before delivery.
- 3
Ingest
Each recipient in the original payload gets an individual email record prepared and dispatched via the internal ingest pipeline.
- 4
Mark released
The quarantine record is marked as released: true and the release counter is incremented. Subsequent calls with the same ID are rejected.
Because the body and subject are sanitized, the delivered email can differ from the one you originally sent.
Quick start
import axios from 'axios';
const quarantineId = 'qtn_3f2a1b4c8e9d4f7a';
const response = await axios.post(
'https://mail.sendcorex.com/v3.0/quarantine/release',
{ quarantine_id: quarantineId },
{ headers: { Authorization: process.env.SENDCOREX_API_KEY } }
);
const { success, released, recipients } = response.data;
console.log(`Released to ${recipients} recipient(s)`);Response
{
"success": true,
"released": true,
"code": "QUARANTINE_RELEASED",
"quarantine_id": "qtn_3f2a1b4c8e9d4f7a",
"recipients": 1
}Errors
All error codes → Errors return a JSON object with error, code and responseTime.
- 401
MISSING_AUTH_HEADERNo Authorization header present.
- 401
INVALID_API_KEYThe API key is invalid or revoked.
- 401
ACCOUNT_BLOCKEDAccount has been blocked.
- 401
NO_CREDITS_LEFTNo email credits remaining.
- 401
USER_NOT_FOUNDUser not found.
- 401
MISSING_USER_PRIVILEGESMissing user privileges.
- 401
EMAIL_CREDITS_NOT_FOUNDError fetching email credits.
- 429
CREDENTIAL_TEMPORARILY_BLOCKEDAPI key temporarily blocked due to repeated policy violations.
- 429
IP_TEMPORARILY_BLOCKEDRequesting IP temporarily blocked due to repeated policy violations.
- 400
MISSING_QUARANTINE_IDquarantine_id is required.
- 403
RELEASE_LIMIT_REACHEDToo many quarantine releases (limit: 10 / 3h). Account under review.
- 403
QUARANTINE_FORBIDDENThe quarantine record belongs to another account.
- 404
QUARANTINE_NOT_FOUNDQuarantine record not found or already processed.
- 410
QUARANTINE_EXPIREDQuarantine record has expired. Please resend the email.
- 500
INTERNAL_SERVER_ERRORUnexpected server error. Try again.
- 500
QUARANTINE_CORRUPTCorrupt quarantine payload.