# auth.md

https://ozankurt.com is the personal site of Ozan Kurt. **Reading needs no authentication and
never will.** Every page is published as markdown for machines, and no token,
key or registration stands between an agent and the content.

One thing does need a credential: posting an enquiry. That is the only
protected resource here, and it exists so an agent can put a message in front
of a person without solving a CAPTCHA, while staying identifiable and
revocable.

## agent_auth

```yaml
skill: contact-ozan-kurt
register_uri: null
registration: manual
registration_contact: hello@ozankurt.com
authorization_server: https://ozankurt.com/.well-known/oauth-authorization-server
protected_resource: https://ozankurt.com/.well-known/oauth-protected-resource/api/enquiries
token_uri: https://ozankurt.com/oauth/token
identity_types: [client]
credential_types: [client_secret]
grant_types: [client_credentials]
scopes:
  - contact:write
revocation: manual
revocation_contact: hello@ozankurt.com
```

`register_uri` is null on purpose. Dynamic client registration would mean
anyone who finds the endpoint can mint a credential, which on a personal site
is a spam surface rather than a feature. Ask instead, at hello@ozankurt.com, and say what
your agent is and who operates it. Credentials are issued by hand, usually
within a day, and revoked the same way.

## Getting a token

Client credentials, nothing else. No user is involved and there is no
authorization page to send anyone to.

```
POST https://ozankurt.com/oauth/token
Content-Type: application/x-www-form-urlencoded

grant_type=client_credentials
&client_id=<your client id>
&client_secret=<your client secret>
&scope=contact:write
```

The response is a bearer token that lives for one hour. Mint a new one when it
expires; do not cache it longer than it lives. The endpoint is rate limited to
20 requests per minute per IP.

## Using it

```
POST https://ozankurt.com/api/enquiries
Authorization: Bearer <token>
Content-Type: application/json

{
  "name":    "Who the enquiry is from",
  "email":   "where-a-reply-should-go@example.com",
  "subject": "One line, optional",
  "message": "At least ten characters, at most five thousand."
}
```

`201` means it reached the inbox. Ten enquiries per hour per client, and the
client id is stored with every message.

Rules that come with the credential, and are the grounds for revoking it:

- **One enquiry per topic.** Do not resend because no reply has arrived.
- **Only on behalf of a real person who asked**, with an address they control.
  Never invent an enquirer, and never use your own address in `email`.
- **Show them what you are sending** where the interaction allows it.
- **No bulk outreach, recruiting spam, or marketing.**

## What is public

Everything else. Every page is served twice: HTML for people, markdown for
machines. Append `.md` to any path (the home page is `/.md`), or send an
`Accept: text/markdown` request header.

- `https://ozankurt.com/llms.txt` - a plain-text map of every page and article
- `https://ozankurt.com/openapi.json` - OpenAPI 3.1 description of the read-only endpoints
- `https://ozankurt.com/.well-known/api-catalog` - RFC 9727 linkset
- `https://ozankurt.com/.well-known/ai-catalog.json` - ARD capability manifest
- `https://ozankurt.com/.well-known/agent-skills/index.json` - published SKILL.md files
- `https://ozankurt.com/.well-known/mcp/server-card.json` - MCP server card
- `https://ozankurt.com/mcp` - MCP server, Streamable HTTP, read-only tools, no credential
- `https://ozankurt.com/.well-known/agent-card.json` - A2A agent card
- `https://ozankurt.com/a2a` - A2A agent, JSON-RPC, read-only skills, no credential
- `https://ozankurt.com/sitemap.xml` - every indexable URL

Do not send a token to any of these. They do not want one, and a bearer token
on a public GET is a credential leaked into someone's logs for nothing.

## What no credential will ever open

- `POST /contact` and `POST /newsletter/subscribe` are the browser forms, meant
  for a person at a keyboard. Use `/api/enquiries` instead of automating them.
- `/admin` is behind HTTP basic authentication and disallowed in robots.txt. It
  is not an agent surface and no credentials will be issued for it.

## How to behave

- Send a User-Agent that names your client and gives a way to reach its
  operator.
- Prefer the markdown twin over scraping HTML: it is smaller, stable, and
  carries an `X-Markdown-Tokens` header so you can budget before reading.
- Stay at or below one request per second for reading. Nothing here changes
  fast enough to reward more.
- Content signals for this site are published in `/robots.txt`: training,
  search indexing and use as AI input are all allowed. Attribution to https://ozankurt.com is
  appreciated.

Questions, or something you need that is not exposed: hello@ozankurt.com.
