# New Paradigm — Content API

New Paradigm Mental Health Retreat publishes its public content as a
read-only HTTP surface designed to be usable by both browsers and AI
agents. There is no authentication and no rate limit beyond
Cloudflare's default protections.

## Base URL

```
https://www.newparadigm.org/
```

## Content negotiation

Every public page supports two representations selected via the
`Accept` request header:

| `Accept` header       | Response `Content-Type`         | Notes                                                           |
|-----------------------|---------------------------------|-----------------------------------------------------------------|
| `text/html` (default) | `text/html; charset=utf-8`      | Human browser response.                                         |
| `text/markdown`       | `text/markdown; charset=utf-8`  | Server-rendered markdown. Includes `x-markdown-tokens` header.  |

Example — fetch the homepage as markdown:

```bash
curl -H "Accept: text/markdown" https://www.newparadigm.org/
```

Both representations share identical URLs, identical Link headers, and
identical cache semantics. `Vary: Accept` is emitted so shared caches
store each representation separately.

## Discovery

- **Sitemap:** `https://www.newparadigm.org/sitemap.xml` — full list of
  crawlable URLs (RFC 9309 semantics).
- **API catalog:** `https://www.newparadigm.org/.well-known/api-catalog`
  — RFC 9727 linkset pointing at this document and the OpenAPI
  description.
- **Security contact:** `https://www.newparadigm.org/.well-known/security.txt`
  (RFC 9116).
- **Homepage Link headers:** Every response to `/` includes
  `Link:` headers advertising `sitemap`, `security-txt`,
  `privacy-policy`, `author`, `help`, and `canonical` per RFC 8288.

## Endpoints

The API has no path parameters, no query parameters, and no
mutating verbs. Every URL listed in `sitemap.xml` is a `GET`
endpoint that returns HTML or markdown based on `Accept`.

Representative resources:

| Path                         | Purpose                                       |
|------------------------------|-----------------------------------------------|
| `/`                          | Homepage — organisation overview.             |
| `/our-team.html`             | Clinical team and author information.         |
| `/outpatient.html`           | Outpatient service description and pricing.   |
| `/media.html`                | Videos, interviews, and press.                |
| `/privacy.html`              | Privacy policy.                               |
| `/contact.html`              | Contact information and booking.              |
| `/blog/`                     | Article index.                                |
| `/blog/{slug}/`              | Individual blog articles.                     |
| `/docs/{filename}.pdf`       | Published PDFs (books, guidelines).           |
| `/sitemap.xml`               | Machine-readable URL catalog.                 |

## Health / status

The homepage itself is the canonical liveness check. HTTP 200 with
`Content-Type: text/html` (or `text/markdown`, per negotiation) means
the site is up. There is no dedicated `/health` endpoint.

```bash
curl -o /dev/null -s -w "%{http_code}\n" https://www.newparadigm.org/
```

## Machine-readable description

An OpenAPI 3.1 description is available at:

```
https://www.newparadigm.org/docs/openapi.yaml
```

It formalises the content-negotiation behaviour and enumerates the
representative resource classes above.

## Terms

Content is © New Paradigm Mental Health Retreat. Reproduction of
articles requires permission. Automated crawling for training or
retrieval is welcomed provided it respects `robots.txt` and does not
exceed reasonable request rates.

Contact: dirk.paeshuys@gmail.com
