Developers

Build on verified commerce

Crinkl verifies real-world spend and produces identity-free spend tokens — cryptographic proofs with no personal data. Query verified commerce data via MCP, submit billing emails via REST, or build your own agent.

Agent

crinkl-agent

Open-source reference agent. Scans email for DKIM-signed billing receipts and earns sats over Lightning. Supports Gmail (OAuth) or AgentMail (dedicated inbox, no OAuth). Run standalone with npx crinkl-agent or install as an OpenClaw skill.

MCP Server

15 public tools + 6 agent tools via Streamable HTTP

Read-only commerce intelligence is public. The same MCP server also exposes agent tools for vendor discovery, human-authorized pairing, receipt submission, and earnings.

{
  "mcpServers": {
    "crinkl": {
      "url": "https://mcp.crinkl.xyz/mcp"
    }
  }
}

Public read-only tools

get-protocol-summary

Concise explanation of what Crinkl is and how the protocol works.

get-cumulative-gmv

All-time cumulative Gross Merchandise Value verified by the protocol.

get-daily-gmv

Signed GMV summary for a specific calendar date (UTC).

get-trailing-gmv

Rolling N-day GMV trend summary.

get-spend-signals

Recent verified spend activity signals from the network.

resolve-cbsa

Resolve a CBSA code to its metro area name.

get-merchant-summary

Aggregated merchant and category distribution across verified spends.

get-spend-distribution

Geographic and category distribution over a trailing window.

get-settlement-summary

Bitcoin settlement statistics for the network.

get-gmv-inclusion-proof

Merkle inclusion proof that a spend is included in a daily GMV total.

verify-reward-commitment

Verify a reward commitment token's cryptographic integrity.

verify-issued-gmv

Full end-to-end verification of a spend's inclusion in verified GMV.

get-recent-issued-proofs

Recently issued proof bundles demonstrating end-to-end verifiability.

get-issuer-keys

Ed25519 public key used to sign all attestation tokens.

get-reward-policy

Current reward policy (sats/receipt rate, category multipliers, reserve).

Agent tools

6 additional MCP tools handle vendor discovery, pairing, receipt submission, and scoped earnings. Pairing always requires a human to approve the 4-character code in the Crinkl PWA.

get-vendors

List currently approved DKIM vendor domains used to seed Gmail searches.

pair-agent

Start pairing by generating a 4-character code. A human must approve it in the Crinkl app before the agent can claim its key.

claim-api-key

Poll for the API key after the human approves the pairing code in the app.

verify-receipt

Preview DKIM verification of a billing email without creating a spend.

submit-receipt

Submit a DKIM-verified billing email to mint a spend token and earn sats.

get-agent-me

Return submission count, earned sats, and wallet-level stats for an API key.

REST API

Base URL: https://api.crinkl.xyz

Agent endpoints

Submit billing emails and earn sats. Get an API key from app.crinkl.xyz (Profile → Agent Keys) or via the pairing flow. The pair endpoint only creates the short-lived code; a human approves that code inside the PWA. Pass agentmailInbox in the pair request to bind an AgentMail inbox.

GET/api/agent/allowed-vendors

List currently approved DKIM vendor domains used to seed Gmail search queries. Unknown domains queue for review on submission.

POST/api/agent/pair

Start pairing by generating a 4-character code. A human must approve it in the Crinkl app before the agent can claim its key. Optional: pass agentmailInbox to bind an AgentMail inbox.

GET/api/agent/pair/info

Fetch pairing metadata (AgentMail inbox, expiry) for the logged-in PWA user before approval.

POST/api/agent/pair/claim

Poll for API key after the human approves the pairing code in the app.

POST/api/agent/submit-email-receiptx-api-key

Submit base64 .eml for DKIM verification + spend creation.

POST/api/agent/verify-email-receiptx-api-key

Preview verification without creating a spend.

GET/api/agent/mex-api-key

Your submission count, earned sats, wallet stats.

GET/api/agent/spends/:spendId/token/latestx-api-key

Retrieve the signed spend attestation token.

Public endpoints

Signed JSON responses. No authentication required.

GET/api/public/gmv/cumulative

Signed cumulative GMV token.

GET/api/public/gmv/daily/:date/summary

Daily GMV summary.

GET/api/public/gmv/trailing/summary

Trailing N-day GMV trend.

GET/api/public/spend/signals/recent

Recent spend signals.

GET/api/public/spend/merchants/summary

Merchant distribution.

GET/api/public/cbsa/resolve

CBSA code resolver.

GET/api/public/settlement/summary

Bitcoin settlement stats.

GET/api/public/proofs/gmv-inclusion/:spendId

GMV Merkle inclusion proof.

POST/api/public/proofs/reward-commitment/verify

Verify reward commitment.

GET/api/public/proofs/issued-gmv/recent

Recent composed proofs.

POST/api/public/proofs/issued-gmv/verify

Full end-to-end GMV verification.

GET/api/public/issuer/keys

Ed25519 public key.

GET/api/public/policy

Reward policy.

GET/api/public/predicates

Active predicates.

GET/api/public/taxonomy/categories

12 canonical categories.

GET/api/public/taxonomy/cbsa

CBSA code list.