Global Relay · Schema

Global Relay Email

An email message archived in the Global Relay Archive, including headers, body content, recipients, and attachment references.

ArchivingComplianceData RetentionEmail SecurityRegulatory Compliance

Properties

Name Type Description
messageId string Unique message identifier
from object Sender of the email
to array List of To recipients
cc array List of CC recipients
bcc array List of BCC recipients
subject string Email subject line
sentDate string Date and time the email was sent
receivedDate string Date and time the email was received
body object Email body content
headers array Email headers
attachmentIds array IDs of attachments uploaded via /files endpoint
View JSON Schema on GitHub

JSON Schema

global-relay-email.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "global-relay-email.json",
  "title": "Global Relay Email",
  "description": "An email message archived in the Global Relay Archive, including headers, body content, recipients, and attachment references.",
  "type": "object",
  "required": [
    "from",
    "to",
    "subject",
    "sentDate"
  ],
  "properties": {
    "messageId": {
      "type": "string",
      "description": "Unique message identifier"
    },
    "from": {
      "$ref": "global-relay-email-address.json",
      "description": "Sender of the email"
    },
    "to": {
      "type": "array",
      "items": {
        "$ref": "global-relay-email-address.json"
      },
      "description": "List of To recipients"
    },
    "cc": {
      "type": "array",
      "items": {
        "$ref": "global-relay-email-address.json"
      },
      "description": "List of CC recipients"
    },
    "bcc": {
      "type": "array",
      "items": {
        "$ref": "global-relay-email-address.json"
      },
      "description": "List of BCC recipients"
    },
    "subject": {
      "type": "string",
      "description": "Email subject line"
    },
    "sentDate": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time the email was sent"
    },
    "receivedDate": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time the email was received"
    },
    "body": {
      "type": "object",
      "description": "Email body content",
      "properties": {
        "contentType": {
          "type": "string",
          "description": "MIME type of the body content",
          "enum": [
            "text/plain",
            "text/html"
          ]
        },
        "content": {
          "type": "string",
          "description": "Body content"
        }
      }
    },
    "headers": {
      "type": "array",
      "description": "Email headers",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Header name"
          },
          "value": {
            "type": "string",
            "description": "Header value"
          }
        }
      }
    },
    "attachmentIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "IDs of attachments uploaded via /files endpoint"
    }
  }
}

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/global-relay-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 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.