> ## Documentation Index
> Fetch the complete documentation index at: https://docs.attexra.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Grants & Deterministic Policy

> How signed grants bind agent capabilities to exact actions, amounts, recipients, and TTLs.

An authorization grant in Attexra is a signed capability token (`k1.<payload>.<signature>`) persisted in PostgreSQL and verifiable offline or via `POST /v1/authorizations/verify`.

## Grant parameters

| Field | Role | Evaluation rule |
| - | - | - |
| `action` | Scoped operation (e.g. `payment.create`) | Exact string match; denied by default |
| `resource` | Target resource identifier | Exact match against verify payload |
| `recipient` | Beneficiary wallet or counterparty | Exact allowlisted counterparty check |
| `asset` | Currency / token unit (e.g. `USDC`) | Case-normalized currency match |
| `maximumAmount` | Exact decimal cap | Evaluated using exact arbitrary-precision decimal arithmetic |
| `expiresAt` | RFC3339 expiry timestamp | Automatically fails with `grant_expired` past deadline |

## Decision outcomes

Every verification call returns one of four outcomes alongside a structured `reasonCode` and persisted `decisionId`:

* **`allow`** — All grant constraints passed (`within_scope`).
* **`require_approval`** — Action stays within hard ceiling but exceeds the human-approval policy threshold (`approval_required`).
* **`deny`** — Invalid signature, revoked grant (`grant_revoked_or_unknown`), expired (`grant_expired`), scope/recipient/asset mismatch, or ceiling exceeded (`amount_exceeds_limit`).
* **`indeterminate`** — Insufficient external context to establish compliance safely.

## Instant revocation

Calling `POST /v1/authorizations/:id/revoke` updates the grant state immediately in PostgreSQL and emits an audit event. Subsequent `verify` calls reject the signed token with `grant_revoked_or_unknown` even before token expiry.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.