{
  "info": {
    "name": "AgentGate API",
    "description": "Complete API collection for AgentGate — compliance validation API for AI agents.\n\nBase URL: https://agengate.com\nDocs: https://agengate.com/docs\nTrust: https://agengate.com/trust\n\nSet the `api_key` variable to your `ag_live_...` key before running requests.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "agentgate"
  },
  "variable": [
    { "key": "base_url", "value": "https://agengate.com" },
    { "key": "api_key", "value": "ag_live_YOUR_KEY_HERE" }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      { "key": "key", "value": "X-API-Key" },
      { "key": "value", "value": "{{api_key}}" },
      { "key": "in", "value": "header" }
    ]
  },
  "item": [
    {
      "name": "Health & Discovery",
      "item": [
        {
          "name": "Health check",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/health",
            "description": "Public health endpoint. Returns { status: 'ok' }."
          }
        },
        {
          "name": "List products",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/products",
            "description": "Public. Returns all products with maturity status, regulations, and gate count."
          }
        },
        {
          "name": "List regulations",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/regulations",
            "description": "List all 10 supported regulations with jurisdiction and control counts."
          }
        },
        {
          "name": "List quality gates",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/gates",
            "description": "List all 8 quality gates with descriptions and applicability rules."
          }
        },
        {
          "name": "System status",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/status",
            "description": "Service health for all subsystems."
          }
        },
        {
          "name": "Billing plans",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/billing/plans",
            "description": "List available plans with pricing."
          }
        }
      ]
    },
    {
      "name": "Auth",
      "item": [
        {
          "name": "Sign up",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/v1/auth/signup",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"dev@example.com\",\n  \"password\": \"securepassword123\"\n}"
            },
            "description": "Create a free account. Returns API key."
          }
        },
        {
          "name": "Log in",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/v1/auth/login",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"dev@example.com\",\n  \"password\": \"securepassword123\"\n}"
            }
          }
        },
        {
          "name": "Get profile",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/auth/me"
          }
        },
        {
          "name": "Update profile",
          "request": {
            "method": "PATCH",
            "url": "{{base_url}}/v1/auth/me",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"displayName\": \"Jane Doe\",\n  \"company\": \"Acme Corp\"\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Core — Validate",
      "item": [
        {
          "name": "Validate agent output",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/v1/validate",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"agent_output\": \"Approve $50,000 wire transfer to account 4521-XXXX\",\n  \"context\": {\n    \"domain\": \"banking\",\n    \"task_type\": \"payment\",\n    \"tier\": \"T2\",\n    \"regulatory\": true,\n    \"ai_touching\": true\n  },\n  \"mode\": \"output_validation\"\n}"
            },
            "description": "Core endpoint. Validates agent output through quality gates. Returns status, gates, violations, evidence."
          }
        },
        {
          "name": "Get validation by ID",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/validations/val_REPLACE_WITH_ID"
          }
        },
        {
          "name": "List validations",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{base_url}}/v1/validations?limit=10&offset=0",
              "host": ["{{base_url}}"],
              "path": ["v1", "validations"],
              "query": [
                { "key": "limit", "value": "10" },
                { "key": "offset", "value": "0" },
                { "key": "status", "value": "failed", "disabled": true }
              ]
            }
          }
        },
        {
          "name": "Generate audit package",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/v1/audit-package",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"regulation\": \"gdpr\"\n}"
            },
            "description": "Generate a full compliance audit package for a regulation."
          }
        }
      ]
    },
    {
      "name": "Overrides",
      "item": [
        {
          "name": "Request override",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/v1/overrides",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"validation_id\": \"val_REPLACE_WITH_ID\",\n  \"gate_id\": \"G2\",\n  \"justification\": \"Security gate waived for internal sandbox testing environment — no production data involved.\"\n}"
            }
          }
        },
        {
          "name": "List overrides",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{base_url}}/v1/overrides?limit=20",
              "host": ["{{base_url}}"],
              "path": ["v1", "overrides"],
              "query": [
                { "key": "limit", "value": "20" },
                { "key": "status", "value": "pending", "disabled": true },
                { "key": "validation_id", "value": "", "disabled": true }
              ]
            }
          }
        },
        {
          "name": "Review override",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/v1/overrides/ovr_REPLACE_WITH_ID/review",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"decision\": \"approved\",\n  \"reviewer_email\": \"security-lead@company.com\",\n  \"note\": \"Approved after manual review of sandbox environment.\"\n}"
            }
          }
        },
        {
          "name": "Get override by ID",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/overrides/ovr_REPLACE_WITH_ID"
          }
        }
      ]
    },
    {
      "name": "PII Shield",
      "item": [
        {
          "name": "Scan for PII",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/v1/pii/scan",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"text\": \"Contact John Smith at john@example.com or call 555-123-4567. SSN: 123-45-6789.\",\n  \"redact\": true,\n  \"mode\": \"mask\"\n}"
            }
          }
        },
        {
          "name": "Batch PII scan",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/v1/pii/batch",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"items\": [\n    { \"id\": \"msg-1\", \"text\": \"Email: test@example.com\" },\n    { \"id\": \"msg-2\", \"text\": \"No PII here.\" }\n  ]\n}"
            }
          }
        },
        {
          "name": "List PII patterns",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/pii/patterns"
          }
        }
      ]
    },
    {
      "name": "AuditTrail",
      "item": [
        {
          "name": "Append audit entry",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/v1/audit/log",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"agent.decision\",\n  \"actor\": \"agent-billing-v2\",\n  \"resource\": \"invoice-1234\",\n  \"outcome\": \"approved\",\n  \"metadata\": { \"amount\": 5000, \"currency\": \"USD\" }\n}"
            }
          }
        },
        {
          "name": "Get audit entry",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/audit/log/REPLACE_WITH_ENTRY_ID"
          }
        },
        {
          "name": "List audit entries",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{base_url}}/v1/audit/log?limit=20",
              "host": ["{{base_url}}"],
              "path": ["v1", "audit", "log"],
              "query": [{ "key": "limit", "value": "20" }]
            }
          }
        },
        {
          "name": "Verify audit chain",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/v1/audit/verify"
          }
        },
        {
          "name": "Export audit log",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{base_url}}/v1/audit/export?format=json",
              "host": ["{{base_url}}"],
              "path": ["v1", "audit", "export"],
              "query": [{ "key": "format", "value": "json" }]
            }
          }
        }
      ]
    },
    {
      "name": "Webhooks",
      "item": [
        {
          "name": "Register webhook",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/v1/webhooks",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"https://your-server.com/webhook/agentgate\",\n  \"events\": [\"validation.completed\", \"validation.failed\", \"override.approved\"]\n}"
            }
          }
        },
        {
          "name": "List webhooks",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/webhooks"
          }
        },
        {
          "name": "Webhook stats",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/webhooks/stats"
          }
        },
        {
          "name": "Delete webhook",
          "request": {
            "method": "DELETE",
            "url": "{{base_url}}/v1/webhooks/REPLACE_WITH_WEBHOOK_ID"
          }
        },
        {
          "name": "Delivery history",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/webhooks/REPLACE_WITH_WEBHOOK_ID/deliveries?limit=20"
          }
        }
      ]
    },
    {
      "name": "Billing",
      "item": [
        {
          "name": "Subscribe",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/v1/billing/subscribe",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"plan\": \"pro\",\n  \"product\": \"agentgate\",\n  \"billing_cycle\": \"monthly\"\n}"
            }
          }
        },
        {
          "name": "Billing status",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/billing/status"
          }
        },
        {
          "name": "Usage",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/billing/usage"
          }
        },
        {
          "name": "Invoice history",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/billing/history"
          }
        },
        {
          "name": "Cancel subscription",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/v1/billing/cancel"
          }
        }
      ]
    },
    {
      "name": "Stats & Dashboard",
      "item": [
        {
          "name": "Global stats",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/stats"
          }
        },
        {
          "name": "Dashboard",
          "request": {
            "method": "GET",
            "url": "{{base_url}}/v1/dashboard"
          }
        }
      ]
    }
  ]
}
