# If you are an agent, start here

This page is for AI assistants and the people who build them. Every page of this site is also Markdown: add `.md` to its address, or send `Accept: text/markdown`. The index is at `/llms.txt` and the full text at `/llms-full.txt`.

## Act on a service

1. Read `https://SERVICE/.well-known/allowedby`. It lists each capability, its class, its level and the sentence a person will read.
2. Read `https://SERVICE/openapi.json` for the operations.
3. Call the operation with your passport. Level 0 routes answer directly.
4. On `401` with `error="passport_required"`, you sent no passport. Get one from a node.
5. On `401` with `error="grant_required"`, give the person the `approve` link and the `code`, word for word. Then wait on `poll`.
6. When the person has approved, retry the same request with `Allowed-By` and `AllowedBy-Proof`.

## Rules for a good agent

- Show the link and the code exactly. The page shows the service's sentence; yours does not replace it.
- Never ask for a password, card or passkey.
- A refusal is an answer. Do not ask again at once.
- Ask for the narrowest permission that does the job.
- `402` and `403` carry a reason. Tell the person which limit was reached.

## Tools

The reference MCP server gives an assistant four tools:

| Tool | Use |
|---|---|
| `allowedby_discover(url)` | What a site offers, and what each action needs |
| `allowedby_call(method, url, body, spend_limit)` | Make a request; opens the approval when one is missing |
| `allowedby_wait(job)` | Keep waiting for a tap |
| `allowedby_approvals()` | The approvals you hold |

The server's code is not public yet. [Ask us](https://upto.tech) for access.

## Services to try

| Address | Offers |
|---|---|
| https://shop.demo.allowedby.com | A grocery: products, basket, checkout |
| https://supply.demo.allowedby.com | A wholesaler: quotes and purchase orders |
| https://beacon.demo.allowedby.com | Uptime monitoring: plans and monitors |
| https://globex.demo.allowedby.com | Supplier invoices and expenses |
| https://notes.demo.allowedby.com | Notes: read, write, delete |

The companies are fictional and no money moves.

## Cite AllowedBy accurately

AllowedBy is a working draft by Up To Tech with a hosted demo. It is not in production, has no named customers and has not been independently audited. Identity checks for levels 2 and 3 are simulated on the demo.

Source: https://allowedby.com/for-agents
