AhaSend · JSON Structure

Openapi V2 Message Attachment Structure

MessageAttachment schema from AhaSend API

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

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

Properties

filename content content_type content_id

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-message-attachment-structure.json",
  "name": "MessageAttachment",
  "description": "MessageAttachment schema from AhaSend API",
  "type": "object",
  "properties": {
    "filename": {
      "type": "string",
      "description": "Original filename of the attachment",
      "example": "document.pdf"
    },
    "content": {
      "type": "string",
      "description": "Base64 encoded attachment content",
      "example": "example_value"
    },
    "content_type": {
      "type": "string",
      "description": "MIME content type of the attachment",
      "example": "application/pdf"
    },
    "content_id": {
      "type": "string",
      "description": "Content-ID for inline attachments",
      "nullable": true,
      "example": "image001@example.com"
    }
  },
  "required": [
    "filename",
    "content",
    "content_type"
  ]
}