B2B API · Developers
API Reference
Integrate immutable blockchain anchoring into your product with a single POST request. No Solana wallet required — DataMirror handles the transaction on your behalf.
Authentication
All API requests require an x-api-key header. Contact api@datamirror.app to get a key. Each client gets a unique key and a unique memo namespace.
Request header
x-api-key: YOUR_API_KEY
POST/api/anchor
Anchors a certificate or data fingerprint on Solana. DataMirror signs and broadcasts the transaction using a managed keypair — no Solana knowledge required on your end.
Request body
| Field | Type | Description |
|---|
certId | string | Your certificate or record identifier (any string) |
hash | string | SHA-256 hex digest of the data to anchor (64 characters) |
Response
| Field | Type | Description |
|---|
tx | string | Solana transaction signature (base58) |
Verification URL: https://datamirror.app/verify/{tx}
On-chain memo format
Solana Memo Program · namespaced per client
ClariMac:{certId}:{hash64}Your API key determines the prefix. Custom namespaces available — contact us.
Full example
curl
curl -X POST https://datamirror.app/api/anchor \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"certId": "CERT-2026-001",
"hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}'Response 200
{
"tx": "4dos5Vxk3EnTN18zmNf4XGCufysuzHuqGbM13iPW1c7gX..."
}Error codes
| Status | Meaning |
|---|
200 | Anchored successfully — tx returned |
400 | Invalid JSON, missing certId, or invalid hash format (must be 64-char hex SHA-256) |
401 | Missing or invalid x-api-key |
500 | Solana transaction failed (network issue or keypair misconfiguration) |
Health check
GET/api/health
No authentication required. Returns { "status": "ok" } when the API is up.
Verification
Once anchored, any browser can verify the proof at:
https://datamirror.app/verify/{tx}
The page resolves the Solana transaction, parses the Memo, and displays the certificate ID, hash, timestamp, and source — with a "View certificate" CTA linking back to your platform.
Pricing
Self-Serve
Free
No account needed
✓Unlimited proofs
✓Wallet required
✓~$0.001/proof in SOL
✓Shareable verify link
✓PDF certificate
B2B API
Free beta
Paid plans coming soon
✓No wallet required
✓x-api-key auth
✓Webhook on TX confirmed
✓Custom memo namespace
✓Priority support
Ready to integrate?
Send us your project name and use case — we'll provision an API key within 24h.
Request API key →