Mintlify

Mintlify is a documentation platform for building, deploying, and maintaining developer docs. Docs live as MDX in your Git repository, deploy on every merge, and ship with a built-in AI assistant trained on your content.

With Mintlify, you can:

  • Deploy documentation from Git: Trigger production updates and per-branch preview deployments, then poll deployment status for logs, commit details, and screenshots
  • Run automations on demand: Kick off a scheduled automation immediately from CI/CD instead of waiting for its next run
  • Edit docs with an agent: Launch background agent jobs from a prompt, send follow-up instructions, and get a pull request when the agent changes files
  • Check writing quality: Analyze a page for AI-sounding prose and get flagged passages with suggested human rewrites
  • Search and retrieve content: Run semantic and keyword search across your docs, then fetch the full text of any matching page
  • Ask the docs assistant: Get a grounded answer with its cited source pages, and continue the conversation across turns with a thread ID
  • Export analytics: Pull user feedback, assistant conversations, caller stats, search queries, page views, and unique visitors

In Sim, the Mintlify integration lets your agents ship docs, drive documentation agent jobs, answer questions from your published content, and measure how that content performs — all from a single block.

Authentication. Mintlify issues two key types for these endpoints, and the API Key field takes whichever the selected operation needs:

  • Admin API key (mint_ prefix) — Trigger Update, Get Update Status, Trigger Preview Deployment, Trigger Automation, Create/Get Agent Job, Send Agent Message, Detect AI-Sounding Prose, and every analytics export
  • Assistant API key (mint_dsc_ prefix) — Search Documentation, Get Page Content, and Ask Assistant

Generate both on the API keys page in your Mintlify dashboard. The Project ID used by the admin operations is on the same page; the Domain used by the assistant operations is the identifier at the end of your dashboard URL (app.mintlify.com/organization/domain). The REST API requires a Mintlify Pro or Enterprise plan.

Usage Instructions

Integrate Mintlify into your workflow. Trigger production and preview deployments, run scheduled automations, launch documentation agent jobs, detect AI-sounding prose, search your docs and read page content, ask the docs assistant, and export feedback, conversation, search, view, and visitor analytics.

Actions

Mintlify Trigger Update

Queue a deployment update for a Mintlify documentation project from its configured deployment branch. Returns a status ID for tracking progress.

Input

ParameterTypeRequiredDescription
projectIdstringYesMintlify project ID, copied from the API keys page in your dashboard
apiKeystringYesMintlify admin API key (starts with mint_)

Output

ParameterTypeDescription
statusIdstringStatus ID of the queued update. Poll it with Get Update Status.

Mintlify Get Update Status

Get the status of a Mintlify deployment update from its status ID, including logs, commit details, and screenshots.

Input

ParameterTypeRequiredDescription
statusIdstringYesStatus ID returned by Trigger Update or Trigger Preview Deployment
apiKeystringYesMintlify admin API key (starts with mint_)

Output

ParameterTypeDescription
idstringStatus ID of the update
projectIdstringDocumentation project ID
createdAtstringISO 8601 UTC start time
endedAtstringISO 8601 UTC end time
statusstringUpdate status: queued, in_progress, success, or failure
summarystringSummary of the update status
logsarrayDeployment log lines
subdomainstringSubdomain of the docs being updated
screenshotstringScreenshot of the docs
screenshotLightstringLight-mode screenshot of the docs
screenshotDarkstringDark-mode screenshot of the docs
authorobjectAuthor of the update
namestringAuthor name
avatarUrlstringAuthor avatar image URL
githubUserIdnumberAuthor GitHub user ID
commitobjectCommit that produced the update
shastringCommit SHA
refstringGit ref of the commit
messagestringCommit message
filesChangedobjectFiles added, modified, and removed by the commit
addedarrayNew files added
modifiedarrayExisting files that were modified
removedarrayFiles that were removed
sourcestringSource of the update trigger: internal, github-app-installation, api, github, dashboard, gitlab, or onboarding

Mintlify Trigger Preview Deployment

Create or update a Mintlify preview deployment for a Git branch. Redeploys when a preview already exists for the branch.

Input

ParameterTypeRequiredDescription
projectIdstringYesMintlify project ID, copied from the API keys page in your dashboard
branchstringYesName of the Git branch to create a preview deployment for
apiKeystringYesMintlify admin API key (starts with mint_)

Output

ParameterTypeDescription
statusIdstringStatus ID for tracking the preview deployment
previewUrlstringURL where the preview deployment is hosted

Mintlify Trigger Automation

Run a scheduled Mintlify automation immediately instead of waiting for its next scheduled time. Only automations with a custom schedule can be triggered.

Input

ParameterTypeRequiredDescription
projectIdstringYesMintlify project ID, copied from the API keys page in your dashboard
automationIdstringYesAutomation ID, copied from the automation's settings panel on the Automations page
apiKeystringYesMintlify admin API key (starts with mint_)

Output

ParameterTypeDescription
schemaIdstringID of the triggered automation
instanceIdstringID of the queued automation run, visible in the run history
jobIdstringID of the background job processing the run

Mintlify Detect AI-Sounding Prose

Analyze a documentation page for AI-generated prose and return flagged passages with suggested human rewrites. Consumes one AI credit per checked page.

Input

ParameterTypeRequiredDescription
projectIdstringYesMintlify project ID, copied from the API keys page in your dashboard
pathstringYesRepo-relative path of the page, used for reporting only
contentstringYesRaw MDX or Markdown content of the page to check (max 1,000,000 characters)
apiKeystringYesMintlify admin API key (starts with mint_)

Output

ParameterTypeDescription
pathstringPath from the request
skippedstringReason the page was skipped ("too_short"), or null when the page was checked
predictionShortstringOverall verdict for the page: AI, AI-Assisted, Human, or Mixed. Null when the page was skipped.
fractionAinumberFraction of the page detected as AI-generated (0-1). Null when the page was skipped.
fractionAiAssistednumberFraction of the page detected as AI-assisted (0-1). Null when the page was skipped.
fractionHumannumberFraction of the page detected as human-written (0-1). Null when the page was skipped.
windowsarrayFlagged non-human passages with line ranges and suggested rewrites. Empty when the page was skipped.
textstringThe flagged passage text
labelstringDetection label, for example AI-Generated
aiAssistanceScorenumberAI-assistance score for the passage (0-1)
confidencejsonDetection confidence, either a label such as High or a numeric score
startLinenumber1-based start line of the passage
endLinenumber1-based end line of the passage
rewritesarraySuggested human rewrites of the passage
textstringThe rewritten passage
rationalestringWhy the rewrite reads more human
creditsChargednumberAI credits charged for this request (0 when skipped)

Mintlify Create Agent Job

Create a background Mintlify agent job that edits your documentation from a prompt. Opens a pull request when the agent successfully edits files.

Input

ParameterTypeRequiredDescription
projectIdstringYesMintlify project ID, copied from the API keys page in your dashboard
promptstringYesThe instruction for the agent to execute
apiKeystringYesMintlify admin API key (starts with mint_)

Output

ParameterTypeDescription
statusIdstringStatus ID of a queued deployment
previewUrlstringURL where the preview deployment is hosted
idstringDeployment status ID or agent job ID
projectIdstringDocumentation project ID
createdAtstringCreation timestamp
endedAtstringDeployment end timestamp
archivedAtstringAgent job archive timestamp
statusstringDeployment status or agent job status
summarystringSummary of the deployment status
logsarrayDeployment log lines
subdomainstringSubdomain of the docs being updated
screenshotstringScreenshot of the docs
screenshotLightstringLight-mode screenshot of the docs
screenshotDarkstringDark-mode screenshot of the docs
authorjsonAuthor of the deployment update
commitjsonCommit that produced the deployment
sourcejsonDeployment trigger source (string) or agent job source repository details (object)
schemaIdstringID of the triggered automation
instanceIdstringID of the queued automation run
jobIdstringID of the background job processing an automation run
modelstringAI model used for the agent job
prLinkstringPull request URL created by the agent
pathstringDocumentation page path
contentstringFull text content of the page
skippedstringReason a prose check was skipped
predictionShortstringProse verdict: AI, AI-Assisted, Human, Mixed
fractionAinumberFraction of the page detected as AI-generated
fractionAiAssistednumberFraction detected as AI-assisted
fractionHumannumberFraction detected as human-written
windowsarrayFlagged passages with suggested rewrites
creditsChargednumberAI credits charged for the prose check
resultsarrayDocumentation search results
resultCountnumberNumber of search results returned
textstringAssembled assistant answer
threadIdstringAssistant thread ID for follow-up messages
sourcesarrayDocumentation sources the assistant cited
feedbackarrayFeedback entries or per-page feedback aggregates
conversationsarrayAssistant conversation history
searchesarrayDocumentation search terms with hit counts
totalSearchesnumberTotal search events in the date range
viewsarrayPer-page content view event counts
visitorsarrayPer-page unique visitor counts
totalsjsonSite-wide human, AI, and total traffic counts
webnumberAssistant queries from the documentation site
apinumberAssistant queries from API calls
othernumberAssistant queries from other sources
totalnumberTotal assistant queries across all caller types
nextCursorstringCursor for the next page of results
hasMorebooleanWhether additional results are available

Mintlify Get Agent Job

Retrieve the current status and details of a Mintlify agent job, including the pull request link once the agent opens one.

Input

ParameterTypeRequiredDescription
projectIdstringYesMintlify project ID, copied from the API keys page in your dashboard
jobIdstringYesUnique identifier of the agent job
apiKeystringYesMintlify admin API key (starts with mint_)

Output

ParameterTypeDescription
statusIdstringStatus ID of a queued deployment
previewUrlstringURL where the preview deployment is hosted
idstringDeployment status ID or agent job ID
projectIdstringDocumentation project ID
createdAtstringCreation timestamp
endedAtstringDeployment end timestamp
archivedAtstringAgent job archive timestamp
statusstringDeployment status or agent job status
summarystringSummary of the deployment status
logsarrayDeployment log lines
subdomainstringSubdomain of the docs being updated
screenshotstringScreenshot of the docs
screenshotLightstringLight-mode screenshot of the docs
screenshotDarkstringDark-mode screenshot of the docs
authorjsonAuthor of the deployment update
commitjsonCommit that produced the deployment
sourcejsonDeployment trigger source (string) or agent job source repository details (object)
schemaIdstringID of the triggered automation
instanceIdstringID of the queued automation run
jobIdstringID of the background job processing an automation run
modelstringAI model used for the agent job
prLinkstringPull request URL created by the agent
pathstringDocumentation page path
contentstringFull text content of the page
skippedstringReason a prose check was skipped
predictionShortstringProse verdict: AI, AI-Assisted, Human, Mixed
fractionAinumberFraction of the page detected as AI-generated
fractionAiAssistednumberFraction detected as AI-assisted
fractionHumannumberFraction detected as human-written
windowsarrayFlagged passages with suggested rewrites
creditsChargednumberAI credits charged for the prose check
resultsarrayDocumentation search results
resultCountnumberNumber of search results returned
textstringAssembled assistant answer
threadIdstringAssistant thread ID for follow-up messages
sourcesarrayDocumentation sources the assistant cited
feedbackarrayFeedback entries or per-page feedback aggregates
conversationsarrayAssistant conversation history
searchesarrayDocumentation search terms with hit counts
totalSearchesnumberTotal search events in the date range
viewsarrayPer-page content view event counts
visitorsarrayPer-page unique visitor counts
totalsjsonSite-wide human, AI, and total traffic counts
webnumberAssistant queries from the documentation site
apinumberAssistant queries from API calls
othernumberAssistant queries from other sources
totalnumberTotal assistant queries across all caller types
nextCursorstringCursor for the next page of results
hasMorebooleanWhether additional results are available

Mintlify Send Agent Message

Send a follow-up instruction to an existing Mintlify agent job. The message is processed asynchronously.

Input

ParameterTypeRequiredDescription
projectIdstringYesMintlify project ID, copied from the API keys page in your dashboard
jobIdstringYesUnique identifier of the agent job to send a message to
promptstringYesThe follow-up instruction for the agent
apiKeystringYesMintlify admin API key (starts with mint_)

Output

ParameterTypeDescription
statusIdstringStatus ID of a queued deployment
previewUrlstringURL where the preview deployment is hosted
idstringDeployment status ID or agent job ID
projectIdstringDocumentation project ID
createdAtstringCreation timestamp
endedAtstringDeployment end timestamp
archivedAtstringAgent job archive timestamp
statusstringDeployment status or agent job status
summarystringSummary of the deployment status
logsarrayDeployment log lines
subdomainstringSubdomain of the docs being updated
screenshotstringScreenshot of the docs
screenshotLightstringLight-mode screenshot of the docs
screenshotDarkstringDark-mode screenshot of the docs
authorjsonAuthor of the deployment update
commitjsonCommit that produced the deployment
sourcejsonDeployment trigger source (string) or agent job source repository details (object)
schemaIdstringID of the triggered automation
instanceIdstringID of the queued automation run
jobIdstringID of the background job processing an automation run
modelstringAI model used for the agent job
prLinkstringPull request URL created by the agent
pathstringDocumentation page path
contentstringFull text content of the page
skippedstringReason a prose check was skipped
predictionShortstringProse verdict: AI, AI-Assisted, Human, Mixed
fractionAinumberFraction of the page detected as AI-generated
fractionAiAssistednumberFraction detected as AI-assisted
fractionHumannumberFraction detected as human-written
windowsarrayFlagged passages with suggested rewrites
creditsChargednumberAI credits charged for the prose check
resultsarrayDocumentation search results
resultCountnumberNumber of search results returned
textstringAssembled assistant answer
threadIdstringAssistant thread ID for follow-up messages
sourcesarrayDocumentation sources the assistant cited
feedbackarrayFeedback entries or per-page feedback aggregates
conversationsarrayAssistant conversation history
searchesarrayDocumentation search terms with hit counts
totalSearchesnumberTotal search events in the date range
viewsarrayPer-page content view event counts
visitorsarrayPer-page unique visitor counts
totalsjsonSite-wide human, AI, and total traffic counts
webnumberAssistant queries from the documentation site
apinumberAssistant queries from API calls
othernumberAssistant queries from other sources
totalnumberTotal assistant queries across all caller types
nextCursorstringCursor for the next page of results
hasMorebooleanWhether additional results are available

Mintlify Search Documentation

Run a semantic and keyword search across a Mintlify documentation site, with optional version, language, tag, and group filters.

Input

ParameterTypeRequiredDescription
domainstringYesDomain identifier from your domain.mintlify.site URL, found at the end of your dashboard URL
querystringYesSearch query to execute against your documentation content
pageSizenumberNoNumber of search results to return, between 1 and 50 (default 10)
scoreThresholdnumberNoMinimum relevance score for results, between 0 and 1
versionstringNoFilter results by documentation version
languagestringNoFilter results by content language
tagstringNoFilter results by tag
groupsjsonNoDocumentation groups the caller is authorized to access, as a JSON array of strings. Only applies to deployments using auth or userAuth.
apiKeystringYesMintlify assistant API key (starts with mint_dsc_)

Output

ParameterTypeDescription
resultsarrayMatching documentation chunks ordered by relevance
contentstringThe matching content from your documentation
pathstringPath or URL to the source document
metadatajsonAdditional metadata about the search result
resultCountnumberNumber of results returned

Mintlify Get Page Content

Retrieve the full text content of a Mintlify documentation page by its path. Use it after a search to fetch the complete page.

Input

ParameterTypeRequiredDescription
domainstringYesDomain identifier from your domain.mintlify.site URL, found at the end of your dashboard URL
pathstringYesPage slug or path to retrieve, matching the path field returned by Search Documentation
groupsjsonNoDocumentation groups the caller is authorized to access, as a JSON array of strings. Only applies to deployments using auth or userAuth.
apiKeystringYesMintlify assistant API key (starts with mint_dsc_)

Output

ParameterTypeDescription
pathstringThe page path that was requested
contentstringFull text content of the page

Mintlify Create Assistant Message

Ask the Mintlify assistant, trained on your documentation, a question and get the assembled answer with its cited sources. Consumes the deployment's assistant credits.

Input

ParameterTypeRequiredDescription
domainstringYesDomain identifier from your domain.mintlify.site URL, found at the end of your dashboard URL
messagestringNoThe question to ask the assistant. Ignored when a full Messages array is supplied.
messagesjsonNoFull AI SDK message array for multi-turn conversations, each entry with id, role, and parts. Overrides Message when provided.
fpstringNoFingerprint identifier for tracking conversation sessions (default "anonymous")
threadIdstringNoThread ID from a previous response, to continue the same conversation
retrievalPageSizenumberNoNumber of documentation search results used to generate the response
currentPathstringNoPath of the page the user is currently viewing, for more relevant answers (max 200 characters)
versionstringNoFilter retrieval by documentation version
languagestringNoFilter retrieval by content language
groupsjsonNoGroup identifiers to filter retrieval by, as a JSON array of strings
assistantContextjsonNoContextual snippets for the assistant, as a JSON array of objects with type ("code" or "textSelection"), value, and optional path and elementId
apiKeystringYesMintlify assistant API key (starts with mint_dsc_)

Output

ParameterTypeDescription
textstringAssembled assistant answer
threadIdstringThread ID for continuing this conversation in a follow-up call
sourcesarrayDocumentation sources the assistant cited
sourceIdstringSource identifier
urlstringURL of the cited page
titlestringTitle of the cited page

Mintlify Get Feedback

Export paginated user feedback from a Mintlify documentation project, with optional date-range, source, and status filters.

Input

ParameterTypeRequiredDescription
projectIdstringYesMintlify project ID, copied from the API keys page in your dashboard
dateFromstringNoInclusive start date in ISO 8601 or YYYY-MM-DD format
dateTostringNoExclusive end date in ISO 8601 or YYYY-MM-DD format
sourcestringNoFilter by feedback source: code_snippet, contextual, agent, or thumbs_only
statusstringNoComma-separated statuses to filter by: pending, in_progress, resolved, dismissed
limitnumberNoMax results per page, between 1 and 100 (default 50)
cursorstringNoPagination cursor returned as nextCursor by a previous call
apiKeystringYesMintlify admin API key (starts with mint_)

Output

ParameterTypeDescription
feedbackarrayFeedback entries for the requested window
idstringUnique feedback identifier
pathstringPath or URL of the page
commentstringText of the feedback comment
createdAtstringSubmission timestamp
sourcestringOrigin: code_snippet, contextual, agent, or thumbs_only
statusstringReview status: pending, in_progress, resolved, or dismissed
helpfulbooleanWhether the user found the content helpful (contextual feedback only)
contactstringEmail the user provided for follow-up (contextual feedback only)
codestringCode snippet the feedback relates to (code_snippet feedback only)
filenamestringFilename of the code snippet (code_snippet feedback only)
langstringLanguage of the code snippet (code_snippet feedback only)
nextCursorstringCursor for the next page, or null when there are no more results
hasMorebooleanWhether additional results are available

Mintlify Get Feedback By Page

Export Mintlify feedback counts aggregated by documentation page path, broken down into thumbs up, thumbs down, and code snippet feedback.

Input

ParameterTypeRequiredDescription
projectIdstringYesMintlify project ID, copied from the API keys page in your dashboard
dateFromstringNoInclusive start date in ISO 8601 or YYYY-MM-DD format
dateTostringNoExclusive end date in ISO 8601 or YYYY-MM-DD format
limitnumberNoMax results per page, between 1 and 100 (default 10)
sourcestringNoFilter by feedback source: code_snippet, contextual, agent, or thumbs_only
statusstringNoComma-separated statuses to filter by: pending, in_progress, resolved, dismissed
apiKeystringYesMintlify admin API key (starts with mint_)

Output

ParameterTypeDescription
feedbackarrayFeedback counts aggregated by documentation page path
pathstringThe documentation page path
thumbsUpnumberPositive contextual feedback entries
thumbsDownnumberNegative contextual feedback entries
codenumberCode snippet feedback entries
totalnumberTotal feedback entries
hasMorebooleanWhether additional results are available

Mintlify Get Assistant Conversations

Export paginated Mintlify AI assistant conversation history, including the query, response, cited sources, and whether the question was answered.

Input

ParameterTypeRequiredDescription
projectIdstringYesMintlify project ID, copied from the API keys page in your dashboard
dateFromstringNoInclusive start date in ISO 8601 or YYYY-MM-DD format
dateTostringNoExclusive end date in ISO 8601 or YYYY-MM-DD format
limitnumberNoMax results per page, between 1 and 1000 (default 100)
cursorstringNoULID pagination cursor returned as nextCursor by a previous call
apiKeystringYesMintlify admin API key (starts with mint_)

Output

ParameterTypeDescription
conversationsarrayAssistant conversations for the requested window
idstringUnique conversation identifier
timestampstringWhen the conversation occurred
querystringThe user's question
responsestringThe assistant's response
sourcesarrayDocumentation pages referenced in the response
titlestringTitle of the page
urlstringURL of the page
resolutionStatusstringWhether the assistant answered the question: answered or unanswered
queryCategorystringAuto-assigned category grouping for the conversation
pageUrlstringFull URL of the page where the conversation started
nextCursorstringCursor for the next page, or null when there are no more results
hasMorebooleanWhether additional results are available

Mintlify Get Assistant Caller Stats

Get a breakdown of Mintlify assistant query counts by caller type — web, API, and other — for a date range.

Input

ParameterTypeRequiredDescription
projectIdstringYesMintlify project ID, copied from the API keys page in your dashboard
dateFromstringNoInclusive start date in ISO 8601 or YYYY-MM-DD format
dateTostringNoExclusive end date in ISO 8601 or YYYY-MM-DD format
apiKeystringYesMintlify admin API key (starts with mint_)

Output

ParameterTypeDescription
webnumberAssistant queries originating from the documentation site
apinumberAssistant queries originating from API calls
othernumberAssistant queries from other sources such as integrations and SDKs
totalnumberTotal assistant queries across all caller types

Mintlify Get Search Queries

Export Mintlify documentation search terms for a date range, ordered by hit count, with click-through rate and the most-clicked result path.

Input

ParameterTypeRequiredDescription
projectIdstringYesMintlify project ID, copied from the API keys page in your dashboard
dateFromstringNoInclusive start date in ISO 8601 or YYYY-MM-DD format
dateTostringNoExclusive end date in ISO 8601 or YYYY-MM-DD format
limitnumberNoMax search terms per page, between 1 and 100 (default 50)
cursorstringNoOpaque pagination cursor returned as nextCursor by a previous call
apiKeystringYesMintlify admin API key (starts with mint_)

Output

ParameterTypeDescription
searchesarraySearch terms ordered by hit count descending
searchQuerystringThe search term entered by users
hitsnumberNumber of times this term was searched
ctrnumberClick-through rate for this search term
topClickedPagestringMost-clicked result path for this query
lastSearchedAtstringTimestamp of the last time this term was searched
totalSearchesnumberTotal search events in the date range, summing all hits rather than distinct queries
nextCursorstringCursor for the next page, or null when there are no more results

Mintlify Get Page Views

Export Mintlify per-path and site-wide content view counts for a date range, split by human and AI bot traffic.

Input

ParameterTypeRequiredDescription
projectIdstringYesMintlify project ID, copied from the API keys page in your dashboard
dateFromstringNoInclusive start date in ISO 8601 or YYYY-MM-DD format
dateTostringNoExclusive end date in ISO 8601 or YYYY-MM-DD format
limitnumberNoMax results per page, between 1 and 250 (default 50)
offsetnumberNoNumber of rows to skip for offset-based pagination (default 0)
apiKeystringYesMintlify admin API key (starts with mint_)

Output

ParameterTypeDescription
viewsarrayPer-page content view event counts
pathstringThe documentation page path
humannumberContent view events from human traffic
ainumberContent view events from AI bot traffic
totalnumberTotal content view events
hasMorebooleanWhether additional results are available

Mintlify Get Unique Visitors

Export Mintlify per-path and site-wide approximate distinct visitor counts for a date range, split by human and AI bot traffic.

Input

ParameterTypeRequiredDescription
projectIdstringYesMintlify project ID, copied from the API keys page in your dashboard
dateFromstringNoInclusive start date in ISO 8601 or YYYY-MM-DD format
dateTostringNoExclusive end date in ISO 8601 or YYYY-MM-DD format
limitnumberNoMax results per page, between 1 and 250 (default 50)
offsetnumberNoNumber of rows to skip for offset-based pagination (default 0)
apiKeystringYesMintlify admin API key (starts with mint_)

Output

ParameterTypeDescription
visitorsarrayPer-page unique visitor counts
pathstringThe documentation page path
humannumberUnique human visitors
ainumberUnique AI bot visitors
totalnumberApproximate distinct visitors, deduplicated across human and AI
hasMorebooleanWhether additional results are available

On this page