AIIP Node Documentation
Technical documentation for the AI-to-AI Interoperability Protocol node.
Architecture Overview
This node implements the AIIP specification with three operational rails: health_hipaa (healthcare), finance (payments), and builder (public content). Each message is governed by PoHG (Proof of Human Governance) policies and tracked via telemetry.
API Endpoints
GET /api/health
Node health check and database connectivity status.
GET /api/v1/diagnostics/env
Environment variable configuration diagnostics.
GET /api/v1/telemetry/recent
Recent telemetry events across all rails.
POST /api/v1/emr/patients
Create a new patient record with encrypted PHI storage.
POST /api/v1/emr/orders
Create a clinical order for an existing patient.
POST /api/v1/payments/quote
Get a payment quote for IOB-USD stablecoin transfer.
POST /api/v1/payments/send
Execute an IOB-USD payment transaction.
Security & Compliance
- PHI encrypted using AES-256-GCM via vault module
- All clinical events logged to immutable audit ledger
- EMR endpoints protected by API key authentication
- PoHG governance policies enforced on all message routing
- Supabase RLS enabled on all database tables
Environment Variables
NEXT_PUBLIC_SUPABASE_URL - Supabase project URL
NEXT_PUBLIC_SUPABASE_ANON_KEY - Supabase anonymous key
VAULT_ENC_KEY - 32-byte base64 encryption key for PHI vault
EMR_API_KEY - API key for EMR endpoint authentication