/battery • v0.1.0
EU Battery & WEEE Levy + Digital Battery Passport API
Deterministic EU Battery Reg (EU) 2023/1542 Digital Battery Passport (DPP) schema validator and WEEE/Battery PRO levy calculator.
Deterministic CoreZero-PHI / Zero-PCISHA-256 Audit Receipts
Core REST Endpoints
Base path: https://api.contextapi.dev/battery (or /api/battery via local portal proxy).
| Method | Path | Cost | Capabilities |
|---|---|---|---|
| POST | /v1/battery/evaluate | 1 credit | Deterministic EU Battery Reg (EU) 2023/1542 Digital Battery Passport (DPP) schema validator and WEEE/Battery PRO levy calculator. |
| GET | /v1/battery/audit/{receipt_id} & /v1/battery/audit | 1 credit | Retrieve tenant-isolated SHA-256 batter_* audit receipts and retention metadata. |
Quickstart & Hosted MCP Integration
Call REST directly or register https://api.contextapi.dev/battery/mcp in your AI agent.
Quickstart — Deterministic Pre-Flight Evaluation
curl -X POST "https://api.contextapi.dev/battery/v1/battery/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": "batter_..."}}Hosted Streamable HTTP MCP (1 Tool + Resource)
Register in .cursor/mcp.json (or use npx -y mcp-remote for Claude Desktop):
{
"mcpServers": {
"contextapi-battery": {
"url": "https://api.contextapi.dev/battery/mcp",
"headers": { "X-API-Key": "${CONTEXTAPI_API_KEY}" }
}
}
}- evaluate_batteryTool
Lets AI agents validate EU Battery Regulation & WEEE levy rules and store a tamper-evident SHA-256 audit receipt.
- contextbattery://vault/statusResource
Exposes live audit vault receipt counts and service readiness for agent pre-flight health checks.