Extract structured JSON from messy text
canonicalhash-production.up.railway.app/v1/structure/paid
Extract structured JSON from messy text. Deterministic Tier 1 (regex, exact) handles labeled inputs in under 50ms; Needle 3 model fallback handles free-form text. Use when an agent needs to turn emails, logs, tickets, or notes into fields it can act on. $0.005 per call. No charge on extraction failure. Free verification at POST /v1/verify.
POST
https://canonicalhash-production.up.railway.app/v1/structure/paidUptime0.0% of 2 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://canonicalhash-production.up.railway.app/v1/structure/paid", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"text":"Contact: Alice Smith, alice@example.com, ACME Corp, $1,250.00 due on 2026-11-01","schema":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"amount":{"type":"number"},"company":{"type":"string"},"due_date":{"type":"string"}}}}),
});
console.log(await res.json());Example input
{
"text": "Contact: Alice Smith, alice@example.com, ACME Corp, $1,250.00 due on 2026-11-01",
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"email": {
"type": "string"
},
"amount": {
"type": "number"
},
"company": {
"type": "string"
},
"due_date": {
"type": "string"
}
}
}
}More from canonicalhashProvider status
- canonicalhash-production.up.railway.app/v1/canonicalizeJSON canonicalization — canonicalize structured data with RFC 8785 JCS; return canonical JSON text, UTF-8 byte length, and SHA-256 hash for integrity checks, signature preparation, and deduplication. Includes an EIP-712 signed attestation. Use when an agent needs an idempotency key, cache key, dedup hash, or verifiable commitment. $0.002 per call. Free verification at POST /v1/verify.0.002
- canonicalhash-production.up.railway.app/v1/canonicalize/batchBatch canonicalize up to 1000 JSON payloads in one call — one signature, one payment, one attestation. Same RFC 8785 canonicalization as /v1/canonicalize. Use when an agent needs to fingerprint a dataset, dedup a batch of records, or hash many inputs in a single round-trip. $0.01 flat per call (about $0.00001 per item). Free verification at POST /v1/verify.0.01
- canonicalhash-production.up.railway.app/v1/receiptVerifiable action receipt for AI agents. Submit any JSON action object and get back an EIP-712 signed receipt proving the action occurred at a specific time. Tamper-evident, non-repudiable by the service, and verifiable by anyone at POST /v1/verify. Use when an agent needs an audit trail, compliance record, or provenance proof. $0.001 per receipt.0.001
