# Agent Security Gateway - Request Security Scanner

> Agent Security Gateway - Request Security Scanner is a paid API for AI agents from agent-security-gateway.onrender.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Scans AI agent requests for security threats before external API calls or x402 payment execution

## Facts

- Endpoint: POST https://agent-security-gateway.onrender.com/api/security/scan
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-security-gateway-onrender-com-a2325541
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_17bUEgdib_vGlImJ3Nu8s

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-security-gateway-onrender-com-a2325541 -d '<json body>'
```

Example prompt: Before my agent sends a payment request to an external x402 API, run a security scan on this request payload to check for threats, injection attacks, or anomalies and tell me if it's safe to proceed.

## When to prefer this

Use this endpoint when building agentic workflows that involve external API calls or x402 micropayments and you need a pre-execution security gate to detect prompt injection, malicious payloads, or anomalous patterns before the agent acts. Especially useful when the agent is autonomous and operating with financial permissions.

## Known failure modes

- Malformed request payload returns 400 Bad Request
- Insufficient USDC balance or failed x402 payment returns 402 Payment Required
- Request flagged as high-risk and rejected by the scanner
- Service unavailable on Render cold-start causing latency or timeout
- Empty or missing request body returns validation error

## How this service works

Security scan for AI agent requests before external API calls or x402 payments

## Output

A security scan result indicating whether the agent request is safe or flagged, including a threat assessment and risk classification to determine if the request should be allowed or blocked before proceeding with the external API call or payment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "safe": {
   "type": "boolean"
  },
  "risk_level": {
   "type": "string"
  },
  "threat_type": {
   "type": "string"
  },
  "threat_detected": {
   "type": "boolean"
  },
  "next_recommended": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "safe": true,
  "risk_level": "low",
  "threat_type": null,
  "threat_detected": false,
  "next_recommended": "proceed_with_x402_payment"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-security-gateway-onrender-com-a2325541/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-security-gateway.onrender.com](https://www.zero.xyz/host/agent-security-gateway.onrender.com/llms.txt)
