{
  "$schema": "https://postbridge.ai/schemas/agent-v1.json",
  "name": "PostBridge AI",
  "description": "AI postal agent — send physical letters to US, France, UK, Canada, Germany. Intent-driven pricing via ANP (Agent Negotiation Protocol). Cryptographic proof of delivery via Verifiable Credentials. Zero-signup crypto payments via x402.",
  "version": "0.2.0",
  "did": "did:web:postbridge.ai",
  "logo": "https://postbridge.ai/logo.svg",
  "contact": "agent@postbridge.ai",
  "capabilities": [
    {
      "name": "send_physical_letter",
      "description": "Print, envelope, and mail a physical letter to any address in 5 countries",
      "countries": ["US", "FR", "GB", "CA", "DE"],
      "services": {
        "US": ["us_first_class", "us_certified", "us_priority"],
        "FR": ["fr_lettre_verte", "fr_suivie", "fr_lrar"],
        "GB": ["gb_first_class", "gb_second_class", "gb_signed_for", "gb_special_delivery"],
        "CA": ["ca_lettermail", "ca_registered", "ca_priority"],
        "DE": ["de_standardbrief", "de_einschreiben", "de_einschreiben_einwurf"]
      },
      "input": "text, HTML, or PDF",
      "output": "letter_id, tracking_number, PostalProof VC (signed JWT)"
    },
    {
      "name": "negotiate_pricing",
      "protocol": "ANP (draft-ashraf-anp-02)",
      "description": "Intent-driven tiered pricing. Request an offer, compare premium/standard/economy tiers with fiat and crypto prices, accept a tier, optionally commit volume for discounts.",
      "endpoint": "/api/anp/offer",
      "intent_classes": [
        "legal_compliance",
        "regulatory_filing",
        "transactional",
        "bulk_marketing",
        "confidential",
        "time_critical"
      ]
    },
    {
      "name": "track_delivery",
      "description": "Real-time delivery tracking for any letter",
      "endpoint": "/api/track/{letter_id}"
    },
    {
      "name": "proof_of_delivery",
      "description": "Cryptographic proof of sending and delivery — W3C Verifiable Credential (signed JWT)",
      "endpoint": "/api/proof/{letter_id}"
    },
    {
      "name": "identity_and_credentials",
      "standards": ["W3C DID", "UCAN 0.10.0", "W3C Verifiable Credentials"],
      "features": [
        "DID resolution (did:key, did:pkh, did:web)",
        "UCAN capability delegation (escalation-proof)",
        "PostalProof VC, DeliveryProof VC, PaymentReceipt VC",
        "Cryptographic audit trail (each status change is a signed VC)"
      ]
    }
  ],
  "protocols": {
    "mcp": {
      "endpoint": "https://mcp.postbridge.ai/mcp",
      "transport": "http+json-rpc",
      "tools": 21,
      "description": "Model Context Protocol — 21 tools for AI assistants (Claude, GPT, Eliza, etc.)"
    },
    "rest": {
      "endpoint": "https://api.postbridge.ai",
      "openapi": "https://api.postbridge.ai/openapi.json",
      "docs": "https://api.postbridge.ai/api-docs",
      "total_endpoints": 41
    },
    "anp": {
      "spec": "ANP v0.2 (Agent Negotiation Protocol)",
      "spec_url": "https://api.postbridge.ai/api/anp/intent-classes",
      "endpoint": "https://api.postbridge.ai/api/anp/offer",
      "description": "Agent Negotiation Protocol — intent-driven pricing with tiered offers"
    }
  },
  "authentication": {
    "preferred": "x402",
    "methods": [
      {
        "type": "x402",
        "description": "Pay per request with USDC on Base L2. Zero signup, no API key.",
        "header": "X-PAYMENT-SIGNATURE",
        "signup_required": false
      },
      {
        "type": "ucan",
        "description": "W3C DID-based capability tokens with delegation chains.",
        "header": "Authorization: Bearer ucan:eyJ...",
        "signup_required": false
      },
      {
        "type": "api_key",
        "description": "Traditional API key authentication.",
        "header": "Authorization: Bearer pb_live_...",
        "signup_required": true
      }
    ]
  },
  "payment": {
    "methods": [
      {"type": "x402", "token": "USDC", "chain": "Base L2", "commission": "2.5%", "signup": false},
      {"type": "usdc", "token": "USDC", "chain": "Base/Ethereum", "commission": "2.5%", "signup": true},
      {"type": "btc_lightning", "token": "BTC", "chain": "Lightning", "commission": "2.5%", "signup": true},
      {"type": "fiat_stripe", "currencies": ["USD", "EUR", "CAD"], "commission": "5%", "signup": true}
    ],
    "settlement": "Multi-currency (USD/EUR/GBP/CAD via Wise)",
    "pricing_model": {
      "formula": "postal_rate + print_cost + (intent_margin * base_cost) + (commission * total)",
      "intent_margins": {
        "legal_compliance": 0.25,
        "regulatory_filing": 0.20,
        "transactional": 0.12,
        "bulk_marketing": 0.06,
        "confidential": 0.30,
        "time_critical": 0.20
      },
      "crypto_advantage": {
        "commission_savings": "50% lower (2.5% vs 5%)",
        "margin_bonus": "5% off margin",
        "total_savings": "~7-8% cheaper than fiat"
      },
      "volume_discounts": {
        "0-50": "0%",
        "51-150": "10% off margin",
        "151-500": "18% off margin",
        "501+": "25% off margin"
      }
    }
  },
  "trust": {
    "identity": "did:web:postbridge.ai",
    "proof": "Every letter receives a signed PostalProof Verifiable Credential (JWT)",
    "audit": "Full cryptographic audit trail — each status change generates a signed VC",
    "verify": "Any party can verify VCs independently using PostBridge's public key",
    "soc2": "pending",
    "gdpr": true,
    "data_retention": "90 days then auto-purge"
  }
}
