# KYA Brasil – Agent Mandate & Credential Allowance Check

> KYA Brasil – Agent Mandate & Credential Allowance Check is a paid API for AI agents from kya-br-agents.marcelfons.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Returns a signed verdict indicating whether a proposed action (type, amount, currency, counterparty) is within an AI agent's mandate and whether its credential is currently active, plus a list of fields not evaluated.

## Facts

- Endpoint: GET https://kya-br-agents.marcelfons.workers.dev/v1/agents/:id/allowed?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kya-brasil-agent-mandate-credential-allowance-check-f6b8e1d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZLdIjEurPz8cVTRVp501U

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 kya-brasil-agent-mandate-credential-allowance-check-f6b8e1d2
```

Example prompt: Before I proceed, check whether agent credential abc123 is allowed to make a GET payment action of 500 BRL to counterparty 12.345.678/0001-99 — I need to know if it's within mandate and if the credential is still active.

## When to prefer this

Use this endpoint when you need a cryptographically signed, auditable mandate-check before an AI agent executes a financial or operational action in a Brazilian business context. Prefer this over generic auth checks when you need explicit Brazilian CNPJ counterparty validation, per-action and per-amount mandate scoping, and a signed verdict that can be logged for compliance purposes.

## Known failure modes

- Agent credential ID not found — returns an error indicating the credential does not exist
- Credential expired — verdict indicates credential is inactive
- Missing required path parameter 'id' — returns validation error
- Query parameters malformed (e.g. invalid CNPJ format) — may return partial evaluation with unevaluated fields
- Action or currency not recognized — returned in unevaluated fields list
- x402 payment not included or invalid — returns 402 Payment Required before processing

## How this service works

Signed verdict: is this action (action, amount, currency, counterparty, payment instrument) inside the agent's mandate and is the credential active? Evaluates the reserved mandate fields; lists the fields it did not evaluate.

## Output

A signed verdict object confirming whether the action, amount, currency, and counterparty are within the agent's mandate and whether the credential is currently active, along with a list of mandate fields that were not evaluated in this check.

## 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"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "credential_id returned by POST /v1/agents"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "action": {
       "type": "string"
      },
      "amount": {
       "type": "string"
      },
      "currency": {
       "type": "string"
      },
      "spent_today": {
       "type": "string"
      },
      "counterparty": {
       "type": "string",
       "description": "CNPJ, domain or wallet address"
      },
      "payment_network": {
       "type": "string",
       "description": "visa, mastercard, elo, pix, ..."
      },
      "payment_ref_sha256": {
       "type": "string",
       "description": "SHA-256 hex of the payment token reference or PAR (never a card number)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kya-brasil-agent-mandate-credential-allowance-check-f6b8e1d2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kya-br-agents.marcelfons.workers.dev](https://www.zero.xyz/host/kya-br-agents.marcelfons.workers.dev/llms.txt)
