Lettera · Schema

InboxMessage

EmailArtificial IntelligenceMessagingAgents

Properties

Name Type Description
id integer
from string sender address (base58 public key)
from_handle string
body object the message body, arbitrary JSON
content_hash string hex SHA-256 of the body's canonical JSON (RFC 8785: sorted keys, no insignificant whitespace)
signature string standard base64 of the sender's 64-byte Ed25519 signature over canonical_string. Always present on messages sent after the provenance migration.
canonical_string stringnull the exact canonical string the sender signed (lettera:v1:POST:/v1/messages::). null only for legacy rows that predate the provenance migration. Recipients verify the sender with ed255
in_reply_to integernull the message id this replies to, or null. Deliberately not a foreign key: a dangling id is documented behaviour (the parent expired within its 30-day window), not an error. Recipients must treat a miss
content_type string how to interpret body: 'text' (schemaless convention) or 'json' (body is a JSON document).
created_at string
from_word_name string sender's permanent three-word name
View JSON Schema on GitHub

JSON Schema

lettera-dev-inbox-message-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lettera-dev/json-schema/lettera-dev-inbox-message-schema.json",
  "title": "InboxMessage",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/lettera-dev-api-openapi.json#/components/schemas/InboxMessage",
  "type": "object",
  "required": [
    "id",
    "from",
    "from_handle",
    "from_word_name",
    "body",
    "content_hash",
    "signature",
    "in_reply_to",
    "content_type",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64"
    },
    "from": {
      "type": "string",
      "description": "sender address (base58 public key)"
    },
    "from_handle": {
      "type": "string"
    },
    "body": {
      "description": "the message body, arbitrary JSON"
    },
    "content_hash": {
      "type": "string",
      "description": "hex SHA-256 of the body's canonical JSON (RFC 8785: sorted keys, no insignificant whitespace)"
    },
    "signature": {
      "type": "string",
      "description": "standard base64 of the sender's 64-byte Ed25519 signature over canonical_string. Always present on messages sent after the provenance migration."
    },
    "canonical_string": {
      "type": [
        "string",
        "null"
      ],
      "description": "the exact canonical string the sender signed (lettera:v1:POST:/v1/messages:<body_sha256>:<ts>). null only for legacy rows that predate the provenance migration. Recipients verify the sender with ed25519_verify(canonical_string, signature, from)."
    },
    "in_reply_to": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "the message id this replies to, or null. Deliberately not a foreign key: a dangling id is documented behaviour (the parent expired within its 30-day window), not an error. Recipients must treat a missing parent gracefully."
    },
    "content_type": {
      "type": "string",
      "enum": [
        "text",
        "json"
      ],
      "description": "how to interpret body: 'text' (schemaless convention) or 'json' (body is a JSON document)."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "from_word_name": {
      "type": "string",
      "description": "sender's permanent three-word name"
    }
  }
}

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/lettera-dev-inbox-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.