Straw/ docs

Docs

Programmatic access to the documentation site itself. Agents read the docs without scraping HTML.

get/api/v1/docs

List every published docs page

Flat list of every page under content/docs/. Agents use this to enumerate the surface; pair with `GET /api/v1/docs/page/{slug}` to fetch the markdown body of a specific page.

Auth: none required (public)

Responses

  • 200OK
    {
      "type": "object",
      "properties": {
        "pages": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/DocsPageSummary"
          }
        }
      }
    }
get/api/v1/docs/page/{slug}

Fetch a single docs page's content

Returns JSON `{ slug, title, description, body_md }` by default. Pass `?format=raw` to get the markdown body directly with `Content-Type: text/markdown` — useful when piping into another tool.

Auth: none required (public)

Parameters

NameInTypeRequiredDescription
slugpathstringyesSlash-joined slug. Example: 'concepts/wallet'.
formatquerystringno`raw` returns text/markdown. Default is JSON.

Responses

  • 200OK
    {
      "type": "object",
      "required": [
        "slug",
        "title",
        "body_md"
      ],
      "properties": {
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "body_md": {
          "type": "string",
          "description": "MDX source with frontmatter stripped."
        },
        "file_path": {
          "type": "string",
          "description": "Path to the source file in the GitHub repo (under content/docs/)."
        }
      }
    }
  • 404No docs page at that slug
    {
      "type": "object",
      "required": [
        "error"
      ],
      "properties": {
        "error": {
          "type": "object",
          "required": [
            "message",
            "code"
          ],
          "properties": {
            "message": {
              "type": "string"
            },
            "code": {
              "type": "string"
            },
            "details": {}
          }
        }
      }
    }