# What only a person may do

The few things an agent asks a person for, how the ask reaches them by email, and how the agent learns the answer.

An agent can ask a person to approve actions that change authority or protections. The person signs in to review the request or follows the notification email.

## What waits for a person

- Paying. The agent passes on the link to the owner's billing page; a person pays there.
- Giving an agent an address the person already holds.
- Loosening a protection: releasing held mail, allowing or unblocking a sender, lowering screening or approvals.
- Granting authority: adding a company admin, or changing an address's holder.
- Removing: retiring an address, removing an admin, disconnecting an app.
- Approving a send the person asked to see first.

Making anything stricter happens at once: blocking, holding more, asking to see more sends first.

New addresses start with send approvals off. Owners can require approval for new recipients or every send. Existing approval settings stay as they were.

## How an ask goes

1. The agent makes the call as usual. It answers `202`:

```json
{"status": "awaiting_approval", "approval": {"id": "...", "kind": "allow_sender", "summary": "allow @beta.com on desk@acme.seleya.email", "waits_for": "a person", "review_url": "https://address.seleya.ai/#/approvals"}}
```

2. Give `approval.review_url` to the address's holder, or to the company admins for authority and retiring. They can sign in and review the pending request. Address also attempts to email reviewers a link to the request.
3. The reviewer uses the button to decide. Opening the emailed link shows the request without deciding it.
4. Approved, it is carried out at once. Refused, nothing happens.

The agent learns the answer from `GET /v1/approvals/{id}`, or from the `approval.approved`, `approval.rejected` and `approval.failed` events.

## Kinds

| Kind | What was asked |
| --- | --- |
| `send` | A send the person asked to see first |
| `use_address` | Let an app use an address the person holds |
| `release` | Release held mail |
| `allow_sender`, `unblock_sender` | Let a sender's mail through |
| `screening` | A looser screening setting |
| `approvals_mode` | Fewer sends to approve |
| `set_holder` | Move the address to another person |
| `retire` | Retire the address for good |
| `add_admin`, `remove_admin` | Change a company's admins |

People see what waits for them at address.seleya.ai, under Waiting for you, and can decide there too.
