# DEBYTA Agent Check

> Fraud check for AI agents and apps BEFORE they pay, buy, transfer money or log in. Send a shop URL, IBAN, crypto address, e-mail, phone number or payment link; get a signed allow / warn / block decision with reasons and risk 0-100.

- allow = no known fraud indicators (not a guarantee) · warn = ask the human · block = do not execute
- Every decision is signed with Ed25519 so it can be verified later.
- Pay per check from prepaid credit (from about €0.001 per check, net); no subscription required. Anonymous use without key: 3 checks/day.

## Use
- [MCP server](https://debyta.com/mcp): Streamable HTTP, tools `check_before_payment` and `analyze_message`. Official MCP Registry name: com.debyta/agent-check
- [REST: POST /api/intel/v1/agent/precheck](https://debyta.com/api/intel/v1/openapi.json): OpenAPI 3 description
- [Integrations](https://debyta.com/agent-check/integrations): OpenAI, Vercel AI SDK, LangChain, OpenAI Agents SDK, Claude, Cursor, ChatGPT connectors
- [Full guide for agents](https://debyta.com/llms-full.txt)

## SDKs
- JavaScript: `npm install debyta`
- Python: `pip install debyta`

## Account
- [Free API key](https://debyta.com/account/schutzserver)
- [Prices](https://debyta.com/agent-check)

---

# Full guide

## When to call
Call `check_before_payment` immediately before any of these actions:
- paying or buying in an online shop the user has not used before
- transferring money to an IBAN, crypto address or payment link
- entering a password, card number or one-time code on a website
- following a payment request that arrived by e-mail, SMS or chat (pass the text as `context`, it is not stored)

Then follow the decision strictly: block = do not execute and tell the user why; warn = stop and ask the user; allow = proceed.

## REST example
```bash
curl -s https://debyta.com/api/intel/v1/agent/precheck \
  -H "Authorization: Bearer $DEBYTA_API_KEY" -H "Content-Type: application/json" \
  -d '{"url":"https://paypa1-secure-login.com/","action":"pay","amount":49,"currency":"EUR"}'
```
Response fields: decision, risk (0-100), reasons[], advice, at, validUntil, sig (Ed25519 signature), keyId, verify{publicKey}, checks{}, usage{}.

## MCP client config
```json
{"mcpServers": {"debyta": {"type": "http", "url": "https://debyta.com/mcp", "headers": {"Authorization": "Bearer <DEBYTA_API_KEY>"}}}}
```

## Tools
### check_before_payment
Call this BEFORE an agent pays, buys from a shop, transfers money to an IBAN or crypto address, or enters credentials on a website. Returns decision allow / warn / block with reasons, risk 0-100 and an Ed25519-signed verdict. allow = no known fraud indicators (not a guarantee); warn = ask the human; block = do not execute.

Input (JSON Schema):
```json
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "Shop / checkout / login URL"
    },
    "domain": {
      "type": "string"
    },
    "iban": {
      "type": "string"
    },
    "crypto": {
      "type": "string",
      "description": "Crypto address (BTC, EVM, TRON, SOL …)"
    },
    "email": {
      "type": "string",
      "description": "Seller / payee e-mail"
    },
    "phone": {
      "type": "string"
    },
    "paylink": {
      "type": "string",
      "description": "Payment link (PayPal.me, Stripe link …)"
    },
    "social": {
      "type": "string",
      "description": "Seller profile link (Instagram, TikTok, Telegram …)"
    },
    "amount": {
      "type": "number"
    },
    "currency": {
      "type": "string"
    },
    "action": {
      "type": "string",
      "enum": [
        "pay",
        "purchase",
        "login",
        "transfer",
        "subscribe",
        "other"
      ]
    },
    "context": {
      "type": "string",
      "description": "Message or page text that asked for the payment (not stored)"
    },
    "deep": {
      "type": "boolean",
      "description": "Open the URL now and inspect it live (costs more)"
    },
    "lang": {
      "type": "string"
    }
  }
}
```

### analyze_message
Analyze an e-mail, SMS or chat message for scam patterns (18 patterns, 10 languages) and check every link, IBAN, crypto address and phone number in it. The text is not stored.

Input (JSON Schema):
```json
{
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string"
    },
    "cc": {
      "type": "string",
      "description": "Default country calling code, e.g. 49"
    }
  }
}
```

## Units and prices
- `check_before_payment`: 10 units, with `deep: true` (live page inspection): 100 units
- `analyze_message`: 1 unit + 1 per 5 entities found
- 10,000 checks: €49.00 net (€0.005 per check)
- 100,000 checks: €199.00 net (€0.002 per check)
- 1,000,000 checks: €990.00 net (€0.001 per check)
- When the free daily quota is used up the API answers HTTP 429 `daily_limit` with an `upgrade` link to get a key or buy credit.

## Errors
- 400 validation (send at least one of url, domain, iban, crypto, email, phone, paylink, social, context)
- 401 api_key_invalid · 429 rate_limited (per minute) or daily_limit (see `upgrade` link)

## Privacy
Inputs are checked and not stored except hashed indicators needed for fraud detection. `context` text is never stored. Servers in the EU (Germany).
