Skip to content
ndStill is in development. These docs describe the v2 API as designed; the SDKs and the hosted MCP server are previews and not generally available.
Docs

Verify for sellers

Verify agent passports (RFC 9421), check mandates and owners, price for agents and issue signed receipts.

If you sell to agents (an API, a dataset, an MCP tool, a store), you need to know which agent is calling, whether a real person or company stands behind it, and whether it's allowed to pay you. Verify answers those questions and gives both sides a signed receipt. It has two parts: open-source middleware that checks agent signatures on your own servers, and a hosted Verify API that adds what only ndStill knows.

How agents identify themselves#

Each ndStill agent has a passport: Ed25519 signing keys, a verified owner, a declared purpose and a status, published in a public directory as a JWKS. The agent signs every request to you with RFC 9421 HTTP Message Signatures:

HTTP
POST /v1/search?region=us HTTP/1.1
Host: api.northwind.example
Content-Type: application/json
Content-Digest: sha-256=:X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=:
Signature-Input: sig1=("@method" "@authority" "@path" "content-digest");created=1762178531;expires=1762178831;keyid="kid_01JD8Q…";alg="ed25519";nonce="Nt2hJ6xQm4Lw";tag="ndstill-passport"
Signature: sig1=:wqcAqbmYJ2ji2glfAMaRy4gruYYnx2nEFN2HN6jrnDnQCK1u02Gb04v9EDgwUPiu4A0w6vuQv5lIp5WPpBKRCw==:

{"q":"agent payments","limit":5}

The same signatures follow the Web Bot Auth and Visa Trusted Agent Protocol profiles (set by tag), so one key works across networks. Try it in the request-signing tester.

The middleware (free, open source)#

Verify middleware runs in your process and makes stateless checks: no call to ndStill unless you turn on the hosted checks.

  1. Verifies the signature against the passport directory's JWKS (cached), or against Web Bot Auth or TAP keys.
  2. Checks created, expires, the nonce (not seen before) and the Content-Digest.
  3. Checks the idempotency key, so a retried paid request isn't charged twice.
  4. Adds the verified agent to the request, and issues a seller-signed receipt after you respond.
import express from "express";
import { verify } from "@ndstill/verify/express";

const app = express();
app.use(express.raw({ type: "*/*" })); // signatures cover the raw body

app.post("/v1/search", verify({ require: "passport", hosted: { apiKey: process.env.NDSTILL_SELLER_KEY } }), (req, res) => {
  // req.agent: { id, kid, owner: { verification_level }, mandate, reputation }
  res.json(search(JSON.parse(req.body.toString())));
});

Middleware for Cloudflare Workers and MCP servers follows the same options. A request that fails is answered with 401 and a body that says which check failed, so honest agents can fix it.

The hosted Verify API#

Turn on hosted checks to ask ndStill what your server can't know on its own:

Hosted checks
CheckWhat it tells you
Owner verificationnone, email, kyc or kyb: whether a real, verified person or company owns the agent.
MandateWhether an active mandate covers your business and this amount.
StatusWhether the agent or its owner is frozen right now.
ReputationPayments made, disputes, and how long the agent has existed.

Each hosted check is logged in your Verify log, and ndStill countersigns the receipt into the evidence record, so both you and the buyer hold the same proof. Configure what you require (passport signatures required or optional, a mandate required, a minimum owner level) with POST/seller/verification.

Pricing for agents#

Publish prices per call, per session, per result, per month or per MCP tool call with POST/prices. Each price produces three things agents read:

  • an HTTP 402 response with an x402 challenge (and checkout or invoice options) for unpaid requests
  • an MCP tool annotation with the price, for paid tools
  • an entry in your discovery file at /.well-known/agent-pricing.json

See what a price produces in the 402 challenge builder, and read x402 and USDC for how buyers pay it.

Getting paid#

Accept takes card and network tokens, checkout tokens (through your own Stripe account), x402 and MPP stablecoins (through your wallet and a facilitator) and bank transfers. Funds always land in your own account, wallet or bank; ndStill never holds them. Each purchase is a checkout with the rails offered, the outcome and the receipt.

Before a checkout is marked paid, ndStill checks that the money moved. Send a proof with POST/accept/checkouts/{id}/pay:

  • ndstill_payment: the buyer agent's ndStill payment. It must come from the checkout's buyer agent, for the same amount and rail, and it can pay only one checkout.
  • onchain: the stablecoin transaction on Base. At least the amount in USDC must reach your connected payout wallet.
  • stripe or sandbox: test keys only for now.

The checkout's confirmation says how the payment was confirmed.

Receipts#

After a paid response, the middleware signs a receipt with your seller key over the request hash, the response hash, the amount, the asset and the rail. The buyer's agent signs it too, and ndStill countersigns it, so all three parties hold the same record:

JSON
{
  "id": "rcpt_01JD…",
  "object": "receipt",
  "seller_name": "Northwind Labs",
  "buyer": { "org_name": "Acme Robotics", "agent_name": "Data buyer" },
  "amount": { "amount": 10000, "asset": "USDC" },
  "rail": "stablecoin",
  "request_hash": "sha256:9f2c…",
  "response_hash": "sha256:41ab…",
  "mandate_hash": "sha256:c07e…",
  "signatures": [
    { "party": "buyer", "kid": "kid_01JD8Q…", "valid": true },
    { "party": "seller", "kid": "kid_sel_01JC…", "valid": true },
    { "party": "ndstill", "kid": "ev-us-2026-10", "valid": true }
  ]
}

A buyer can hide its org's name from sellers. Its checkouts and receipts then show "An ndStill customer", and the hosted Verify API returns buyer_org: null with buyer_org_hidden: true.

Refunds and disputes#

Buyers' refund requests arrive as seller refunds; answer with POST/seller-refunds/{id}/respond, and the refund goes out through your own payment provider or wallet. ndStill records it and credits the buyer's budget back. When a buyer's owner opens a dispute, both sides see the same evidence: the mandate, the decision, the signed request and your receipt.