# Ferrite developer docs on Alloy for developers

A demonstration copy of the Ferrite developer documentation, running as an application on Ferrite Alloy, with search and Markdown pages for people and AI assistants.

Call the same operations over plain HTTP, as MCP tools, or from a page through WebMCP. The base URL is `https://docs-demo.ferrite.run`.

## Quickstart

Read something first. This request needs no setup:

```sh
curl -s 'https://docs-demo.ferrite.run/api/search?q=constrained%20app'
```

Search the text of every page in the docs, blog, changelog, knowledge base and academy. Use it to find the page that answers a question, then read that page with get_doc. Returns up to 20 results, best match first, each with the page path, the nearest heading and a snippet.

To use Ferrite developer docs on Alloy from an AI assistant, add its MCP server:

```sh
claude mcp add --transport http alloy-docs https://docs-demo.ferrite.run/mcp
```

## Authentication and API keys

No API key, account or sign-up is needed: the API is keyless, so the first request you send can be a real one.

## Sandbox

Everything here is read-only, so every request is safe to try. Both operations answer anyone in the same way, and nothing a caller sends is stored.

The [sandbox page](/sandbox) is the place to start.

## Endpoints

| Operation | Request | What it does |
| --- | --- | --- |
| `search_docs` | `GET /api/search` | Search the text of every page in the docs, blog, changelog, knowledge base and academy. Use it to find the page that answers a question, then read that page with get_doc. Returns up to 20 results, best match first, each with the page path, the nearest heading and a snippet. |
| `get_doc` | `GET /api/doc` | Read one page of the documentation as Markdown. Use it with a path from search_docs, llms.txt or the sitemap when you need the whole page rather than a snippet. Returns the path and the page's full text, the same as its .md address serves. |

The [OpenAPI 3.1 document](/openapi.json) describes every parameter and response. The MCP server at `https://docs-demo.ferrite.run/mcp` exposes the same operations as tools with the same names.

## Example requests

### `search_docs`

```sh
curl -s 'https://docs-demo.ferrite.run/api/search?q=constrained%20app'
```

### `get_doc`

```sh
curl -s 'https://docs-demo.ferrite.run/api/doc?path=%2Fdocs%2Fstore'
```

## Conventions

- Rate limits: every response carries `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset`. A `429` also carries `Retry-After`, in seconds.
- Errors: refusals are RFC 9457 `application/problem+json` with a stable `type`, a `detail` written to be read, and a `hint` when there is a next step.
- Versioning: this is version 1.1.0. A change that would break a caller is announced with `Deprecation` and `Sunset` headers at least 90 days ahead.
- Markdown: add `.md` to a page path, or send `Accept: text/markdown`.

## Machine-readable descriptions

- [llms.txt](/llms.txt): orientation for agents
- [OpenAPI](/openapi.json): operations and schemas
- [Agent skills](/.well-known/agent-skills/index.json): installable instructions
- [Agentic Resource Discovery](/.well-known/ard.json): the catalogue of everything here
- [Pricing](/pricing.md)

Questions: see the [contact page](/contact).
