Developers / Start here / Protocol architecture
Protocol architecture
How Life by IDIA, The Vulture, the Hub's Protocol API and Base fit together, plus environments, retries and size limits.
Paths, headers and fields mirror The IDIA Hub's Protocol API implementation, checked November 7, 2026. Keys and credit rates are issued per organization inside the Hub; source review is not an independent production assessment.
The four layers
1. Edge: Life by IDIA on a contributor's phone collects consented data and creates an Auditable Consent Artifact (ACA) for each consent action. Partner devices and systems send data through The Vulture with a Mesh Node key.
2. Ingestion: The Vulture strips personal details in memory, refers to people only by the IDIA Key they shared with the sending business, and writes a hash of each cleaned batch to an append-only ledger.
3. Validation: the Hub's Protocol API answers buyer requests. It checks consent first (default-deny), charges Synapse Credits only for authorized matches, and issues a Liability Receipt for each match.
4. Settlement: batch hashes are grouped into a Merkle tree and the root is anchored on Base mainnet in an hourly run. Receipts move from ledger_recorded to anchored_l2 once their ACA hash is on-chain.
Life by IDIA (consent + ACA) Mesh nodes / partner systems
│ │
▼ ▼
IDIA Keys (member-shared) The Vulture POST /v1/vulture/ingest
│ sanitize → ledger → Merkle leaf
▼ │
Protocol API POST /v1/utility/validate │
default-deny → charge → Liability Receipt│
│ │
└──────────────┬───────────────┘
▼
Base mainnet (hourly Merkle anchor,
ACA hashes, Liability Receipt NFT)Environments
Production uses https://zxyngqciipcvveigrzqt.supabase.co/functions/v1/protocol-api. Authorized identity matches and committed ingestion work can spend real Synapse Credits; status, balance and proof reads do not charge for data consumption.
Sandbox uses the same URL with X-IDIA-Environment: sandbox on validation, ingestion and all three feature routes. Feature sandbox returns empty JSON packets, including for stream, and never starts a paid session. A valid key, service provisioning, payload validation, rate limits and the validation Idempotency-Key still apply. This is not a separate test account or simulated wallet. The header does not make webhook creation, deletion or test delivery non-mutating.
| Environment | Base URL | Credits | Base anchoring | Status |
|---|---|---|---|---|
| Production | https://zxyngqciipcvveigrzqt.supabase.co/functions/v1/protocol-api | Charged for eligible work | Committed work can anchor | Implemented |
| Sandbox | https://zxyngqciipcvveigrzqt.supabase.co/functions/v1/protocol-api + X-IDIA-Environment: sandbox | No deduction for validate / ingest | No receipts or batch anchor | Implemented |
Idempotency and retries
POST /v1/utility/validate requires an Idempotency-Key header (a UUIDv4 is recommended; max 128 characters). Without it the call is refused with 400 idempotency_key_required.
If a request drops on the network, resend it with the same key. The Hub returns the original stored answer and status, adds the response header Idempotent-Replayed: true, and does not charge again. Use a new key for every new request.
Vulture batches are charged once per committed ledger row, so a retried forward of the same batch is not billed twice.
const key = crypto.randomUUID(); // keep this for every retry of the same request
async function validateWithRetry(body: unknown, tries = 3) {
for (let i = 0; i < tries; i++) {
try {
const res = await fetch("https://zxyngqciipcvveigrzqt.supabase.co/functions/v1/protocol-api/v1/utility/validate", {
method: "POST",
headers: { "x-api-key": (process.env.IDIA_API_KEY ?? ""), "Idempotency-Key": key, "Content-Type": "application/json" },
body: JSON.stringify(body),
});
if (res.status < 500) return res; // replayed answers carry Idempotent-Replayed: true
} catch { /* network drop: retry with the same key */ }
await new Promise((r) => setTimeout(r, 2 ** i * 1000));
}
throw new Error("validate failed after retries");
}Size limits and quotas
The limits below are enforced today. Requests over a limit are refused with 413 and nothing is charged.
The per-key limiter allows 120 requests per fixed 60-second window, not a rolling window. X-RateLimit-Limit is 120, X-RateLimit-Remaining is the remaining count and X-RateLimit-Reset is a Unix timestamp in seconds. Over-limit calls return 429 rate_limit_exceeded and Retry-After in seconds. OPTIONS and missing-key requests bypass the limiter; if its database call fails, the implementation proceeds without rate headers.
| Limit | Value | Status |
|---|---|---|
| Targets per POST /v1/utility/validate | 1,000 | Enforced |
| Records per POST /v1/vulture/ingest | 500 records, 5 MB | Enforced |
| Idempotency-Key length | 128 characters | Enforced |
| Per-key rate limit | 120 requests / fixed 60-second window | Implemented |