Testmail · Schema

Email

A single test email retrieved from a Testmail programmable inbox.

Email TestingDeveloper ToolsAPI TestingGraphQLREST APICI/CDQA AutomationProgrammable Inboxes

Properties

Name Type Description
from string Sender email address.
to string Recipient email address in the testmail namespace (namespace.tag@inbox.testmail.app).
subject string Email subject line.
text string Plain-text body of the email.
html string HTML body of the email.
tag string Tag portion of the recipient address used to route the email to this inbox.
timestamp integer Unix timestamp in milliseconds when the email was received by Testmail.
headers array Raw email headers. Only present when requested via headers=true (JSON API) or selected in GraphQL.
from_parsed object Parsed sender address components. Available in GraphQL API only.
spam_score number SpamAssassin spam score. Scores above 5 are typically flagged as spam. Only present when spam_report=true.
spam_report string Detailed SpamAssassin spam analysis report. Only present when spam_report=true (JSON API).
View JSON Schema on GitHub

JSON Schema

email.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api.testmail.app/schemas/email",
  "title": "Email",
  "description": "A single test email retrieved from a Testmail programmable inbox.",
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "format": "email",
      "description": "Sender email address.",
      "examples": ["sender@example.com"]
    },
    "to": {
      "type": "string",
      "format": "email",
      "description": "Recipient email address in the testmail namespace (namespace.tag@inbox.testmail.app).",
      "examples": ["mynamespace.mytag@inbox.testmail.app"]
    },
    "subject": {
      "type": "string",
      "description": "Email subject line.",
      "examples": ["Please verify your email address"]
    },
    "text": {
      "type": "string",
      "description": "Plain-text body of the email."
    },
    "html": {
      "type": "string",
      "description": "HTML body of the email."
    },
    "tag": {
      "type": "string",
      "description": "Tag portion of the recipient address used to route the email to this inbox.",
      "examples": ["verify-user123"]
    },
    "timestamp": {
      "type": "integer",
      "format": "int64",
      "description": "Unix timestamp in milliseconds when the email was received by Testmail.",
      "examples": [1686000000000]
    },
    "headers": {
      "type": "array",
      "description": "Raw email headers. Only present when requested via headers=true (JSON API) or selected in GraphQL.",
      "items": {
        "$ref": "#/$defs/EmailHeader"
      }
    },
    "from_parsed": {
      "$ref": "#/$defs/ParsedAddress",
      "description": "Parsed sender address components. Available in GraphQL API only."
    },
    "spam_score": {
      "type": "number",
      "description": "SpamAssassin spam score. Scores above 5 are typically flagged as spam. Only present when spam_report=true.",
      "examples": [1.2]
    },
    "spam_report": {
      "type": "string",
      "description": "Detailed SpamAssassin spam analysis report. Only present when spam_report=true (JSON API)."
    }
  },
  "required": ["from", "to", "subject", "tag", "timestamp"],
  "$defs": {
    "EmailHeader": {
      "type": "object",
      "title": "EmailHeader",
      "description": "A single raw email header line.",
      "properties": {
        "line": {
          "type": "string",
          "description": "Full raw header line including name and value.",
          "examples": ["Content-Type: text/html; charset=utf-8"]
        },
        "key": {
          "type": "string",
          "description": "Header name/key in lowercase.",
          "examples": ["content-type"]
        }
      },
      "required": ["line", "key"]
    },
    "ParsedAddress": {
      "type": "object",
      "title": "ParsedAddress",
      "description": "Parsed email address with display name and raw address separated.",
      "properties": {
        "address": {
          "type": "string",
          "format": "email",
          "description": "The raw email address.",
          "examples": ["sender@example.com"]
        },
        "name": {
          "type": "string",
          "description": "Display name associated with the address.",
          "examples": ["John Sender"]
        }
      },
      "required": ["address"]
    }
  }
}

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/email"
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 email required.

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