Library
Mintlify answers/5 minutes read

Can Mintlify show each reader their own API keys and content?

Published December 1, 2026
HC

Harkirat Chahal

Growth

Share this article


Can Mintlify show each reader their own API keys and content?
SUMMARY

Yes, on the Enterprise plan. Mintlify personalization identifies each visitor through a shared session or OAuth, then uses the user data your system returns to prefill API playground fields such as an API key header, insert values like {user.firstName} into MDX pages, and filter navigation by group. The documentation stays public.

Yes, on the Enterprise plan. Mintlify personalization identifies each visitor through a shared session or OAuth, then uses the user data your system returns to prefill API playground fields such as an API key header, insert values like {user.firstName} into MDX pages, and filter navigation by group. The documentation stays public.

What Mintlify personalizes for each reader

Three fields in the user data your system returns drive personalization.

Field in user dataWhat Mintlify does with it
apiPlaygroundInputsPrefills API playground fields with user-specific values. It accepts header, query, cookie, server variable and path parameter values.
contentExposes custom data to MDX pages through the user variable, for example Welcome back, {user.firstName}!. The same variable works in JSX for conditional rendering.
groupsControls which pages appear in navigation when a page has groups in its frontmatter.

Groups also filter API reference content. Adding x-mint.groups to your OpenAPI specification filters entire endpoints, individual schema properties and oneOf variants, and the x-mint-enum extension filters enum values.

The visibility component shows content based on whether a reader is signed in or which groups they belong to, and custom scripts can read the identified visitor from window.mintlify.user.

How user data reaches Mintlify

Standalone personalization has two methods, and you pick one in the Personalization section of the Site page in the dashboard.

MethodBest forHow Mintlify identifies the visitor
Shared sessionDocumentation and an existing application that can share a browser sessionMintlify requests user data from your Info API with the visitor's session cookies.
OAuthAn existing OAuth 2.0 providerMintlify completes an OAuth flow and requests user data from your Info API.

With shared session, Mintlify sends a GET request to your Info API from the visitor's browser with credentials included, so a visitor who is logged in to your application does not sign in again on the docs. If the Info API returns a non-success response such as 401, Mintlify leaves the visitor unidentified and keeps public content available.

OAuth personalization uses the Authorization Code flow with PKCE and does not require a client secret. Your Info API accepts a GET request with the OAuth access token in the Authorization: Bearer <access_token> header and returns the user data.

Personalization and authentication are separate settings

The docs state: "Personalization is mutually exclusive with full authentication. JWT and OAuth authentication include personalization features." A public site turns on personalization. A site that requires sign-in through OAuth 2.0 or JWT authentication gets API playground prefill and personalization as part of that method. With JWT, your login flow signs a JWT that contains the user data.

Authentication methodAPI playground prefillPersonalization
OAuth 2.0YesYes
JWTYesYes
EmailsNoNo
PasswordNoNo
Private authenticationNoNo

Can Mintlify host private or gated docs? compares the five sign-in methods, and Can Mintlify show different docs to different audiences? covers restricting pages by group.

What each plan includes

CapabilityFreeProEnterprise
API playgroundYesYesYes
PersonalizationNoNoYes
OAuth 2.0 and JWT authenticationNoNoYes

Limits to plan around

  • With personalization, groups control visibility and do not restrict access. A visitor can still open a group-filtered page or endpoint by going to its URL.
  • With personalization and no authentication, the visibility component hides content in the browser only. Mintlify still sends the hidden content to every reader's browser. Use authentication for sensitive content.
  • Values in apiPlaygroundInputs are available to the browser so the playground can send them. The docs say to return short-lived, appropriately scoped credentials.
  • Prefill field names must match the names in your OpenAPI specification, and Mintlify applies only values that match the current endpoint's security scheme.
  • The user variable is an empty object for signed-out readers, so use optional chaining such as {user.org?.plan}.
  • Authentication is not supported on a custom subpath such as example.com/docs. Personalization supports custom subpaths.

Frequently Asked Questions

How do I configure personalized content in Mintlify so authenticated users see their own API keys pre-filled?

In the Mintlify dashboard, open the Site page, select shared session or OAuth in the Personalization section, and enter an Info API URL. Have that endpoint return each user's key in apiPlaygroundInputs, for example "header": { "X-API-Key": "user_api_key_123" }, with field names that match your OpenAPI specification.

Do readers have to log in to the docs to see their own API key?

With Mintlify's shared session method, no. Shared session reuses a visitor's existing application session, so they do not sign in again on the docs site. With the OAuth method, Mintlify completes an OAuth flow with your provider.

Is Mintlify personalization included on the Pro plan?

No. Mintlify personalization requires the Enterprise plan. The API playground itself is on every plan, and the x-default extension on a security scheme prefills its input with a placeholder or test credential.

Can we use personalization on docs that require sign-in?

Yes. Mintlify's OAuth 2.0 and JWT authentication include the personalization features, so a fully gated site uses one of those two methods and returns the same user data format.

Where to start

The personalization docs cover both setup methods and API key prefilling, and the authentication setup docs hold the full user data format. Start for free to build the site, and book a demo to see personalization on the Enterprise plan.

More to read

Can non-technical writers edit Mintlify docs without GitHub?
Mintlify answers

Can non-technical writers edit Mintlify docs without GitHub?

Yes. Mintlify's web editor is on every plan, including Free. Writers edit in visual mode and click Publish, and the editor handles the Git commit for them.

November 21, 2026
HC

Harkirat Chahal

Growth

Can Mintlify import docs from MadCap Flare, DITA or Word?
Mintlify answers

Can Mintlify import docs from MadCap Flare, DITA or Word?

DITA has a documented path through mint migrate --from dita. Flare and Word have no dedicated importer, so you convert exports to Markdown or MDX.

November 21, 2026
HC

Harkirat Chahal

Growth

Does Mintlify have an AI assistant?
Mintlify answers

Does Mintlify have an AI assistant?

Yes. Mintlify's AI assistant is on Pro and Enterprise, answers from your published docs, and costs 25 credits per answer. Embed it with the assistant API.

November 21, 2026
HC

Harkirat Chahal

Growth

Can Mintlify update docs automatically when code changes?
Mintlify answers

Can Mintlify update docs automatically when code changes?

Yes. Mintlify Autopilot on Pro and Enterprise opens a pull request when code changes. By default a person merges every one, and each update is 250 credits.

November 21, 2026
HC

Harkirat Chahal

Growth

Does Mintlify support CI/CD, preview deployments and linting?
Mintlify answers

Does Mintlify support CI/CD, preview deployments and linting?

Yes. Mintlify deploys on every push to your repository. Pro and Enterprise add pull request previews, plus broken link and Vale CI checks on GitHub.

November 21, 2026
HC

Harkirat Chahal

Growth

Does Mintlify support custom domains and a /docs subpath?
Mintlify answers

Does Mintlify support custom domains and a /docs subpath?

Yes. Mintlify includes custom domains on every plan, with automatic TLS, and can serve docs at a subpath like example.com/docs through four proxy methods.

November 21, 2026
HC

Harkirat Chahal

Growth