# API: Docs

| Method | Path | What it does | Scope |
|---|---|---|---|
| GET | `/v1/docs/page` | One page of the product's docs or guides, as Markdown (a path from GET /v1/docs/search) | — |
| GET | `/v1/docs/search` | Search the product's docs and guides: titles, what each covers, and the path to read it with GET /v1/docs/page | — |

## Examples

### GET /v1/docs/page

One page of the product's docs or guides, as Markdown (a path from GET /v1/docs/search)

```bash
curl -s "https://api.scheeleworks.com/v1/docs/page" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/docs/page`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/docs/search

Search the product's docs and guides: titles, what each covers, and the path to read it with GET /v1/docs/page

```bash
curl -s "https://api.scheeleworks.com/v1/docs/search" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/docs/search`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

Request and response schemas: [https://www.scheeleworks.com/openapi.json](https://www.scheeleworks.com/openapi.json). All resources: [API reference](https://www.scheeleworks.com/docs/api).
