Email Suppressions

Suppress an address

Changed on

Adds an address to the suppression list so no future send reaches it. Adding an address that is already suppressed returns the existing entry unchanged, rather than rewriting why it was suppressed.

reason accepts manual (default) and unsubscribed. bounced and complained are set only by the provider's delivery events, so the record of why an address bounced stays truthful.

post/email/suppressions

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

EmailSuppressionRequest required
address, string required
reason, 'manual' | 'unsubscribed'

Why the address is suppressed. Defaults to manual. Bounces and complaints are recorded automatically from delivery events and cannot be set here.

metadata, object

Response

Address suppressed

EmailSuppression required
object, string required
id, string required
address, string required
reason, 'bounced' | 'complained' | 'unsubscribed' | 'manual' required
email_message, string nullable required
metadata, object required
created_at, string date-time required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision