AhaSend · JSON Structure

Api Content Structure

Content schema from AhaSend API

Type: object Properties: 6 Required: 1
EmailTransactional EmailDeveloper ToolsSMTPWebhooks

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

Properties

subject text_body html_body attachments reply_to headers

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/api-content-structure.json",
  "name": "Content",
  "description": "Content schema from AhaSend API",
  "type": "object",
  "properties": {
    "subject": {
      "type": "string",
      "examples": [
        "Sample subject"
      ],
      "example": "example_value"
    },
    "text_body": {
      "type": "string",
      "description": "Plaintext body of the email",
      "examples": [
        "Sample email body"
      ],
      "example": "example_value"
    },
    "html_body": {
      "type": "string",
      "description": "HTML body of the email",
      "examples": [
        "<p>Sample email body</p>"
      ],
      "example": "example_value"
    },
    "attachments": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Attachment"
      },
      "example": [
        {
          "data": "example_value",
          "base64": true,
          "content_type": "example_value",
          "content_id": "500123",
          "file_name": "Example Name"
        }
      ]
    },
    "reply_to": {
      "$ref": "#/components/schemas/Contact"
    },
    "headers": {
      "type": "object",
      "description": "Specify arbitary headers.",
      "additionalProperties": {
        "type": "string"
      },
      "example": {
        "X-My-Mail-ID": "12345",
        "X-Comment-ID": "456789"
      }
    }
  },
  "required": [
    "subject"
  ]
}