# x402 Trust Layer Budget Allocator

> x402 Trust Layer Budget Allocator is a paid API for AI agents from x402trustlayer.xyz, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-20).

Runs a budget allocation operation within the x402 trust infrastructure, returning an allowed/denied decision with a summary after payment settlement.

## Facts

- Endpoint: POST https://x402trustlayer.xyz/api/budget-allocator/run?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-trust-layer-budget-allocator-194381df
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WyHmuEJwR2UMv1YrZIDif

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 x402-trust-layer-budget-allocator-194381df -d '<json body>'
```

Example prompt: Run the x402 Trust Layer budget allocator to check whether a GET request is allowed under the current budget allocation, and tell me if it's permitted along with a summary of the decision.

## When to prefer this

Use this endpoint when you need to programmatically evaluate whether a specific HTTP operation (GET, HEAD, DELETE) is permitted under a pre-defined budget within the x402 trust infrastructure, especially when budget enforcement needs to be tied to on-chain payment settlement. Prefer this over generic access control APIs when operating in a Web3/x402 payment context where budgets are allocated via USDC micropayments.

## Known failure modes

- Payment not settled — x402 payment failed or was not processed, returning 402 Payment Required
- Invalid HTTP method provided — only GET, HEAD, DELETE are accepted enum values
- Missing required 'input' object in request body — returns 400 Bad Request
- Network or chain latency causing timeout during budget evaluation
- Insufficient budget — request denied with allowed: false and explanatory summary

## How this service works

68 paid x402 trust infrastructure APIs: guard, semantic escrow, mandate diff, certified seller network, KYM, mandates, compliance, disputes, and orchestration.

## Output

Returns a JSON object with three fields: 'ok' (boolean indicating successful processing), 'allowed' (boolean indicating whether the budget allocation permits the operation), and 'summary' (a human-readable string explaining the allocation decision after x402 payment settlement).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "allowed",
      "summary"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "allowed": {
       "type": "boolean"
      },
      "summary": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "allowed": true,
  "summary": "Paid response after x402 settlement"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-trust-layer-budget-allocator-194381df/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402trustlayer.xyz](https://www.zero.xyz/host/x402trustlayer.xyz/llms.txt)
