Get page content

Changed on

Retrieves the full text content of a specific documentation page by its path. Use this after a search to fetch the complete content of a matching page.

Authenticate with an assistant API key. Page content requests do not consume credits.

post/v1/page/{domain}

Request

  • Base URL
    https://api.mintlify.com/discovery
  • Auth
    HTTP bearer

Path parameters

domainstring required

The domain identifier from your domain.mintlify.site URL. Can be found at the end of your dashboard URL. For example, app.mintlify.com/organization/domain has a domain identifier of domain.

Request body

pathstring required

The page slug or path to retrieve content for. This corresponds to the path field returned by the Search documentation endpoint.

groupsstring[]

Optional groups of the user you're reading for. If you omit groups, you can read public pages only, with their public sections. On deployments where every page requires authentication, omitting groups works like an empty array. An empty array means a signed-in user with no groups: you can also read pages open to any signed-in user. When you pass groups, you can also read pages restricted to at least one of them. <Visibility> sections the user can't see are removed from the page. Mintlify doesn't verify group membership, so your backend must choose the groups for each user. On password-protected deployments that have public pages, pass an empty array to read pages that aren't marked public.

Response

Page content retrieved successfully

pathstring

The page path that was requested.

contentstring

The full text content of the page.

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    2 more changes in this revision