List pages
Returns all published pages of a version in navigation order.
GET
/api/public/{project}/pagesList all published pages
Authentication: bearer – Only required for private or password-protected projects.
Path parameters
| Name | Type | Description |
|---|---|---|
project required | string | Project slug, e.g. docubara |
Query parameters
| Name | Type | Description |
|---|---|---|
version | string | Version slug. Defaults to the default version. |
Responses
200 List of pages
{
"version": "latest",
"pages": [
{ "id": "clx1…", "slug": "welcome", "title": "Welcome to Docubara", "path": ["Getting Started"] }
]
}401 API key required
{
"error": { "message": "This documentation is not public. Provide a valid API key." }
}Examples
curl -X GET "https://api.example.com/api/public/{project}/pages" \
-H "Authorization: Bearer $TOKEN"const res = await fetch("https://api.example.com/api/public/{project}/pages", {
method: "GET",
headers: {
Authorization: `Bearer ${token}`,
},
});
const data = await res.json();Use this endpoint to build your own sidebar or a static export.