Signed verdict for an action (paid)
kya_check_actionCheck whether an AI agent may perform a requested action under its mandate and whether its credential is active; get a signed verdict with evaluated rules for dispute evidence.
Instructions
$0.01 (x402, USDC on Base; set KYA_PRIVATE_KEY). May this agent perform this action under its mandate, and is its credential active right now? The issuer answers with a signed verdict that lists every rule it evaluated, usable as evidence in a dispute. For a free, unsigned answer use kya_check_mandate on the mandate from kya_verify.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | What the agent wants to do, lowercase (order, pay, quote, sign, ...). | |
| amount | No | Amount of this operation. | |
| currency | No | BRL, USDC, ... | |
| spent_today | No | What this agent already spent today, if you track it; needed for max_per_day (the issuer keeps no record of acts). | |
| counterparty | No | Your CNPJ, domain or wallet address (the other side of the operation). | |
| credential_id | Yes | The agent's credential_id (the agent sends it with its request, e.g. in the KYA-Credential header). | |
| payment_network | No | Payment network of this operation: visa, mastercard, elo, pix, ... | |
| payment_ref_sha256 | No | SHA-256 hex of the payment token reference or PAR used, never a card number. |