# Screwtape.ai AI Spending Authorization & Audit Log

> Screwtape.ai AI Spending Authorization & Audit Log is a paid API for AI agents from screwtape.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-28).

Evaluates whether an AI agent should be permitted to make a payment, returning a pass/fail/retry verdict with reasoning and an immutable audit record.

## Facts

- Endpoint: POST https://screwtape.ai/a2a?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/screwtape-ai-ai-spending-authorization-audit-log-9533fcee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wZCWxd2czpTpSU5_Xv-Ew

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 screwtape-ai-ai-spending-authorization-audit-log-9533fcee -d '<json body>'
```

Example prompt: Before you spend that $45 on the API subscription, check with Screwtape to get a pass or fail verdict on whether this purchase is within policy, and make sure the decision is logged for audit.

## When to prefer this

Use Screwtape when you need a lightweight, per-call authorization gate before an AI agent executes a payment, especially when you require an immutable audit trail with a request_id. Prefer this over building custom guardrail logic when you need explainable verdicts with reasons, support for pass/fail/retry semantics, and low-latency checks at $0.005 per call. It is particularly suited for agentic workflows where the agent itself must check the result and cooperate — not for escrow or fund-holding.

## Known failure modes

- Degraded mode: model unavailable, score returned as null with degraded object populated
- Invalid input: missing required fields returns an error
- Retry verdict: ambiguous case where agent should re-evaluate before acting
- Network timeout: agent should retry the call before defaulting to any action
- Policy misconfiguration: criteria not matching any rules, resulting in inconclusive verdict

## How this service works

Screwtape advises and records. Your agent must cooperate by checking the result before acting; we do not hold funds or independently stop payments.

## Output

A JSON object containing a verdict ('pass', 'fail', or 'retry'), a numeric confidence score (null if degraded), an array of human-readable reasons explaining the decision, a unique request_id for audit retrieval, the engine used (e.g. 'deterministic'), and optional retention and degraded status objects.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "task": {
       "type": "string"
      },
      "retain": {
       "type": "boolean"
      },
      "version": {
       "type": "string",
       "description": "Optional version tag for that agent."
      },
      "agent_id": {
       "type": "string",
       "description": "Optional tag for the agent making this call."
      },
      "criteria": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "evidence": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "agent_output": {
       "type": "string"
      }
     }
    },
    "type": {
     "type": "string"
    },
    "method": {
     "type": "string"
    },
    "bodyType": {
     "type": "string"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "schema": {
     "type": "object"
    },
    "example": {
     "type": "object"
    }
   }
  },
  "description": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "required": [
   "verdict",
   "score",
   "reasons",
   "request_id"
  ],
  "properties": {
   "model": {
    "type": [
     "string",
     "null"
    ]
   },
   "score": {
    "type": [
     "number",
     "null"
    ],
    "description": "null when no model gave a verdict (degraded)."
   },
   "engine": {
    "type": "string"
   },
   "reasons": {
    "type": "array",
    "items": {
     "type": "string"
    }
   },
   "verdict": {
    "enum": [
     "pass",
     "fail",
     "retry"
    ],
    "type": "string"
   },
   "degraded": {
    "type": "object"
   },
   "retention": {
    "type": "object"
   },
   "request_id": {
    "type": "string"
   }
  }
 },
 "example": {
  "score": 0.9,
  "checks": [],
  "claims": [
   {
    "text": "The crew size was 4.",
    "status": "supported"
   },
   {
    "text": "The mission launched from Cape Canaveral.",
    "status": "supported"
   }
  ],
  "engine": "deterministic",
  "reasons": [
   "2 of 2 claims are grounded in the supplied evidence.",
   "2 of 2 criteria matched the output.",
   "Deterministic string checks only. No model was called."
  ],
  "verdict": "pass",
  "retention": {
   "retained": false
  },
  "request_id": "example-request-id",
  "verification": "heuristic"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/screwtape-ai-ai-spending-authorization-audit-log-9533fcee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from screwtape.ai](https://www.zero.xyz/host/screwtape.ai/llms.txt)
