Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.trueparser.com/llms.txt

Use this file to discover all available pages before exploring further.

MailKit

Use this contract for mail, message, and archive results. It is designed for inbox, archive, and legal-hold scenarios where teams need message threading, attachment extraction, retention review, eDiscovery, and downstream automation from a consistent public output.

Top-level envelope

{
  "schema_version": "1.0",
  "document": {},
  "warnings": [],
  "content": []
}

Document fields

FieldNotes
source_file, document_nameSource file and display name.
format, format_familyFormat and family marker.
document_id, content_hashStable retrieval and dedupe values when available.
mime_typeMIME type when available.
title, author, subject, companyDocument metadata fields.
created_at, modified_atTimestamps when available.
is_partialPublic completeness flag.
metadataAdditive document metadata.
record_count, folder_count, message_count, item_countSummary counts when available.
optionsEffective public output options.

Universal content/block shape

Every public content record uses the same base shape.
FieldNotes
idStable record id.
typePublic record type.
orderDeterministic order.
pathPublic structural path.
parent_idParent record id.
depthStructural depth.
page_numberPresent but usually null.
source_refProvenance object.
is_inferredInference marker.
warningsRecord-local notes.
content_hashOptional hash.
textSearchable text projection.
attributesMailKit-specific structured data.
Common record types include folder, mailbox, message, embedded_message, attachment, body_part, recipient, appointment, contact, task, distribution_list, participant, tnef_payload, smime_entity, signed_entity, and encrypted_entity.

Warnings

  • warnings is always present.
  • Use plain strings.
  • Keep warnings readable.
  • Do not use warnings instead of structured content.

What clients can rely on

  • Order stays deterministic.
  • Structural paths stay explicit.
  • Provenance stays attached when available.
  • Attachment bytes are not inlined in the public contract.
  • The public contract does not expose internal transport or worker details.

Example

{
  "schema_version": "1.0",
  "document": {
    "format": "eml",
    "format_family": "mime_message",
    "document_name": "sample.eml",
    "source_file": "sample.eml",
    "is_partial": false,
    "metadata": {},
    "record_count": 2,
    "options": {
      "include_attachments": false,
      "include_body_rtf": false
    }
  },
  "warnings": [],
  "content": [
    {
      "id": "msg_0001",
      "type": "message",
      "order": 1,
      "path": ["Inbox"],
      "parent_id": null,
      "depth": 0,
      "page_number": null,
      "source_ref": {
        "message_id": "<abc@example.com>"
      },
      "is_inferred": false,
      "warnings": [],
      "text": "Hello",
      "attributes": {}
    }
  ]
}
Last modified on April 28, 2026