{
  "name": "SendGuard",
  "description": "SendGuard is the pre-send decision layer for AI agents. Its hosted Email Preflight API returns allow, delay, requires_approval or block with reasons. Your existing sender or workflow enforces the decision; SendGuard never sends email. Guardrails for customer-operated or self-hosted email workflows are one use case; the SendGuard API is hosted.",
  "version": "2026-11-14",
  "api_base_url": "https://api.sendguard.ai",
  "openapi_url": "https://sendguard.ai/openapi.json",
  "docs_url": "https://sendguard.ai/docs/",
  "llms_txt_url": "https://sendguard.ai/llms.txt",
  "pricing_url": "https://sendguard.ai/pricing/",
  "mcp": {
    "url": "https://api.sendguard.ai/mcp",
    "transport": "streamable-http",
    "tools": ["preflight_email", "get_pricing", "get_account", "create_topup_link", "start_signup", "poll_signup"],
    "auth": "Optional. Authorization: Bearer sk_... or X-API-Key: sk_...; without a key preflight_email allows a few free checks per day per IP."
  },
  "authentication": {
    "type": "bearer",
    "header": "Authorization",
    "format": "Bearer sk_live_...",
    "agent_signup": {
      "flow": "urn:ietf:params:oauth:grant-type:device_code",
      "spec": "RFC 8628",
      "device_authorization_endpoint": "https://api.sendguard.ai/v1/agent/signup",
      "token_endpoint": "https://api.sendguard.ai/v1/agent/token",
      "human_approval_url": "https://app.sendguard.ai/agent/approve",
      "notes": "A human signs in and approves the user_code. The API key is returned once from the token endpoint."
    }
  },
  "scopes": {
    "preflight:read": "Call POST /v1/preflight/email",
    "verify:create": "Call POST /v1/email/verify and POST /v1/email/decision",
    "billing:topup": "Create hosted top-up checkout links a human pays",
    "billing:autorecharge": "Charge the saved card for an owner-configured auto-recharge"
  },
  "default_scopes": ["preflight:read", "verify:create"],
  "billing": {
    "unit": "one credit per completed authenticated email preflight; Email Validation API charging varies by result; consult response billing fields",
    "catalog_endpoint": "GET https://api.sendguard.ai/v1/billing/catalog",
    "account_endpoint": "GET https://api.sendguard.ai/v1/billing/account",
    "topup_endpoint": "POST https://api.sendguard.ai/v1/billing/topups/checkout-link",
    "recommended_first_purchase": { "package_id": "pilot", "price_usd": "1.00", "credits": 100 },
    "out_of_credits": "HTTP 402 with error=insufficient_credits and next_action (auto_recharge, create_checkout_link or human_topup)",
    "spend_caps": "Per-key monthly spend cap in USD, set by the human at approval; exceeding it returns 403 spend_cap_exceeded"
  },
  "idempotency": {
    "header": "Idempotency-Key",
    "endpoints": ["POST /v1/billing/topups/checkout-link", "POST /v1/billing/topups/auto-recharge"],
    "replay_header": "Idempotent-Replayed"
  },
  "contact": "mailto:support@sendguard.ai"
}
