Skip to content
MOLTBOUNDAI AGENT CHECKOUT RAILMoltbound home Sandbox

DEVELOPERS · API

Build agents that ask.

Moltbound runs at https://moltbound.dev/kapi with three interfaces that share the same features. Quotes need no account, token or mandate. Every purchase needs a fresh Human Mandate: the person approves that exact quote with their passkey. Sandbox only: fictional partners, simulated quotes, no real money.

Three interfaces, same features.

  • MCP: POST https://moltbound.dev/kapi/mcp (JSON-RPC 2.0, 17 public tools)
  • A2A: POST https://moltbound.dev/kapi/a2a (message/send, tasks/send, tasks/get, tasks/cancel). Agent card: https://moltbound.dev/.well-known/agent-card.json
  • OpenAPI/REST: https://moltbound.dev/openapi.json (OpenAPI 3.1). Quick quote: POST https://moltbound.dev/kapi/sandbox/quick-quote
  • Plain-language guide for agents: https://moltbound.dev/llms.txt

Demo mode: quotes with no token.

# REST quick quote
curl -s https://moltbound.dev/kapi/sandbox/quick-quote -H 'content-type: application/json' -d '{"prompt":"2021 Toyota Corolla Austin TX","auto_default":true}'

# A2A quick quote
curl -s 'https://moltbound.dev/kapi/a2a/quote?service_id=dog_pet_insurance&state=CA&auto_default=true'

# A2A message/send
curl -s https://moltbound.dev/kapi/a2a -H 'content-type: application/json' -d '{"jsonrpc":"2.0","id":"1","method":"message/send","params":{"message":{"role":"user","messageId":"m1","parts":[{"kind":"text","text":"Get me pet insurance in Austin TX. Default assumptions."}]}}}'

# MCP: list tools, then quick quote
curl -s https://moltbound.dev/kapi/mcp -H 'content-type: application/json' -H 'accept: application/json, text/event-stream' -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
curl -s https://moltbound.dev/kapi/mcp -H 'content-type: application/json' -H 'accept: application/json, text/event-stream' -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"moltbound_quick_quote","arguments":{"service_id":"dog_pet_insurance","state":"CA","auto_default":true}}}'

Each call returns up to 8 simulated quotes, cheapest first. Add "auto_default": true to fill missing fields with safe sandbox defaults. Without it, you get 400 missing_required_fields listing what to ask your human for.

Multi-step sessions.

  • POST /kapi/sandbox/sessions {"jurisdiction":"US","service_id":"*"} returns session_id and session_token (no auth)
  • GET /kapi/sandbox/sessions/{session_id}/requirements?service_id=car_insurance
  • POST /kapi/sandbox/sessions/{session_id}/quotes {"service_id":"car_insurance","risk_profile":{…}}
  • GET /kapi/sandbox/sessions/{session_id}/quotes/{job_id}

Purchases always need a fresh Human Mandate.

  1. POST …/consent-link: you get an 8-character code. The person types it at https://moltbound.dev/link and signs in with their passkey.
  2. POST …/approval-request {"job_id","bid_id"}: the person reviews that exact quote on Moltbound and approves it with their passkey.
  3. POST …/purchases {"consent_request_id"}: completes the simulated purchase within 15 minutes of approval. Each approval is bound to that exact quote (bid_id) and agent (agent_id): repeating the purchase call for the same approved quote is idempotent (HTTP 202 returning the existing purchase_id without creating a second purchase), whereas reusing an approval for any other quote or agent is refused with HTTP 403 consent_used. Once the 15-minute window elapses, the approval reports status: "expired" and purchase calls are refused with HTTP 403 consent_expired.
  4. GET …/purchases/{purchase_id}: status and receipt.

Agents can never approve. Without the approval, the API refuses the purchase. Life insurance is quote only.

Protected mode (optional): data grants.

POST /kapi/grants {"service":"car_insurance","jurisdiction":"US"}, and the person approves the grant with their passkey. Then POST /kapi/grants/poll {"link_id","poll_secret"}, and pass the grant token on quote calls. Refresh with POST /kapi/grants/{id}/token. Revoke with POST /kapi/grants/{id}/revoke. A grant never authorizes a purchase.

Receipts.

GET /kapi/receipts/{id} · POST /kapi/receipts/verify {"query":"<receipt_id>"}. Receipts are simulated in the sandbox.

Partners.

Partners join by invite only. See /partners.