# IMAP REFERENCES Message Thread Forest Reconstructor

> IMAP REFERENCES Message Thread Forest Reconstructor is a paid API for AI agents from detect.halowerk.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-04).

Reconstructs an IMAP message threading forest using REFERENCES headers and subject merging, then validates the result against a canonical SHA256 claim

## Facts

- Endpoint: POST https://detect.halowerk.com/v1/F-TD2000-DOCUMENTS-08/imap5256-references-dummy-pruning-subject-merge-thread-forest?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/imap-references-message-thread-forest-reconstructor-716a447c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lUgeuehsEsOwztRxhCAC-

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability imap-references-message-thread-forest-reconstructor-716a447c -d '<json body>'
```

Example prompt: Take these 12 IMAP messages with their message-id, references headers, base subjects, and sent timestamps, reconstruct the full thread forest using subject-merge pruning, and verify the result matches the SHA256 claim I have: 'a3f9...d41b'.

## When to prefer this

Use this endpoint when you need to both reconstruct IMAP threading forests (using REFERENCES + subject-merge) and cryptographically verify the result against a pre-computed SHA256 claim — particularly for archival integrity checks, mailbox auditing, or agent workflows that must confirm deterministic threading outputs match expected digests.

## Known failure modes

- Mismatched SHA256 claim returns a verification failure response
- Malformed or missing message-id fields cause threading gaps or errors
- Messages array exceeding 64 items is rejected by schema validation
- References entries exceeding 32 items per message are truncated or rejected
- Invalid sent_time outside allowed range causes input rejection
- Null message-id entries may prevent proper thread linkage
- Circular or inconsistent references chains may produce unexpected forest shapes

## How this service works

IMAP REFERENCES message threading forest. Reconstruct the fully typed result and compare its complete canonical SHA256 claim.

## Output

Returns the reconstructed IMAP thread forest (grouped conversation trees built from REFERENCES and base-subject merging) along with a verification of whether the computed canonical SHA256 digest matches the supplied claim hash.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "artifact": {
   "type": "object",
   "required": [
    "imapThread"
   ],
   "properties": {
    "imapThread": {
     "type": "object",
     "required": [
      "data",
      "claim"
     ],
     "properties": {
      "data": {
       "type": "object",
       "required": [
        "messages"
       ],
       "properties": {
        "messages": {
         "type": "array",
         "items": {
          "type": "object",
          "required": [
           "sequence",
           "uid",
           "message_id",
           "references",
           "sent_time",
           "base_subject",
           "reply_or_forward"
          ],
          "properties": {
           "uid": {
            "type": "integer",
            "maximum": 4294967295,
            "minimum": 1
           },
           "sequence": {
            "type": "integer",
            "maximum": 1000000,
            "minimum": 1
           },
           "sent_time": {
            "type": "integer",
            "maximum": 1000000000000,
            "minimum": -1000000000000
           },
           "message_id": {
            "anyOf": [
             {
              "type": "null"
             },
             {
              "type": "string",
              "maxLength": 128,
              "minLength": 3
             }
            ]
           },
           "references": {
            "type": "array",
            "items": {
             "type": "string",
             "maxLength": 128,
             "minLength": 3
            },
            "maxItems": 32,
            "minItems": 0
           },
           "base_subject": {
            "type": "string",
            "maxLength": 256,
            "minLength": 0
           },
           "reply_or_forward": {
            "type": "boolean"
           }
          },
          "additionalProperties": false
         },
         "maxItems": 64,
         "minItems": 0
        }
       },
       "additionalProperties": false
      },
      "claim": {
       "anyOf": [
        {
         "type": "null"
        },
        {
         "type": "string",
         "pattern": "^[0-9a-f]{64}$",
         "maxLength": 64,
         "minLength": 64
        }
       ]
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/imap-references-message-thread-forest-reconstructor-716a447c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from detect.halowerk.com](https://www.zero.xyz/host/detect.halowerk.com/llms.txt)
