/hazmat • v0.1.0
US 49 CFR & EU ADR Ground Hazmat Pre-Flight API
Deterministic US 49 CFR 172.101 HMT, 173.185 lithium battery Wh/gram thresholds, and EU ADR ground hazmat pre-flight validator.
Deterministic CoreZero-PHI / Zero-PCISHA-256 Audit Receipts
Core REST Endpoints
Base path: https://api.contextapi.dev/hazmat (or /api/hazmat via local portal proxy).
| Method | Path | Cost | Capabilities |
|---|---|---|---|
| POST | /v1/hazmat/evaluate | 1 credit | Deterministic US 49 CFR 172.101 HMT, 173.185 lithium battery Wh/gram thresholds, and EU ADR ground hazmat pre-flight validator. |
| GET | /v1/hazmat/audit/{receipt_id} & /v1/hazmat/audit | 1 credit | Retrieve tenant-isolated SHA-256 hazmat_* audit receipts and retention metadata. |
Quickstart & Hosted MCP Integration
Call REST directly or register https://api.contextapi.dev/hazmat/mcp in your AI agent.
Quickstart — Deterministic Pre-Flight Evaluation
curl -X POST "https://api.contextapi.dev/hazmat/v1/hazmat/evaluate" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"identifier": "SAMPLE-001", "jurisdiction": "EU"}'→ {"status": "PASS", "valid": true, "audit_receipt": {"receipt_id": "hazmat_..."}}Hosted Streamable HTTP MCP (1 Tool + Resource)
Register in .cursor/mcp.json (or use npx -y mcp-remote for Claude Desktop):
{
"mcpServers": {
"contextapi-hazmat": {
"url": "https://api.contextapi.dev/hazmat/mcp",
"headers": { "X-API-Key": "${CONTEXTAPI_API_KEY}" }
}
}
}- evaluate_hazmatTool
Lets AI agents run US 49 CFR & EU ADR ground hazmat pre-flight checks and store a tamper-evident SHA-256 audit receipt.
- contexthazmat://vault/statusResource
Exposes live audit vault receipt counts and service readiness for agent pre-flight health checks.