SMTP · JSON Structure

Smtp Message Structure

JSON structure documentation for an email message per RFC 5321/5322

Type: object Properties: 0
SMTPEmailInternet StandardsIETFMessagingProtocolsRFC 5321

Smtp Message Structure is a JSON Structure definition published by SMTP.

Meta-schema:

JSON Structure

smtp-message-structure.json Raw ↑
{
  "title": "SMTP Email Message Structure",
  "description": "JSON structure documentation for an email message per RFC 5321/5322",
  "type": "object",
  "fields": [
    {"name": "from", "type": "email", "required": true, "description": "Sender email address (RFC 5322 From / SMTP MAIL FROM)"},
    {"name": "to", "type": "email|array", "required": true, "description": "Primary recipient(s) (RFC 5322 To / SMTP RCPT TO)"},
    {"name": "cc", "type": "email|array", "required": false, "description": "Carbon copy recipients"},
    {"name": "bcc", "type": "email|array", "required": false, "description": "Blind carbon copy (not in message headers)"},
    {"name": "replyTo", "type": "email", "required": false, "description": "Reply-To address"},
    {"name": "subject", "type": "string", "required": true, "description": "Email subject line"},
    {"name": "date", "type": "datetime", "required": false, "description": "Message creation timestamp"},
    {"name": "messageId", "type": "string", "required": false, "description": "Unique message ID in <local@domain> format"},
    {"name": "body", "type": "object", "required": false, "description": "Message body content", "fields": [
      {"name": "text", "type": "string", "required": false, "description": "Plain text body"},
      {"name": "html", "type": "string", "required": false, "description": "HTML body"},
      {"name": "mimeType", "type": "string", "required": false, "description": "MIME content type"}
    ]},
    {"name": "headers", "type": "object", "required": false, "description": "Additional RFC 5322 headers"},
    {"name": "attachments", "type": "array", "required": false, "description": "MIME attachments", "items": {
      "type": "object",
      "fields": [
        {"name": "filename", "type": "string", "required": true},
        {"name": "contentType", "type": "string", "required": true},
        {"name": "contentId", "type": "string", "required": false, "description": "For inline attachments"},
        {"name": "disposition", "type": "enum", "required": false, "values": ["attachment", "inline"]},
        {"name": "size", "type": "integer", "required": false, "description": "Size in bytes"}
      ]
    }}
  ]
}

Work with this as data

Every JSON Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure 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 Structure
curl "https://apis.io/api/v1/json-structures/smtp-message-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?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.