Skip to main content
POST
AhaSend Go SDK

Authorizations

Authorization
string
header
required

API key for authentication

Headers

Idempotency-Key
string

Optional idempotency key for safe request retries. Must be a unique string for each logical request. Requests with the same key will return the same response. Keys for non-secret responses expire after 24 hours. API-key create responses include a one-time secret_key, so their encrypted replay responses expire after 5 minutes.

Maximum string length: 255

Path Parameters

account_id
string<uuid>
required

Account ID

Body

application/json
email
string<email>
required

Email address to suppress

expires_at
string<date-time>
required

When the suppression expires (RFC3339 format)

domain
string<hostname>

Domain for which to suppress the email

reason
string

Reason for suppression

Maximum string length: 255

Response

Suppression created successfully

object
enum<string>
required

Object type identifier

Available options:
list
data
object[]
required

Array of suppressions