AhaSend · JSON Structure

Openapi V2 Create Suppression Request Structure

CreateSuppressionRequest schema from AhaSend API

Type: object Properties: 4 Required: 2
EmailTransactional EmailDeveloper ToolsSMTPWebhooks

CreateSuppressionRequest is a JSON Structure definition published by AhaSend, describing 4 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

email domain reason expires_at

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ahasend/refs/heads/main/json-structure/openapi-v2-create-suppression-request-structure.json",
  "name": "CreateSuppressionRequest",
  "description": "CreateSuppressionRequest schema from AhaSend API",
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "description": "Email address to suppress",
      "example": "user@example.com"
    },
    "domain": {
      "type": "string",
      "description": "Domain for which to suppress the email",
      "example": "mail.example.com"
    },
    "reason": {
      "type": "string",
      "maxLength": 255,
      "description": "Reason for suppression",
      "example": "example_value"
    },
    "expires_at": {
      "type": "datetime",
      "description": "When the suppression expires (RFC3339 format)",
      "example": "2025-03-15T14:30:00Z"
    }
  },
  "required": [
    "email",
    "expires_at"
  ],
  "example": {
    "email": "user@example.com",
    "domain": "example.com",
    "reason": "User requested removal",
    "expires_at": "2024-12-25T10:30:00Z"
  }
}