# For AI agents

Everything here is readable without running a page.

An agent can prove a domain with Prufy the same way a person does: get one record, add it, and ask for a check. This page lists what's there for agents to read and run.

## Read the docs

Start at [llms.txt](https://www.prufy.dev/llms.txt), the list of every page. Or ask for one of these:

| To get | Ask for |
| --- | --- |
| Any page as Markdown | Add `.md` to its address, or send `Accept: text/markdown` |
| The landing page | `/index.md` |
| Every page in one file | `/llms-full.txt` |
| The API as OpenAPI | `/api/openapi.json` |
| A setup link's record and steps | Add `.md` to the link |

## Start with a prompt

Copy this into your agent to prove a domain from scratch:

Prompt

```
Help me prove I own yourcompany.com with Prufy. Start by reading https://www.prufy.dev/llms.txt: it lists every page of Prufy's docs as Markdown.

1. Use the CLI: npx --yes @prufy/cli verify yourcompany.com --json. It prints the one TXT record to add.
2. Show me the record before you change any DNS, add only that one record, and never ask for my DNS provider's password. If you can't change my DNS, tell me exactly what to add and where, in my provider's words.
3. Once it's added, run npx --yes @prufy/cli check yourcompany.com --wait --json. Exit status 0 means verified, and 3 means checked and not there yet.
```

The [Quick start](https://www.prufy.dev/docs/quick-start.md) writes one for the API, a component or a setup link instead. To put Prufy inside a product, the [components introduction](https://www.prufy.dev/docs/components.md) has its own.

## Use the CLI

Add `--json` to any command. stdout then carries one JSON document and nothing else, in the same shapes the API returns. With `npx --yes` there's nothing to install and nothing asks a question.

Terminal

```shell
npx --yes @prufy/cli verify yourcompany.com --json
```

The exit status says what happened, so a script can branch without parsing text:

| Exit status | Means |
| --- | --- |
| `0` | Done. After a check, it means verified |
| `1` | Something went wrong |
| `2` | The command wasn't understood |
| `3` | Checked, and not verified yet |

[Scripts and agents](https://www.prufy.dev/docs/cli.md) on the CLI page covers what changes when nobody is at the keyboard.

## Setup links

Someone who can't add the record themselves can send a setup link to whoever can, including an agent. The link can read one record and ask for a check, and nothing else, so an agent that has one needs no other credential:

An agent with a setup link

```shell
# Read the record. The link is the only credential this needs.
npx --yes @prufy/cli setup https://prufy.dev/setup/… --json

# Once the record is added, ask for a check and wait for the answer.
npx --yes @prufy/cli setup https://prufy.dev/setup/… --check --wait --json
```

## Rules to follow

- Show the record first. Before changing anyone's DNS, show them exactly what you'll add.
- Add only that record. One TXT record proves the domain. Nothing else needs to change.
- Never ask for passwords. Not for the DNS provider, not for anything. Prufy never needs one.
- Only a check says verified. Read the claim's phase after a check. Don't report a domain as verified because the record was added.

---

Every page of these docs, as a list: https://www.prufy.dev/llms.txt
