Letta · Schema

MessageSchema

Artificial IntelligenceAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen-Source

Properties

Name Type Description
created_at string
group_id object
model object
name object
role string
content array
tool_call_id object
tool_calls array
tool_returns array
updated_at string
View JSON Schema on GitHub

JSON Schema

letta-letta-serialize-schemas-pydantic-agent-schema-messageschema-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/letta__serialize_schemas__pydantic_agent_schema__MessageSchema",
  "title": "MessageSchema",
  "properties": {
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "group_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Group Id"
    },
    "model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "role": {
      "type": "string",
      "title": "Role"
    },
    "content": {
      "items": {
        "$ref": "#/components/schemas/LettaMessageContentUnion"
      },
      "type": "array",
      "title": "Content"
    },
    "tool_call_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tool Call Id"
    },
    "tool_calls": {
      "items": {},
      "type": "array",
      "title": "Tool Calls"
    },
    "tool_returns": {
      "items": {},
      "type": "array",
      "title": "Tool Returns"
    },
    "updated_at": {
      "type": "string",
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "created_at",
    "group_id",
    "model",
    "name",
    "role",
    "content",
    "tool_call_id",
    "tool_calls",
    "tool_returns",
    "updated_at"
  ]
}

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/letta-letta-serialize-schemas-pydantic-agent-schema-messageschema"
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.