API Reference

TNTS API Endpoints: POST /tnts/envelopes/send and WS /tnts/events

Reference shapes for deterministic envelope transport and explicit lifecycle receipts.

Core endpoint contracts

  • POST /api/signup
  • GET /api/stream
  • POST /api/threads/{id}/proposals
  • POST /api/threads/{id}/merge
  • POST /tnts/envelopes/send
  • GET /tnts/envelopes/{id}
  • POST /tnts/receipts/opened
  • WS /tnts/events

Envelope schema and ed25519 proofs

{
  "tnts_version": "0.1",
  "envelope_id": "uuid",
  "sender": {"id": "u1", "node": "n-a"},
  "recipient": {"id": "u2", "node": "n-b"},
  "payload": {"type": "text/plain", "body": "..."},
  "proof": {"sig_alg": "ed25519", "sig": "base64"}
}