Anjal · Schema

Message

EmailArtificial IntelligenceAgentsSoftware-as-a-ServiceEmail API

Properties

Name Type Description
id string
direction string
from string
to string
subject string
plainBody stringnull
htmlBody stringnull
isRead boolean
threadId stringnull
messageIdHeader stringnull
inReplyTo stringnull
receivedAt string
labels array Lowercase labels on this message.
isSpam boolean Flagged by the spam filter. Spam is left out of lists unless `includeSpam=true`.
deliveryStatus stringnull Outbound only. `delivered` means the recipient's mail server accepted it (not a guarantee of inbox placement). Null until known.
deliveredAt stringnull When the recipient's mail server accepted the message (outbound only).
firstOpenedAt stringnull Time of the first open (outbound sends with `trackOpens: true` only). NULL until the first open. Opens are a hint, not proof: Apple Mail Privacy Protection fetches images on delivery, and clients that
lastOpenedAt stringnull Most recent open event. Updates on every open.
openCount integer Total opens. Subject to the same caveats as the timestamps.
firstClickedAt stringnull Timestamp of the first recipient link-click. Reliable signal of engagement (unlike opens, click events are not Apple-MPP-poisoned). NULL until the first click.
lastClickedAt stringnull
clickCount integer
attachments array
View JSON Schema on GitHub

JSON Schema

anjal-app-message-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anjal-app/json-schema/anjal-app-message-schema.json",
  "title": "Message",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anjal-app-openapi.yaml#/components/schemas/Message",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "direction": {
      "type": "string",
      "enum": [
        "inbound",
        "outbound"
      ]
    },
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "subject": {
      "type": "string"
    },
    "plainBody": {
      "type": [
        "string",
        "null"
      ]
    },
    "htmlBody": {
      "type": [
        "string",
        "null"
      ]
    },
    "isRead": {
      "type": "boolean"
    },
    "threadId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "messageIdHeader": {
      "type": [
        "string",
        "null"
      ]
    },
    "inReplyTo": {
      "type": [
        "string",
        "null"
      ]
    },
    "receivedAt": {
      "type": "string",
      "format": "date-time"
    },
    "labels": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Lowercase labels on this message."
    },
    "isSpam": {
      "type": "boolean",
      "description": "Flagged by the spam filter. Spam is left out of lists unless `includeSpam=true`."
    },
    "deliveryStatus": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "delivered",
        "bounced",
        "complained",
        "rejected",
        null
      ],
      "description": "Outbound only. `delivered` means the recipient's mail server\naccepted it (not a guarantee of inbox placement). Null until known.\n"
    },
    "deliveredAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the recipient's mail server accepted the message (outbound only)."
    },
    "firstOpenedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Time of the first open (outbound sends with `trackOpens: true`\nonly). NULL until the first open. Opens are a hint, not proof:\nApple Mail Privacy Protection fetches images on delivery, and\nclients that block images never report an open.\n"
    },
    "lastOpenedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Most recent open event. Updates on every open."
    },
    "openCount": {
      "type": "integer",
      "default": 0,
      "description": "Total opens. Subject to the same caveats as the timestamps."
    },
    "firstClickedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Timestamp of the first recipient link-click. Reliable signal of\nengagement (unlike opens, click events are not Apple-MPP-poisoned).\nNULL until the first click.\n"
    },
    "lastClickedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "clickCount": {
      "type": "integer",
      "default": 0
    },
    "attachments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AttachmentMeta"
      }
    }
  },
  "$defs": {
    "AttachmentMeta": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "filename": {
          "type": "string"
        },
        "contentType": {
          "type": "string"
        },
        "sizeBytes": {
          "type": "integer"
        },
        "inline": {
          "type": "boolean",
          "description": "Present and true when `htmlBody` embedded this attachment as an inline\nimage and `?inlineImages=refs` replaced it with `attachment:<id>`.\n"
        }
      }
    }
  }
}

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/anjal-app-message"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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