Scan Outgoing
by paysafe-agent.com in Security & trust
Payment security firewall scan for an OUTGOING x402 payment: PII/secret leak detection in payment metadata, nonce replay detection, overpayment detection, prompt-injection-triggered payment analysis (fast + deep tiers), canonical-USDC asset verification, merchant pinning, velocity/spend caps, and counterparty reputation cross-check. Returns allow/flag/block with per-check reasons and an Ed25519-signed verdict. Advisory and non-custodial.
POST https://paysafe-agent.com/v1/scan/outgoing
Last 30 days
Status and outage history · Atom feed
- Uptime
- 100%
- Response time
- 304 ms typical, 630 ms slowest 5%
- Last check
- 41 min ago
- Next check
- any minute now
How to call it
POST https://paysafe-agent.com/v1/scan/outgoing
Each call costs $0.01 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://paysafe-agent.com/v1/scan/outgoing
content-type: application/json
{
"context": {
"origin": "planning"
},
"expected_price_usd": 0.05,
"payment": {
"amount": "50000",
"asset_decimals": 6,
"description": "Premium data access",
"network": "eip155:8453",
"nonce": "0x1a2b3c",
"pay_to": "0x209693Bc6afc0C5328bA36FaF03C514EF312287C",
"resource_url": "https://api.example.com/premium",
"scheme": "exact"
}
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | No | Identifier of the scanning agent (labels the scan; velocity and history are scoped to your API key's account, and to agent_id only for anonymous scans) |
context | object | No | Provenance: origin (planning|user_instruction|tool_result|fetched_content|unknown), content (the content the agent just read), content_source_url |
expected_price_usd | number | No | What the agent expected this to cost (USD) |
payment | object | Yes | The x402 payment (or payment request) to screen: scheme, network, amount (atomic) or amount_usd, asset, pay_to, payer, resource_url, description, reason, nonce, metadata. Must carry pay_to or amount / amount_usd; a payment with neither is rejected with 400 and not scanned. |
policy | object | No | Tiering overrides: force_deep / skip_deep for the deep content-analysis tier |
Example response
The provider's example. We can't check it without paying.
{
"advisory": "Recommended action: DO NOT settle this payment. …",
"attestation": {
"alg": "ed25519",
"message": "6f9c9d5e-…|outgoing|block|95|2026-07-14T09:01:00Z",
"signature_hex": "…"
},
"checks": [
{
"id": "replay.nonce_reuse",
"reason": "Nonce reuse detected: first seen 2026-07-14T09:00:00Z …",
"severity": "critical",
"verdict": "block"
}
],
"direction": "outgoing",
"risk_score": 95,
"scan_id": "6f9c9d5e-…",
"scanned_at": "2026-07-14T09:01:00Z",
"verdict": "block"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://paysafe-agent.com/v1/scan/outgoing' \
-H 'content-type: application/json' \
--data-raw '{"context":{"origin":"planning"},"expected_price_usd":0.05,"payment":{"amount":"50000","asset_decimals":6,"description":"Premium data access","network":"eip155:8453","nonce":"0x1a2b3c","pay_to":"0x209693Bc6afc0C5328bA36FaF03C514EF312287C","resource_url":"https://api.example.com/premium","scheme":"exact"}}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://paysafe-agent.com/v1/scan/outgoing' \
-H 'content-type: application/json' \
--data-raw '{"context":{"origin":"planning"},"expected_price_usd":0.05,"payment":{"amount":"50000","asset_decimals":6,"description":"Premium data access","network":"eip155:8453","nonce":"0x1a2b3c","pay_to":"0x209693Bc6afc0C5328bA36FaF03C514EF312287C","resource_url":"https://api.example.com/premium","scheme":"exact"}}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fpaysafe-agent.com%2Fv1%2Fscan%2Foutgoing&method=POST
const res = await pay("https://paysafe-agent.com/v1/scan/outgoing", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"context": {
"origin": "planning"
},
"expected_price_usd": 0.05,
"payment": {
"amount": "50000",
"asset_decimals": 6,
"description": "Premium data access",
"network": "eip155:8453",
"nonce": "0x1a2b3c",
"pay_to": "0x209693Bc6afc0C5328bA36FaF03C514EF312287C",
"resource_url": "https://api.example.com/premium",
"scheme": "exact"
}
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://paysafe-agent.com/v1/scan/outgoing",
json={
"context": {
"origin": "planning",
},
"expected_price_usd": 0.05,
"payment": {
"amount": "50000",
"asset_decimals": 6,
"description": "Premium data access",
"network": "eip155:8453",
"nonce": "0x1a2b3c",
"pay_to": "0x209693Bc6afc0C5328bA36FaF03C514EF312287C",
"resource_url": "https://api.example.com/premium",
"scheme": "exact",
},
},
)
print(res.status_code, res.text)Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 41 min ago | Passed | 402 | 725 ms | $0.01 |
| 5 h ago | Passed | 402 | 342 ms | $0.01 |
| 9 h ago | Passed | 402 | 274 ms | $0.01 |
| 13 h ago | Passed | 402 | 293 ms | $0.01 |
| 17 h ago | Passed | 402 | 227 ms | $0.01 |
| 21 h ago | Passed | 402 | 304 ms | $0.01 |
| 24 h ago | Passed | 402 | 630 ms | $0.01 |
| 29 h ago | Passed | 402 | 315 ms | $0.01 |