API reference
How these fit together: the Email guide.
List email domains
get
Lists the organization’s sending domains with their DNS records.
Every sending domain of the organization, oldest first — at most 10, so always one page — each with the DNS records it needs and the verdict of the last re-check on each. Only a verified domain sends; POST /v1/email/domains/{domain}/verify re-checks one.
Access: an organization key with the email:read scope.
Response 200PublicEmailDomainPage
dataPublicEmailDomain[]RequiredIts fields are listed under Get email domain
nextCursorstring | nullRequiredPass back as
cursorfor the next page; null on the last.
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/email/domains' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"data": [
{
"createdAt": "2026-11-05T10:00:00.000Z",
"dkimStatus": "DKIM_STATUS",
"dmarcPolicy": {
"dkimAlignment": "r",
"percentage": 100,
"policy": "none",
"rua": [
"RUA"
],
"spfAlignment": "r",
"subdomainPolicy": "SUBDOMAIN_POLICY"
},
"domain": "mail.acme.com",
"id": "ID",
"lastCheckedAt": "2026-11-05T10:00:00.000Z",
"mailFromDomain": "MAIL_FROM_DOMAIN",
"mailFromStatus": "MAIL_FROM_STATUS",
"object": "email_domain",
"records": [
{
"kind": "dkim",
"name": "abc123._domainkey.mail.acme.com",
"observed": [
"OBSERVED"
],
"priority": 1,
"purpose": "PURPOSE",
"required": true,
"type": "CNAME",
"value": "abc123.dkim.amazonses.com",
"verdict": "ok"
}
],
"region": "us-east-1",
"status": "pending",
"tracking": {
"clicks": true,
"opens": true
},
"updatedAt": "2026-11-05T10:00:00.000Z",
"verifiedAt": "2026-11-05T10:00:00.000Z",
"version": 1
}
],
"nextCursor": "NEXT_CURSOR"
}Create email domain
post
Claims a sending domain and returns the DNS records to publish.
Reserves the domain for this organization and creates its Amazon SES identity; the answer lists the DKIM, MAIL FROM and DMARC records to publish, each unchecked until you re-check with POST /v1/email/domains/{domain}/verify. The domain sends once SES verifies it and the platform’s own resolver sees its DKIM records. Refused with 409 EMAIL_DOMAIN_CLAIMED or 409 EMAIL_DOMAIN_OVERLAP when another organization holds it or a parent or subdomain of it (each carries a challenge TXT record that takes it from a holder that has not verified), 409 EMAIL_DOMAIN_LIMIT (10) or 409 EMAIL_DOMAIN_PENDING_LIMIT (3 not yet verified), and 503 EMAIL_DOMAINS_UNAVAILABLE when Amazon SES is not set up, still sandboxed or unreachable. Audited against the key.
Access: an organization key with the email:manage scope. Live keys only: a test key is refused with 422 TEST_MODE_UNSUPPORTED.
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Request body
domainstringRequiredThe domain or subdomain to send from. A subdomain is recommended: it keeps sending reputation apart from your people’s own mail and needs no change at the apex.
Response 201PublicEmailDomain
Its fields are listed under Get email domain.
Errors
400VALIDATION_FAILED — not a domain you can own (an address, an IP, a public suffix, or the platform’s own domain).401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.409EMAIL_DOMAIN_ALREADY_ADDED (you hold it), EMAIL_DOMAIN_CLAIMED (another organization holds it), EMAIL_DOMAIN_OVERLAP (another organization holds a parent or subdomain of it), EMAIL_DOMAIN_RELEASING (its previous identity is still being deleted — retry in a few minutes), EMAIL_DOMAIN_UNAVAILABLE (an identity for it already exists in the sending account; contact support), EMAIL_DOMAIN_LIMIT (at most 10 per organization) or EMAIL_DOMAIN_PENDING_LIMIT (at most 3 not yet verified). EMAIL_DOMAIN_CLAIMED and EMAIL_DOMAIN_OVERLAP carrychallenge— a TXT record (type,name,value) to publish: claim again with it in place and a holder that has not verified gives way. None names another organization. IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).503EMAIL_DOMAINS_UNAVAILABLE — Amazon SES is not set up on this deployment (use your own SMTP account in the console), is still sandboxed, or could not be reached.
curl -X POST 'https://api.trovacast.com/v1/email/domains' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
-d '{
"domain": "mail.acme.com"
}'{
"createdAt": "2026-11-05T10:00:00.000Z",
"dkimStatus": "DKIM_STATUS",
"dmarcPolicy": {
"dkimAlignment": "r",
"percentage": 100,
"policy": "none",
"rua": [
"RUA"
],
"spfAlignment": "r",
"subdomainPolicy": "SUBDOMAIN_POLICY"
},
"domain": "mail.acme.com",
"id": "ID",
"lastCheckedAt": "2026-11-05T10:00:00.000Z",
"mailFromDomain": "MAIL_FROM_DOMAIN",
"mailFromStatus": "MAIL_FROM_STATUS",
"object": "email_domain",
"records": [
{
"kind": "dkim",
"name": "abc123._domainkey.mail.acme.com",
"observed": [
"OBSERVED"
],
"priority": 1,
"purpose": "PURPOSE",
"required": true,
"type": "CNAME",
"value": "abc123.dkim.amazonses.com",
"verdict": "ok"
}
],
"region": "us-east-1",
"status": "pending",
"tracking": {
"clicks": true,
"opens": true
},
"updatedAt": "2026-11-05T10:00:00.000Z",
"verifiedAt": "2026-11-05T10:00:00.000Z",
"version": 1
}Get email domain
get
Retrieves a sending domain with its DNS records and verdicts.
Each record carries the verdict of the last re-check (ok, missing, mismatch, or unchecked before the first); this read resolves nothing — POST /v1/email/domains/{domain}/verify re-checks. The domain matches in any case, with or without a trailing dot.
Access: an organization key with the email:read scope.
Path parameters
domainstringRequired
Response 200PublicEmailDomain
Show the 16 fieldsHide the fields
createdAtstring (date-time)RequireddkimStatusstring | nullRequireddmarcPolicyPublicDmarcPolicy | nullRequired6 fields of
dmarcPolicydkimAlignmentstringRequiredpercentageintegerRequiredpolicystringRequiredruastring[]RequiredspfAlignmentstringRequiredsubdomainPolicystring
domainstringRequiredidstring (uuid)RequiredlastCheckedAtstring (date-time) | nullRequiredmailFromDomainstring | nullRequiredmailFromStatusstring | nullRequiredobjectstringRequiredOne of
email_domainrecordsPublicEmailDomainRecord[]Required9 fields of
recordskindstringRequiredOne of
dkimmail_from_mxmail_from_spfdmarcnamestringRequiredobservedstring[]RequiredWhat the resolver found instead, on a mismatch.
priorityinteger | nullRequiredMX only.
purposestringRequiredrequiredbooleanRequiredMail is refused without it; DMARC is advisory.
typestringRequiredOne of
CNAMEMXTXTvaluestringRequiredverdictstringRequiredWhat our own resolver last saw for this record. Diagnosis only: the domain sends once Amazon SES verifies it (
status: verified).One of
okmissingmismatchunchecked
regionstringRequiredstatusstringRequiredOnly a
verifieddomain sends.One of
pendingverifiedfailedtemporary_failuretrackingPublicEmailDomainTrackingRequiredOpen/click tracking for HTML mail sent from this domain (both off until you turn them on with
PATCH).2 fields of
trackingclicksbooleanRequiredLinks are routed through signed redirects (email.clicked); never the unsubscribe link.
opensbooleanRequiredA tracking pixel is added (email.opened).
updatedAtstring (date-time)RequiredverifiedAtstring (date-time) | nullRequiredversionintegerRequiredThe row version; pass it to
DELETEto remove exactly what you read.
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such sending domain.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/email/domains/DOMAIN' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"createdAt": "2026-11-05T10:00:00.000Z",
"dkimStatus": "DKIM_STATUS",
"dmarcPolicy": {
"dkimAlignment": "r",
"percentage": 100,
"policy": "none",
"rua": [
"RUA"
],
"spfAlignment": "r",
"subdomainPolicy": "SUBDOMAIN_POLICY"
},
"domain": "mail.acme.com",
"id": "ID",
"lastCheckedAt": "2026-11-05T10:00:00.000Z",
"mailFromDomain": "MAIL_FROM_DOMAIN",
"mailFromStatus": "MAIL_FROM_STATUS",
"object": "email_domain",
"records": [
{
"kind": "dkim",
"name": "abc123._domainkey.mail.acme.com",
"observed": [
"OBSERVED"
],
"priority": 1,
"purpose": "PURPOSE",
"required": true,
"type": "CNAME",
"value": "abc123.dkim.amazonses.com",
"verdict": "ok"
}
],
"region": "us-east-1",
"status": "pending",
"tracking": {
"clicks": true,
"opens": true
},
"updatedAt": "2026-11-05T10:00:00.000Z",
"verifiedAt": "2026-11-05T10:00:00.000Z",
"version": 1
}Update email domain
patch
Turns open and click tracking on or off for mail sent from a domain.
Only the fields sent change, and only for mail sent from now on: each message keeps the tracking it was sent with. opens adds a tracking pixel (email.opened); clicks routes links through signed redirects (email.clicked), never the unsubscribe link. With version, the change lands only on that version (409 CONFLICT otherwise). Audited with the before and after.
Access: an organization key with the email:manage scope. Live keys only: a test key is refused with 422 TEST_MODE_UNSUPPORTED.
Path parameters
domainstringRequired
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Request body
trackingPublicUpdateEmailDomainTrackingEither switch may be left out (unchanged).
2 fields of
trackingclicksbooleanRoute links in HTML mail through signed redirects.
opensbooleanAdd a tracking pixel to HTML mail.
versionintegerThe
versionyou last read. When given, the change lands only on that version (409CONFLICTotherwise).
Response 200PublicEmailDomain
Its fields are listed under Get email domain.
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such sending domain.409CONFLICT — the domain changed sinceversion. IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X PATCH 'https://api.trovacast.com/v1/email/domains/DOMAIN' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
-d '{}'{
"createdAt": "2026-11-05T10:00:00.000Z",
"dkimStatus": "DKIM_STATUS",
"dmarcPolicy": {
"dkimAlignment": "r",
"percentage": 100,
"policy": "none",
"rua": [
"RUA"
],
"spfAlignment": "r",
"subdomainPolicy": "SUBDOMAIN_POLICY"
},
"domain": "mail.acme.com",
"id": "ID",
"lastCheckedAt": "2026-11-05T10:00:00.000Z",
"mailFromDomain": "MAIL_FROM_DOMAIN",
"mailFromStatus": "MAIL_FROM_STATUS",
"object": "email_domain",
"records": [
{
"kind": "dkim",
"name": "abc123._domainkey.mail.acme.com",
"observed": [
"OBSERVED"
],
"priority": 1,
"purpose": "PURPOSE",
"required": true,
"type": "CNAME",
"value": "abc123.dkim.amazonses.com",
"verdict": "ok"
}
],
"region": "us-east-1",
"status": "pending",
"tracking": {
"clicks": true,
"opens": true
},
"updatedAt": "2026-11-05T10:00:00.000Z",
"verifiedAt": "2026-11-05T10:00:00.000Z",
"version": 1
}Delete email domain
delete
Releases a sending domain.
Removes the domain and queues the deletion of its Amazon SES identity: mail from it is refused from then on, and no organization can claim it again until the identity is gone (EMAIL_DOMAIN_RELEASING meanwhile). With version, the delete lands only on that version (409 CONFLICT otherwise; without it, a change racing the delete is still a 409). Audited against the key.
Access: an organization key with the email:manage scope. Live keys only: a test key is refused with 422 TEST_MODE_UNSUPPORTED.
Path parameters
domainstringRequired
Query parameters
versionintegerThe
versionyou last read. When given, the delete lands only on that version (409CONFLICTotherwise).
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Response 200PublicEmailDomainDeleted
deletedbooleanRequiredOne of
truedomainstringRequiredobjectstringRequiredOne of
email_domain
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such sending domain.409CONFLICT — the domain changed sinceversion. IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X DELETE 'https://api.trovacast.com/v1/email/domains/DOMAIN' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"deleted": true,
"domain": "mail.acme.com",
"object": "email_domain"
}Verify email domain
post
Re-checks a sending domain’s DNS records and its status at Amazon SES.
Resolves the domain’s records now (each record’s verdict) and reads its status at Amazon SES, which decides status. The first verified needs both SES’s verdict and the platform’s resolver seeing the DKIM records; SES can lag DNS by hours, so a domain whose records all resolve may stay pending a while. A verified domain is also re-checked daily, and stops sending (failed or temporary_failure) when SES no longer verifies it or its DKIM records stay missing for 48 hours. Audited; 503 EMAIL_DOMAINS_UNAVAILABLE when Amazon SES is not set up here.
Access: an organization key with the email:manage scope. Live keys only: a test key is refused with 422 TEST_MODE_UNSUPPORTED.
Path parameters
domainstringRequired
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Response 200PublicEmailDomain
Its fields are listed under Get email domain.
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such sending domain.409IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).503EMAIL_DOMAINS_UNAVAILABLE — Amazon SES is not set up here.
curl -X POST 'https://api.trovacast.com/v1/email/domains/DOMAIN/verify' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"createdAt": "2026-11-05T10:00:00.000Z",
"dkimStatus": "DKIM_STATUS",
"dmarcPolicy": {
"dkimAlignment": "r",
"percentage": 100,
"policy": "none",
"rua": [
"RUA"
],
"spfAlignment": "r",
"subdomainPolicy": "SUBDOMAIN_POLICY"
},
"domain": "mail.acme.com",
"id": "ID",
"lastCheckedAt": "2026-11-05T10:00:00.000Z",
"mailFromDomain": "MAIL_FROM_DOMAIN",
"mailFromStatus": "MAIL_FROM_STATUS",
"object": "email_domain",
"records": [
{
"kind": "dkim",
"name": "abc123._domainkey.mail.acme.com",
"observed": [
"OBSERVED"
],
"priority": 1,
"purpose": "PURPOSE",
"required": true,
"type": "CNAME",
"value": "abc123.dkim.amazonses.com",
"verdict": "ok"
}
],
"region": "us-east-1",
"status": "pending",
"tracking": {
"clicks": true,
"opens": true
},
"updatedAt": "2026-11-05T10:00:00.000Z",
"verifiedAt": "2026-11-05T10:00:00.000Z",
"version": 1
}List email suppressions
get
Lists suppressed addresses (masked), newest first — or looks one address up.
Active entries only: a soft bounce drops off when it lapses. Addresses are never returned, only maskedAddress; to ask about one address you know, pass email — the page holds its entry or nothing, matched through a keyed hash. Every send checks this list, before it is accepted and again when it goes out (EMAIL_SUPPRESSED).
Access: an organization key with the email:read scope.
Query parameters
limitintegerHow many items to return.
cursorstringThe
nextCursorof the previous page. Omit for the first page.emailstringLook one address up: the page holds its entry, or nothing. The address is matched through a keyed hash and never stored or returned.
Response 200PublicEmailSuppressionPage
dataPublicEmailSuppression[]RequiredIts fields are listed under Get email suppression
nextCursorstring | nullRequiredPass back as
cursorfor the next page; null on the last.
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/email/suppressions' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"data": [
{
"createdAt": "2026-11-05T10:00:00.000Z",
"detail": "DETAIL",
"expiresAt": "2026-11-05T10:00:00.000Z",
"id": "ID",
"maskedAddress": "a•••@example.com",
"object": "email_suppression",
"reason": "hard_bounce",
"sourceMessageId": "SOURCE_MESSAGE_ID",
"updatedAt": "2026-11-05T10:00:00.000Z"
}
],
"nextCursor": "NEXT_CURSOR"
}Create email suppression
post
Suppresses an address (reason manual, permanent).
For an address the business knows must not be emailed. Adding one already held for a hard bounce or a complaint answers that entry unchanged; a soft bounce becomes a permanent manual entry. note is stored unencrypted and shown in the list, so it must not hold personal data. Audited (email_suppression.added), never with the address.
Access: an organization key with the email:manage scope. Live keys only: a test key is refused with 422 TEST_MODE_UNSUPPORTED.
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Request body
emailstringRequiredat most 320 characters
notestringWhy. Stored unencrypted and shown in the list: never put personal data here.
at most 200 characters
Response 201PublicEmailSuppression
Its fields are listed under Get email suppression.
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.409IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X POST 'https://api.trovacast.com/v1/email/suppressions' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
-d '{
"email": "aarav@example.com",
"note": "Asked by phone to stop all email"
}'{
"createdAt": "2026-11-05T10:00:00.000Z",
"detail": "DETAIL",
"expiresAt": "2026-11-05T10:00:00.000Z",
"id": "ID",
"maskedAddress": "a•••@example.com",
"object": "email_suppression",
"reason": "hard_bounce",
"sourceMessageId": "SOURCE_MESSAGE_ID",
"updatedAt": "2026-11-05T10:00:00.000Z"
}Get email suppression
get
Retrieves one suppression.
Why the address is held — reason, detail and the message that caused it — with the address masked; a soft bounce carries the expiresAt it lapses at.
Access: an organization key with the email:read scope.
Path parameters
suppressionIdstringRequired
Response 200PublicEmailSuppression
Show the 9 fieldsHide the fields
createdAtstring (date-time)Requireddetailstring | nullRequiredThe bounce subtype, the complaint feedback type, or the note you added.
expiresAtstring (date-time) | nullRequiredWhen a soft bounce lapses; null for every other reason.
idstring (uuid)RequiredmaskedAddressstring | nullRequiredThe address masked. Null for entries recorded before masks were kept.
objectstringRequiredOne of
email_suppressionreasonstringRequiredhard_bounce(the mailbox does not exist),soft_bounce(a full mailbox or similar; lapses after 7 days),complaint(the recipient reported your email as spam),manual(added by you).One of
hard_bouncesoft_bouncecomplaintmanualsourceMessageIdstring (uuid) | nullRequiredupdatedAtstring (date-time)Required
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such suppression.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/email/suppressions/SUPPRESSION_ID' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"createdAt": "2026-11-05T10:00:00.000Z",
"detail": "DETAIL",
"expiresAt": "2026-11-05T10:00:00.000Z",
"id": "ID",
"maskedAddress": "a•••@example.com",
"object": "email_suppression",
"reason": "hard_bounce",
"sourceMessageId": "SOURCE_MESSAGE_ID",
"updatedAt": "2026-11-05T10:00:00.000Z"
}Delete email suppression
delete
Removes a suppression, so the address can be emailed again.
The address can be emailed again from the next send. A complaint needs force=true and a reason (409 SUPPRESSION_FORCE_REQUIRED otherwise) — mailing someone who reported you as spam is how a domain gets blocklisted — and lifting it does not reopen the contact’s own email opt-out. Audited, with whether it was forced and the reason.
Access: an organization key with the email:manage scope. Live keys only: a test key is refused with 422 TEST_MODE_UNSUPPORTED.
Path parameters
suppressionIdstringRequired
Query parameters
forcebooleanRequired (
true) to remove acomplaint: the recipient reported your email as spam, and mailing them again is how a domain gets blocklisted.reasonstringWhy you are removing it. Required with
force; recorded in the audit trail.
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Response 200PublicEmailSuppressionDeleted
deletedbooleanRequiredOne of
trueidstring (uuid)RequiredobjectstringRequiredOne of
email_suppression
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such suppression.409SUPPRESSION_FORCE_REQUIRED — a complaint; sendforce=trueand areason. The contact’s own email opt-out stays: removing the suppression does not reopen their consent. IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X DELETE 'https://api.trovacast.com/v1/email/suppressions/SUPPRESSION_ID' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"deleted": true,
"id": "ID",
"object": "email_suppression"
}