Pages

Read CMS pages — documentation, blog posts, and landing pages served on inference.sh.

Published pages are indexed in the pages search collection. Discover them via GET /suggest or GET /search?collection=pages. See Search API.

List and detail responses use cursor pagination or bare DTOs when you send X-API-Version: 2 (recommended). See REST overview — API version.


Page object

FieldTypeDescription
idstringPage ID
short_idstringShort ID (first 8 characters)
titlestringPage title
slugstringURL slug (unique)
contentstringMarkdown body
excerptstringShort summary
statusinteger0 unknown, 1 draft, 2 published, 3 archived
typestringdoc, blog, or page
metadataobjectSEO and navigation metadata (title, description, image, tags, order, icon, hide_from_nav)
is_featuredbooleanFeatured flag
visibilitystringVisibility scope (public, team, private)
created_atstringRFC 3339 timestamp
updated_atstringRFC 3339 timestamp

Get page by slug

GET /pages/slug/{slug}

Returns a single page by slug path. No authentication required.

The slug path can include slashes (for example api/rest/overview).

bash
1curl https://api.inference.sh/pages/slug/api/rest/overview \2  -H "X-API-Version: 2"

Errors

StatusCodeWhen
400invalid_requestSlug path is empty
404not_foundNo page with that slug, or the page was soft-deleted

Soft-deleted pages are not returned. After a page is deleted, slug lookups respond with 404 even if the slug still appears in old links or caches. Search removes deleted pages on delete; allow a short propagation delay before assuming a slug is gone everywhere.


Get page by ID

GET /pages/{id}

Returns a page by full ID or short ID. No authentication required for public pages.

bash
1curl https://api.inference.sh/pages/page_abc123 \2  -H "X-API-Version: 2"

Soft-deleted pages are excluded and return 404.


List pages

GET /pages or POST /pages/list

Returns published pages only (status = published). Draft and archived pages are omitted from list results.

Query parameters

FieldTypeDescription
cursorstringPagination cursor
limitintegerMax results (default 50, max 100)

Responses may include RFC 8288 Link headers (rel="next", rel="prev") with the same cursors.


Comments

GET /pages/{id}/comments or POST /pages/{id}/comments/list

List comments on a page. Uses the same cursor pagination pattern as other list endpoints.


Navigation menus (for example docs sidebars) are served separately:

EndpointDescription
GET /menus or POST /menus/listList menus
GET /menus/{id}Get menu by ID
GET /menus/slug/{slug}Get menu by slug

Menu items can reference pages by page_id or external url.


Content management

Creating, updating, and deleting pages requires platform admin credentials (POST /admin/pages, POST /admin/pages/{id}, DELETE /admin/pages/{id}). The inference.sh docs site syncs from Markdown using belt pages sync — that workflow is internal to platform operators, not a general developer API.

When a page is deleted, it is soft-deleted: removed from list and slug lookups, and dropped from the search index.

we use cookies

we use cookies to ensure you get the best experience on our website. for more information on how we use cookies, please see our cookie policy.

by clicking "accept", you agree to our use of cookies.
learn more.