send0 · Schema

ThreadWithMessages

EmailArtificial IntelligenceOpen SourceCommunications

Properties

Name Type Description
object string
id string
inbox_id string
subject string
participants array
message_count integer
labels array
latest_message object The newest message, for list previews
last_message_at string
created_at string
messages array
View JSON Schema on GitHub

JSON Schema

send0-dev-thread-with-messages-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ThreadWithMessages",
  "title": "ThreadWithMessages",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/send0-dev-openapi.json#/components/schemas/ThreadWithMessages",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "thread"
    },
    "id": {
      "type": "string"
    },
    "inbox_id": {
      "type": "string"
    },
    "subject": {
      "type": "string"
    },
    "participants": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "message_count": {
      "type": "integer"
    },
    "labels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "latest_message": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "direction": {
              "type": "string",
              "enum": [
                "in",
                "out"
              ]
            },
            "from": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Mailbox"
                },
                {
                  "type": "null"
                }
              ]
            },
            "snippet": {
              "type": "string",
              "description": "Start of the new text (quotes and signatures removed), whitespace collapsed"
            }
          },
          "required": [
            "id",
            "direction",
            "from",
            "snippet"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "The newest message, for list previews"
    },
    "last_message_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "messages": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Message"
      }
    }
  },
  "required": [
    "object",
    "id",
    "inbox_id",
    "subject",
    "participants",
    "message_count",
    "labels",
    "latest_message",
    "last_message_at",
    "created_at",
    "messages"
  ],
  "additionalProperties": false,
  "$defs": {
    "Attachment": {
      "$id": "#/components/schemas/Attachment",
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "filename": {
          "type": [
            "string",
            "null"
          ]
        },
        "content_type": {
          "type": "string"
        },
        "size": {
          "type": "integer"
        },
        "inline": {
          "type": "boolean"
        },
        "content_id": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "filename",
        "content_type",
        "size",
        "inline",
        "content_id"
      ],
      "additionalProperties": false
    },
    "Mailbox": {
      "$id": "#/components/schemas/Mailbox",
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "email"
      ],
      "additionalProperties": false
    },
    "Message": {
      "$id": "#/components/schemas/Message",
      "type": "object",
      "properties": {
        "object": {
          "type": "string",
          "const": "message"
        },
        "id": {
          "type": "string"
        },
        "inbox_id": {
          "type": "string"
        },
        "thread_id": {
          "type": "string"
        },
        "direction": {
          "type": "string",
          "enum": [
            "in",
            "out"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "received",
            "queued",
            "sent",
            "delivered",
            "bounced",
            "complained",
            "failed"
          ]
        },
        "expired": {
          "type": "boolean",
          "description": "true once the inbox's retention period has passed: text, html, extracted_text, extracted and attachments are gone (null or empty) and the raw message can't be downloaded. Addresses, subject, status and timestamps remain until the message is deleted, 35 days after it was created."
        },
        "rfc_message_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "in_reply_to": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "references": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "from": {
          "anyOf": [
            {
              "$ref": "#/$defs/Mailbox"
            },
            {
              "type": "null"
            }
          ]
        },
        "to": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Mailbox"
          }
        },
        "cc": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Mailbox"
          }
        },
        "reply_to": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Mailbox"
          }
        },
        "subject": {
          "type": "string"
        },
        "text": {
          "type": [
            "string",
            "null"
          ]
        },
        "html": {
          "description": "Only on single-message reads and threads with include_html=true",
          "type": [
            "string",
            "null"
          ]
        },
        "extracted_text": {
          "description": "New text only: quoted history, forwards and signatures removed",
          "type": [
            "string",
            "null"
          ]
        },
        "extracted": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "otp": {
                  "description": "Most likely one-time code",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "links": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "action_link": {
                  "description": "Most likely verify / sign-in / reset link",
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "otp",
                "links",
                "action_link"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "auth": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "spf": {
                  "type": "string"
                },
                "dkim": {
                  "type": "string"
                },
                "dmarc": {
                  "type": "string"
                }
              },
              "required": [
                "spf",
                "dkim",
                "dmarc"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "safety": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "prompt_injection": {
                  "type": "string",
                  "enum": [
                    "none",
                    "suspected",
                    "likely"
                  ]
                },
                "reasons": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "prompt_injection",
                "reasons"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "tag": {
          "description": "Plus-address tag, e.g. task42 for bot+task42@",
          "type": [
            "string",
            "null"
          ]
        },
        "attachments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Attachment"
          }
        },
        "size": {
          "type": "integer"
        },
        "sent_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "received_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "object",
        "id",
        "inbox_id",
        "thread_id",
        "direction",
        "status",
        "expired",
        "rfc_message_id",
        "in_reply_to",
        "references",
        "from",
        "to",
        "cc",
        "reply_to",
        "subject",
        "text",
        "extracted_text",
        "extracted",
        "auth",
        "safety",
        "tag",
        "attachments",
        "size",
        "sent_at",
        "received_at",
        "created_at"
      ],
      "additionalProperties": false
    }
  }
}

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/send0-dev-thread-with-messages"
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.