AhaSend · Schema

CreateConversationMessageRequest

CreateConversationMessageRequest schema from AhaSend API

EmailTransactional EmailDeveloper ToolsSMTPWebhook

Properties

Name Type Description
from object
to array This parameter can set the `To` header to multiple addresses.
cc array This parameter can set the `CC` header to multiple addresses. Do not include `cc` in the headers array.
bcc array This parameter can set the `To` header to multiple addresses.
reply_to object If provided, the reply-to header in headers array must not be provided
subject string Email subject line
text_content string Plain text content. Required if html_content is empty
html_content string HTML content. Required if text_content is empty
amp_content string AMP HTML content
attachments array File attachments
headers object Custom email headers. `cc` and `reply-to` headers cannot be provided if `reply_to` or `cc` parameters are provided, message-id will be ignored and automatically generated
tags array Tags for categorizing messages
sandbox boolean If true, the message will be sent to the sandbox environment
sandbox_result string The result of the sandbox send
tracking object Tracking settings for the message, overrides default account settings
retention object Retention settings for the message, overrides default account settings
schedule object Schedule for message delivery
View JSON Schema on GitHub

JSON Schema

openapi-v2-create-conversation-message-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ahasend/refs/heads/main/json-schema/openapi-v2-create-conversation-message-request-schema.json",
  "title": "CreateConversationMessageRequest",
  "description": "CreateConversationMessageRequest schema from AhaSend API",
  "type": "object",
  "properties": {
    "from": {
      "$ref": "#/components/schemas/Address"
    },
    "to": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Address"
      },
      "minItems": 1,
      "description": "This parameter can set the `To` header to multiple addresses.",
      "example": [
        {
          "email": "user@example.com",
          "name": "Example Name"
        }
      ]
    },
    "cc": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Address"
      },
      "minItems": 1,
      "description": "This parameter can set the `CC` header to multiple addresses. Do not include `cc` in the headers array.",
      "example": [
        {
          "email": "user@example.com",
          "name": "Example Name"
        }
      ]
    },
    "bcc": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Address"
      },
      "minItems": 1,
      "description": "This parameter can set the `To` header to multiple addresses.",
      "example": [
        {
          "email": "user@example.com",
          "name": "Example Name"
        }
      ]
    },
    "reply_to": {
      "$ref": "#/components/schemas/Address",
      "description": "If provided, the reply-to header in headers array must not be provided"
    },
    "subject": {
      "type": "string",
      "description": "Email subject line",
      "example": "example_value"
    },
    "text_content": {
      "type": "string",
      "description": "Plain text content. Required if html_content is empty",
      "example": "example_value"
    },
    "html_content": {
      "type": "string",
      "description": "HTML content. Required if text_content is empty",
      "example": "example_value"
    },
    "amp_content": {
      "type": "string",
      "description": "AMP HTML content",
      "example": "example_value"
    },
    "attachments": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Attachment"
      },
      "description": "File attachments",
      "example": [
        {
          "base64": true,
          "data": "example_value",
          "content_type": "example_value",
          "content_disposition": "example_value",
          "content_id": "500123"
        }
      ]
    },
    "headers": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Custom email headers. `cc` and `reply-to` headers cannot be provided if `reply_to` or `cc` parameters are provided, message-id will be ignored and automatically generated",
      "example": {}
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Tags for categorizing messages",
      "example": [
        "example_value"
      ]
    },
    "sandbox": {
      "type": "boolean",
      "description": "If true, the message will be sent to the sandbox environment",
      "default": false,
      "example": true
    },
    "sandbox_result": {
      "type": "string",
      "enum": [
        "deliver",
        "bounce",
        "defer",
        "fail",
        "suppress"
      ],
      "description": "The result of the sandbox send",
      "example": "deliver"
    },
    "tracking": {
      "$ref": "#/components/schemas/Tracking",
      "description": "Tracking settings for the message, overrides default account settings"
    },
    "retention": {
      "$ref": "#/components/schemas/Retention",
      "description": "Retention settings for the message, overrides default account settings"
    },
    "schedule": {
      "$ref": "#/components/schemas/MessageSchedule",
      "description": "Schedule for message delivery"
    }
  },
  "required": [
    "from",
    "recipients",
    "subject"
  ],
  "example": {
    "from": {
      "email": "noreply@example.com",
      "name": "Example Corp"
    },
    "to": [
      {
        "email": "user@example.com",
        "name": "John Doe"
      },
      {
        "email": "someone@example.com",
        "name": "Jane Doe"
      }
    ],
    "cc": [
      {
        "email": "hr@example.com",
        "name": "Example Corp HR"
      }
    ],
    "bcc": [
      {
        "email": "bcc@example.com",
        "name": "BCC Recipient"
      }
    ],
    "subject": "Welcome to Example Corp",
    "html_content": "<h1>Dear John and Jane, welcome to Example Corp!</h1>",
    "text_content": "Dear John and Jane, welcome to Example Corp!"
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/openapi-v2-create-conversation-message-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.