code402 / tools / pod-verify-delivery
$0.000999 per call · 20 free calls/day · no signup · pay with card credits or a signed USDC voucher (x402)
Physical IoT and off-chain service delivery verification using integer E7 point-in-polygon geometry and hardware sensor threshold validation (POD-1). Prevents floating-point coordinate drift without custodial escrow.
curl -X POST https://code402.dev/v1/tools/pod-verify-delivery/call \
-H "content-type: application/json" \
-d '{"mandate":{"mandate_id":"mandate-99","order_ref":"ord-99","geofence":{"type":"polygon_e7","ring":[[377749000,-1224194000],[377759000,-1224194000],[377759000,-1224094000],[377749000,-1224094000]]},"window":{"not_before":1700000000,"not_after":1700003600},"max_accuracy_m":50,"required_signers":["device"]},"attestation":{"mandate_id":"mandate-99","device_id":"DEV-1","device_pubkey":"0x01","scheme":1,"geo":{"lat_e7":377750000,"lon_e7":-122415000,"accuracy_m":10},"ts":1700001000,"counter":1,"signatures":{"device":"0x01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"}},"last_seen_counter":0}'
No key needed for the free tier. When the free quota is used up, the API replies HTTP 402 with the exact price — agents sign the x402 voucher and retry; humans buy card credits. Every paid response carries a signed receipt you can verify offline.
| Field | Type | Meaning |
|---|---|---|
mandate (required) | object | Delivery mandate with geofence polygon (lat_e7/lon_e7) and time window |
attestation (required) | object | Signed IoT device delivery attestation with coordinates, counter, and signatures |
last_seen_counter | number | Anti-replay counter from previous delivery attestations |
Top-level fields: ok, standard, mandate_id, verdict, verified, details, attestation_receipt_digest. Paid responses also carry a signed XDR-1 receipt.
Machine-readable catalog: llms-full.txt · MCP manifest · OpenAPI. Operated by JUANA LIMITED (UK Co. No. 14043409). Non-custodial: USDC settles payer→seller directly on Base.