Get a page

Returns the rendered HTML, table of contents and metadata of a published page.

GET/api/public/{project}/pages/{slug}

Retrieve a published page

Authentication: bearer – Only required for private or password-protected projects.

Path parameters

NameTypeDescription
project requiredstringProject slug
slug requiredstringPage slug

Query parameters

NameTypeDescription
formatstring"json" (default) or "html"

Responses

200 The page
{
  "slug": "welcome",
  "title": "Welcome to Docubara",
  "toc": [{ "id": "what-you-can-build", "text": "What you can build", "level": 2 }],
  "html": "<p>…</p>",
  "next": { "slug": "installation", "title": "Installation" }
}
404 Page not found or not published

No response body.

Examples

curl -X GET "https://api.example.com/api/public/{project}/pages/{slug}" \
  -H "Authorization: Bearer $TOKEN"

Add ?format=html to receive only the rendered HTML fragment.

api
Last updated