# Skia > Documentation for the Skia Agentic Settlement API — commit/reveal swaps, sponsored settlement, and the /v1 invoice ledger. - [Introduction](https://docs.skia.money/introduction.md): Skia is a single-market-maker stablecoin OTC settlement desk: commit/reveal swaps on a verified AirSwap-derived rail, sponsored smart-account settlement, and a fold-based invoice ledger for obligations. - [Quickstart](https://docs.skia.money/quickstart.md): Create a wallet, fund it from the faucet, quote, commit, reveal — the five-minute golden path on the Skia settlement API. - [Architecture](https://docs.skia.money/architecture.md): How the Skia repo maps onto docs.skia.money, sdk.skia.money, api.skia.money and mcp.skia.money — the surfaces, the runtime, and the developer journey. - [Invoices](https://docs.skia.money/concepts/invoices.md): The invoice model: EIP-712 claims that resolve into Orders, the nine-kind event taxonomy, status as a pure fold, and the money law — integer math, non-compounding late fees, superseding disputes. - [Settlements](https://docs.skia.money/concepts/settlements.md): Commit/reveal on the SwapERC20 rail, the payment attempt machine, the Order template law, idempotency and nonce discipline — how invoice payments actually settle. - [Sponsorships](https://docs.skia.money/concepts/sponsorships.md): Sponsored settlement on Skia: ERC-4337 smart accounts, the paymaster and policy contracts, session keys, and why the swap-sponsored template answers 501 in Phase 1. - [Attestations](https://docs.skia.money/concepts/attestations.md): The capital registry: how restrictions are encoded but never enforced, the R-4 issuance gate, counterparty jurisdiction declarations, and the loud-degradation fallback contract. - [TypeScript SDK](https://docs.skia.money/sdk/typescript.md): @skia-money/sdk — the hardened TypeScript client for the Skia settlement API: one-shot swaps, edge payments with PaymentGuard, crash recovery, and an MCP client. - [Python SDK](https://docs.skia.money/sdk/python.md): Status and contract for the planned Python SDK — same wire, same error envelope, same disclosure rules. - [MCP Server](https://docs.skia.money/mcp-server.md): Drive Skia from Claude, Cursor, or any MCP client — JSON-RPC 2.0 over Streamable HTTP, 16 tools including the five-tool invoice family. - [Invoice Lifecycle](https://docs.skia.money/examples/invoice-lifecycle.md): The full obligation lifecycle in raw REST: issue, acknowledge, dispute, credit note, partial payment intent, bind, commit, reveal, and the fold reads. - [Agent Session (MCP)](https://docs.skia.money/examples/agent-session.md): A complete MCP JSON-RPC session against Skia: initialize, tools/list, issue_invoice, acknowledge_invoice, pay_invoice, get_receivable. - [API Reference — Overview](https://docs.skia.money/api-reference/overview.md): The two surfaces, auth posture, the error envelope, rate limits, phase gating, and versioning rules for the Skia Agentic Settlement API. - [Layer topology, supported chains/tokens, builder attestation](https://docs.skia.money/api-reference/discovery/layer-topology-supported-chainstokens-builder-attestation.md): Public discovery surface. supportedChains carries the CONTRACT-5/C10 honesty fields (status + the REAL testnet settlementChainIdNumeric); supportedTokens is the ACCEPTED symbol set (tier facts live in info.x-token-tiers and the registry). signedBuilderMessage is the builder attestation — the SAME me… - [Get a free quote](https://docs.skia.money/api-reference/core-settlement/get-a-free-quote.md): No auth, no payment. Monetized only at settlement spread. Response echoes the request and includes the exact uint256 signer/sender settlement fields so the caller can construct /api/commit without holding request state. Phase-1 trigger set for PHASE_GATED is empty here (all Phase-1 quotes are SWAP-c… - [Commit phase — binds an intent to a taker under an expiry window](https://docs.skia.money/api-reference/core-settlement/commit-phase-—-binds-an-intent-to-a-taker-under-an-expiry-window.md): NO CONFIDENTIALITY (R4-10): the commit body carries all nine preimage fields in plaintext — the withheld pieces are the makerSignature, the AirSwap order nonce, and protocolFee. What the commit buys is equivocation-binding: the intent is bound to the taker under an expiry window, and the SERVER's st… - [Reveal phase — triggers SwapERC20 settlement](https://docs.skia.money/api-reference/core-settlement/reveal-phase-—-triggers-swaperc20-settlement.md): THE state-creating step. Once-only is a SERVER invariant — transactional claim-before-execute (SV-2, LANDED 2026-11-18: a guarded updateMany claims committed→settling before ANY settlement executes; losers get ALREADY_REVEALED, failed settlements release the claim, crashed claims are reclaimable aft… - [Commitment-hash parity helper](https://docs.skia.money/api-reference/core-settlement/commitment-hash-parity-helper.md): Computes the commitmentHash exactly as /api/commit will verify it. Both expiry formats (ISO date-time and unix-seconds string) canonicalize to uint256 seconds — parity proven live 32/32 (C9); the SDK sends exactly one format (unix-seconds string, canonical). - [Edge paid quote (pay-and-resubmit lane)](https://docs.skia.money/api-reference/monetization/edge-paid-quote-pay-and-resubmit-lane.md): The Edge-layer monetized quote. Without a consumable payment the server answers 402 with an X-Payment-Request header carrying a SkiaPaymentRequest (legacy wire name `x402Version`; NOT the x402 standard — a custom pay-and-resubmit flow, C3 DELIBERATE-NO for Phase 1). Payment settles out of band; veri… - [Tier status for an agent (self-scoped)](https://docs.skia.money/api-reference/monetization/tier-status-for-an-agent-self-scoped.md) - [Tier change audit history (self-scoped)](https://docs.skia.money/api-reference/monetization/tier-change-audit-history-self-scoped.md) - [24h volume leaderboard](https://docs.skia.money/api-reference/monetization/24h-volume-leaderboard.md) - [Claim rebate (FEATURE-FLAGGED OFF)](https://docs.skia.money/api-reference/monetization/claim-rebate-feature-flagged-off.md): Honest stub: the rebate feature is flagged off and planned for v1.8.0. Returns 501 NOT_IMPLEMENTED today — documented as shipped because the route IS live (docs follow the server). - [Verify an Edge payment](https://docs.skia.money/api-reference/monetization/verify-an-edge-payment.md): Confirms a pending payment (pending → confirmed on read when settled). validatedAgainstSupportedTokens mirrors the accepted-set check (x-token-tiers). - [Create a server-custodial EOA wallet](https://docs.skia.money/api-reference/wallets/create-a-server-custodial-eoa-wallet.md): Custody is SERVER-CUSTODIAL — the ONLY Phase-1 production path (external custody is typed for wire completeness but NOT verified E2E; self-custody claims wait for the external-path gate, R2-13). chainBootstrapError is surfaced for observability; the wallet remains fully usable via DB seeds + a later… - [Wallet summary (balances, tier, custody, settlement network)](https://docs.skia.money/api-reference/wallets/wallet-summary-balances-tier-custody-settlement-network.md): The canonical chain-facts read: settlementNetwork carries the REAL EIP-155 id the EIP-712 domain is built from — prefer it over label ids (R2-2). Currently unguarded on testnet (see x-auth-posture). - [Trade history for a wallet (the real orders route)](https://docs.skia.money/api-reference/wallets/trade-history-for-a-wallet-the-real-orders-route.md): The real route (C6): orders are indexed BY WALLET. The fictional GET /api/orders/{orderId} never existed and does not enter this spec. txHash is null for DB-simulated settlements (mirrors RevealResponse). - [Faucet tap (mock tokens + optional gas top-up)](https://docs.skia.money/api-reference/wallets/faucet-tap-mock-tokens-+-optional-gas-top-up.md): Mocks have an open faucet(); zero value. mode reports whether the tap minted on-chain (active network) or simulated; gasTopUp reports the sponsor grant when one was wired. HONESTY (R4-2): this surface is anonymous BY DECISION on testnet and is an anonymous WRITE that can trigger real on-chain relaye… - [Create a counterfactual ERC-4337 SkiaAccount](https://docs.skia.money/api-reference/smart-wallets/create-a-counterfactual-erc-4337-skiaaccount.md): Address = CREATE2(SkiaAccountFactory, salt, owner, canonical EntryPoint v0.7) — chainId-free, identical on every chain. Deployment is lazy (with the first sponsored op) unless /deploy is called. - [Smart wallet state (deployment, session keys, sponsorship ledger)](https://docs.skia.money/api-reference/smart-wallets/smart-wallet-state-deployment-session-keys-sponsorship-ledger.md) - [Deploy the account now (normally lazy with the first op)](https://docs.skia.money/api-reference/smart-wallets/deploy-the-account-now-normally-lazy-with-the-first-op.md): Bearer-enforced server-side (requireSmartWallet: 401 without bearer, 403 unless bearer == path address — src/lib/server/smart-wallets.ts:24-31). The spec's v0.3.0 `security: []` underclaimed enforcement (R4-2). The residual risk (bearer forgery — the token IS the address string) is disclosed once in… - [List session keys](https://docs.skia.money/api-reference/smart-wallets/list-session-keys.md) - [Issue an AI-agent session key](https://docs.skia.money/api-reference/smart-wallets/issue-an-ai-agent-session-key.md): Delegated key with expiry + a daily NATIVE cap + per-token 24h outflow caps + a maker allowlist — ALL enforced on-chain in SkiaAccount.validateUserOp on the v4 canonical pin (BUILT 2026-11-15: setSessionMakers binds [canonical relayer]; setSessionTokenCaps binds a cap for EVERY settlement token; _en… - [Revoke a session key on-chain](https://docs.skia.money/api-reference/smart-wallets/revoke-a-session-key-on-chain.md) - [Submit arbitrary calls as ONE gasless (sponsored) UserOperation](https://docs.skia.money/api-reference/smart-wallets/submit-arbitrary-calls-as-one-gasless-sponsored-useroperation.md): The generic agentic primitive: 1..8 calls execute INSIDE the SkiaAccount through the canonical EntryPoint v0.7, sponsored by SkiaPaymaster — the taker holds zero gas. SkiaDefaultPolicy only sponsors settlement-shaped ops (target == SwapERC20, approvals TO SwapERC20, 0-value self-management, deploy-o… - [List own subscriptions](https://docs.skia.money/api-reference/webhooks/list-own-subscriptions.md): Owned subscriptions, newest first. Reminder (R4-22): delivery is NOT implemented (SV-9) — these rows describe intent, not flowing events. - [Create an event subscription (contract frozen — DELIVERY NOT IMPLEMENTED)](https://docs.skia.money/api-reference/webhooks/create-an-event-subscription-contract-frozen-—-delivery-not-implemented.md): HONESTY FIRST (R4-22 + round-4 addition 4, per CLAIM-1): the CRUD is live but NO delivery engine exists today — no dispatcher, no HMAC, no outbound code. Creating a subscription does NOT imply events will fire; they never do until SV-9 ships. Same honesty pattern as the rebate stub. CONTRACT FROZEN… - [Delete a subscription](https://docs.skia.money/api-reference/webhooks/delete-a-subscription.md) - [Capital State Registry (LIVE since v0.4.4; reads never gate)](https://docs.skia.money/api-reference/registry/capital-state-registry-live-since-v044;-reads-never-gate.md): Read-only, public (same posture as layer-info): every asset described by six attested property groups (exposure, backing, yield, control, reach, mechanics) PLUS the v0.2.0 capability-graph assurance axes (legalClass, jurisdictionRestrictions, oracleProvenance, opinion, verificationRefs), reached thr… - [Issue an invoice (issuer-signed InvoiceClaim; issuance gate runs here)](https://docs.skia.money/api-reference/invoice/issue-an-invoice-issuer-signed-invoiceclaim;-issuance-gate-runs-here.md): SERVED (round-13 (A): work-order steps 2-5 landed the implementation 2026-11-30 — the prose below is the ENFORCED contract; the CLAIM-1 citations are the source files). The ISSUER submits a signed InvoiceClaim (EIP-712, domain per D-INV-1: name "Skia InvoiceClaim", version "1", chainId = settleChain… - [Acknowledge or reject an invoice (debtor countersignature over the SAME claim digest)](https://docs.skia.money/api-reference/invoice/acknowledge-or-reject-an-invoice-debtor-countersignature-over-the-same-claim-digest.md): SERVED (round-13). The DEBTOR countersigns the SAME InvoiceClaim digest (confirmed vote #1: ack = countersign same claim digest — NO second EIP-712 type; issuer and debtor are struct fields of the claim, so the signatures are role-bound, and the ACK event records the signing role). decision "acknowl… - [Dispute an invoice (partial disputes allowed; debtor countersignature)](https://docs.skia.money/api-reference/invoice/dispute-an-invoice-partial-disputes-allowed;-debtor-countersignature.md): SERVED (round-13). The DEBTOR countersigns the claim digest (one-pattern rule: every state-changing act is a signature + an event). disputedAmount (<= outstanding — 409 INVOICE_STATE_INVALID otherwise) and reason (<= 512 chars, free text — the negotiation transcript protocol is DEFERRED to Phase 2;… - [Issue a credit note (issuer-signed EIP-712 CreditNotice)](https://docs.skia.money/api-reference/invoice/issue-a-credit-note-issuer-signed-eip-712-creditnotice.md): SERVED (round-13). The ISSUER signs an EIP-712 CreditNotice — the ONLY second EIP-712 type on this surface (confirmed vote #2), in the SAME D-INV-1 domain as the referenced claim; the signature MUST recover to the referenced claim's issuer (403 INVOICE_PARTY_MISMATCH). FOLD PRECEDENCE — LOCKED BEFOR… - [Create a payment intent (10-minute Order template; idempotent nonce allocation)](https://docs.skia.money/api-reference/invoice/create-a-payment-intent-10-minute-order-template;-idempotent-nonce-allocation.md): SERVED (round-13). Creates a payment ATTEMPT (mapping 1->N — R-1) and returns an UNSIGNED 10-minute Order template. The debtor's agent signs it, BINDS it to the attempt (ORDER_SIGNED's wire path — the bind endpoint POST /v1/invoices/{invoiceId}/payments/{attemptId}/order, round-13 (B); the app lane… - [Bind a signed Order to the attempt (INTENT_CREATED -> ORDER_SIGNED; the signature IS the payment's signature)](https://docs.skia.money/api-reference/invoice/bind-a-signed-order-to-the-attempt-intent_created->-order_signed;-the-signature-is-the-payments-signature.md): THE ORDER_SIGNED WIRE PATH (round-13 (B), B-2 — the attempt state machine is drivable from the declared surface: the debtor's agent signs the intent's Order template OFFLINE and posts it here; NO new EIP-712 type — the Order signature IS the payment's signature, the one-pattern rule). TEMPLATE LAW (… - [Single receivable view (pure fold — status never stored)](https://docs.skia.money/api-reference/invoice/single-receivable-view-pure-fold-—-status-never-stored.md): SERVED (round-13). The fold view of ONE invoice (Receivable). STATUS IS NEVER STORED — it is a PURE FOLD over the append-only event list (property-tested: no unreachable states; overdue/partial always derivable). Money arithmetic is INTEGER atomic-unit math — floats never touch money on this surface… - [List receivables for the calling party (pure fold, cursor-paginated)](https://docs.skia.money/api-reference/invoice/list-receivables-for-the-calling-party-pure-fold-cursor-paginated.md): SERVED (round-13). Fold views for every invoice where the bearer address is issuer or debtor. Filters: role (issuer|debtor — default: both roles of the caller), status (fold state), currency, settleChainId (numeric). Cursor pagination: limit <= 100 (default 50), cursor = the last invoiceId (lexicogr… ## OpenAPI Specs - [integrator-attribution-v1.7.0](/extensions/integrator-attribution-v1.7.0.yaml) - [mvp-spec-v0.1.0](/mvp-spec-v0.1.0.yaml) - [mvp-spec-v0.3.0](/mvp-spec-v0.3.0.yaml) - [mvp-spec-v0.3.1](/mvp-spec-v0.3.1.yaml) - [mvp-spec-v0.4.0](/mvp-spec-v0.4.0.yaml) - [mvp-spec-v0.4.1](/mvp-spec-v0.4.1.yaml) - [mvp-spec-v0.4.2](/mvp-spec-v0.4.2.yaml) - [mvp-spec-v0.4.3](/mvp-spec-v0.4.3.yaml) - [mvp-spec-v0.4.4](/mvp-spec-v0.4.4.yaml) - [mvp-spec-v0.4.5](/mvp-spec-v0.4.5.yaml) - [mvp-spec-v0.4.6](/mvp-spec-v0.4.6.yaml) - [mvp-spec-v0.4.7](/mvp-spec-v0.4.7.yaml) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.