A file every agent knows how to read.

auth.md is a plain markdown file at the root of your domain that tells an AI agent your service accepts AgentOnboard tokens, which hostname to mint a token for, and how to handle 401 and 403 responses.

The problem it solves

Even when your backend verifies agent tokens, an AI agent needs a reliable way to discover that your API supports them. Without a standard location, the agent does not know which Domain to pass to get_token or what a 403 ACCOUNT_REQUIRED response requires.

Hosting auth.md at the root of your domain gives agents a predictable URL they can read via standard HTTP GET before calling your endpoints.

What goes in it

Serve plain Markdown over HTTPS at https://<your-domain>/auth.md with no authentication and no redirect to another host. Include three sections in order:

1. Audience: The exact Domain hostname to pass to get_token.
2. Endpoints: Each route’s HTTP method, path, request body, and response shape.
3. When a request is rejected: A table mapping 401, 403, and 500 responses to the exact next step.

Example file

Drop this into public/auth.md. Full templates for both reject-unknown and auto-signup flows are in the docs.

public/auth.md

# Notes API

This service accepts AgentOnboard. Verified agent requests are
authorized against the account the verified email maps to.

## Audience

`notes.com`

Agents call the Remote MCP tool `get_token(domain: "notes.com")`.
Send the token on every request as `Authorization: Bearer <token>`.

## Endpoints

### `POST /api/notes`

- Request: `{ "title": string, "body": string }`
- Success: `201`
- Required header: `Authorization: Bearer <token>`

## When a request is rejected

| Status | `code` | What to do |
|---|---|---|
| 401 | any | The token was rejected. Call `get_token` for `notes.com` again and retry **once**. |
| 403 | `ACCOUNT_REQUIRED` | The identity is valid but has no Notes account. Create one at `POST /api/signup` with the same token, then retry **once**. |
| 500 | `RESOLVER_ERROR` | Server error during account lookup. Retry after a short delay with the same token. |

Why the rejection table matters

The rejection table tells the agent whether to mint a fresh token (on 401) or set up an account (on 403 ACCOUNT_REQUIRED).

If your service only serves existing users, point the 403 row to your web account connection URL so the human can link their account once. If your service supports automatic agent signup via createAgentAccount, point the 403 row to your POST /api/signup endpoint so the agent can create the account and retry without pausing for a human.

How it relates to the open auth.md concept

The concept of publishing a machine-readable /auth.md file at the root of a domain was introduced by WorkOS (github.com/workos/auth.md). While WorkOS’s specification defines an OAuth and claim-code registration ceremony, AgentOnboard uses a streamlined 3-section auth.md format designed for direct 5-minute RS256 JWT verification via @agentonboard/sdk and agentonboard-sdk.

One static file, and every agent knows the way in.

Copy the template for your backend and verify it with curl.