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

# Controls and approvals

> Limit what each AI agent may do, require a person's yes for big steps, get alerts on unusual behaviour, and review agents' access.

Letting an AI agent in is not the end of your control over it. Aiveth runs one gate before **every** token an agent gets: a first token, a refresh, an enterprise pass, an approved step, or a server-to-server call. If the gate says no, the agent gets no token.

You manage all of this in the console under **AI agents**, which needs the **Manage apps** power.

> [!NOTE]
>
> AI agents and MCP servers are available on the Business plan and above.

## The gate

For each token, Aiveth checks in order:

1. **Pause all agents** is off for your organization.
2. The agent has an **owner** who is still an active person in your organization.
3. Its **end date** has not passed.
4. It is within the **hours** it may work.
5. It has not asked for too many **tokens this hour**.
6. Its **permissions**: only those it may ever hold; permissions that need a person's yes only through an approval; and never all the permissions of a never-together rule.
7. Its **access review** was not left unanswered, if your organization stops agents in that case.

A refusal is recorded in the activity log with the reason, once per agent and reason an hour. The agent receives an OAuth error with one of these reasons:

| Reason |
| - |
| This organization paused its AI agents. |
| This agent has no owner in the organization. An admin can name one. |
| This agent's access has ended. An admin can give it a new end date. |
| This agent may not work at this time of day. |
| This agent asked for too many tokens this hour. |
| None of the permissions asked for are allowed for this agent. |

## Pause all agents

**Pause all agents** on the **AI agents** page stops every agent in your organization at once. No agent gets a token, and [introspection](https://docs.aiveth.com/agents/agent-tokens.md#introspection) answers inactive for their tokens. Turn it off to let them back in.

## An agent's limits

Open an agent in the list and choose its limits:

| Setting | What it does |
| - | - |
| **Owner** | The person who answers for this agent. It starts as the first person who let it in. If they leave, the agent stops until you name someone else. |
| **What it is for** | A purpose, in words. |
| **Works until** | An end date. Empty means no end date. |
| **Hours it may work** | A daily window, **From** and **To**, or **Any time**. |
| **Tokens an hour** | The most tokens it may get in an hour, up to 100,000. |
| **Permissions it may hold** | The permissions of your MCP servers it may ever get, or **All of them**. |
| **Permissions that need a person's yes** | Given only for one step, after the person approves it on their **Approvals** page. |
| **A yes for amounts over (₹)** | When the agent asks to pay or move money: at or under this amount, approved at once; over it, the person decides. Empty means the person always decides. |
| **When something unusual happens** | **Email the owner and admins**, or **Email them and stop the agent**. See [Alerts](#alerts). |
| **The owner reviews its access** | **Every 30 days** or **Every 90 days**. See [Access reviews](#access-reviews-for-agents). |

Every change is recorded in the activity log. To stop one agent completely, block it from the agents list. A blocked agent gets no code and no new token.

## Human approval

Some steps are too big for an agent to take alone, like releasing a payment. The agent asks for the person's yes with OpenID CIBA (Client-Initiated Backchannel Authentication) in poll mode, with Rich Authorization Requests (RFC 9396) describing exactly what it wants to do.

### 1. The agent asks

The agent sends its current access token for the person and the MCP server:

```bash theme={null}
curl -X POST https://accounts.aiveth.com/oauth/bc-authorize \
  -H "Authorization: Bearer <the agent's access token>" \
  -d "binding_message=Release payment for claim 1042" \
  -d "scope=payments:release" \
  --data-urlencode 'authorization_details=[{"type":"payment","amount":"5000.50","currency":"INR"}]'
```

**binding\_message** `string`

What the agent wants to do, in words. Up to 200 characters.

**scope** `string`

The permissions this step needs.

**authorization\_details** `string`

A JSON list of up to 5 objects, each with a `type`. An `amount` is digits with at most two after the point, like `5000` or `5000.50`. A `currency` is three capital letters, like `INR`.

The answer:

```json theme={null}
{ "auth_req_id": "...", "expires_in": 600, "interval": 5 }
```

A request that asks for no permission needing a yes, and whose amounts are all within the agent's limit, is approved at once and recorded.

### 2. The person decides

The person is emailed, and the request waits on their **Approvals** page under **Waiting for you**. They choose **Approve** or **Reject**. Approving needs a sign-in from the last few minutes; otherwise they are asked to **Sign in again**. Only the person the request is for can answer it, never an admin on their behalf.

### 3. The agent collects

The agent polls `/oauth/token` no faster than every 5 seconds:

```
grant_type=urn:openid:params:grant-type:ciba
auth_req_id=<from step 1>
```

| Answer | Meaning |
| - | - |
| `authorization_pending` | Still waiting. |
| `access_denied` | The person said no. |
| `expired_token` | Nobody answered within 10 minutes. |
| An access token | The person said yes. |

The approved token lasts 5 minutes, has no refresh token, and carries the approval's ID in `aid` and what was approved in `authorization_details`. The approval is spent once collected. Your MCP server can tie its own record of the action to `aid`.

## Never-together rules

A never-together rule names two or more permissions that one agent must never hold at the same time, for example `claims:approve` and `payments:release`. Add rules under **Permissions never held together** with **Add rule**.

For each rule, choose what happens **When an agent would hold them all**:

* **Block** (the default): the permission that would complete the rule is left out of the token. If nothing the server guards is left, the request is refused.
* **Ask**: the completing permission is given only through a person's yes (see [Human approval](#human-approval)).

Aiveth judges a rule against everything the agent already holds, for anyone, on any server, plus what it asks for now. If a rule is added after an agent already holds a conflicting set, the conflict shows on the agent and in its access review so its owner can stop it.

## Alerts

Aiveth watches for three signs of unusual behaviour at the gate:

| Sign | When |
| - | - |
| Far more tokens than usual | This hour's tokens are over 3 times its busiest hour in the last 7 days, and at least 30. |
| A new MCP server | Its first token for a server it never had one for. |
| Many refused tries | 10 refusals in one hour for the agent's own tries (permissions it may not hold, too many tokens). Your organization's own stops don't count. |

An agent known for under 3 days raises no alert for the first two signs, because it has no baseline yet. Each sign fires at most once a day per agent.

An alert is recorded in the activity log, sends the `agent.alert` [webhook](https://docs.aiveth.com/events/event-types.md), and is emailed to the agent's owner and everyone with **Manage apps**. If the agent's setting is **Email them and stop the agent**, it is blocked at once and the token it asked for is refused. It stays blocked until an admin unblocks it.

## Access reviews for agents

Every 30 or 90 days (the first after 30 days), a review opens for the agent's owner. They see it on their **Approvals** page under **Agents you look after**. The review shows, as it was when it opened: the MCP servers the agent reaches and with which permissions, how many people use it, its tokens in the last 30 days, when it was last used, and its alerts.

The owner chooses **Keep it** or **Stop it**. Stopping blocks it at once and ends every person's connection to it. An admin can also decide from the **AI agents** page.

Reminders go to the owner and admins at 7 and 12 days. Under **If nobody answers in 14 days**, choose whether the agent stops until someone reviews it, or keeps working and the review closes as "nobody answered".

Ordinary apps are never reviewed here, only AI agents.

## Report what agents did

Aiveth sees an agent's sign-in, not its tool calls. Your MCP server reports each action with an [API key](https://docs.aiveth.com/account/api-keys.md) that has the `agents:actions` power:

```bash theme={null}
curl -X POST https://accounts.aiveth.com/v1/admin/agent-actions \
  -H "Authorization: Bearer aiveth_sk_live_..." \
  -H "Idempotency-Key: 7f3c9a" \
  -H "Content-Type: application/json" \
  -d '{
    "token": "<the agent token the call came with>",
    "action": "claims.approve",
    "outcome": "done",
    "occurred_at": "2026-11-24T10:15:00+05:30",
    "targets": [{ "type": "claim", "id": "1042", "name": "Claim 1042" }],
    "details": { "amount": "5000" }
  }'
```

**token** `string` *required*

The agent's token for this call. Aiveth takes the agent, the person, every actor in between and any approval from it, so a server can't name someone else. A token up to a day past its expiry is still accepted, for late reports.

**action** `string` *required*

A lower-case name with dots, like `claims.approve`.

**outcome** `string` (default: done)

`done`, `failed` or `blocked`.

**occurred\_at** `string`

ISO 8601 time while the token was valid. Defaults to now, or the token's expiry if earlier.

**targets** `array`

Up to 10 objects, each with a `type` and `id`, and an optional `name`.

**details** `object`

Up to 20 keys. Values are short text, numbers or yes/no, up to 200 characters.

Send an `Idempotency-Key` header so a retry never makes a second record. Without it, Aiveth uses the body's fingerprint.

> [!WARNING]
>
> Report names of things, never personal data.

Reported actions show on each agent in the console and download as CSV. They are kept for one year.


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