Mandala
Tools

Mintlify

Deploy, edit, search, and measure Mintlify documentation

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.

Tools

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
commitobjectCommit that produced the update
sourcestringSource of the update trigger: internal, github-app-installation, api, github, dashboard, gitlab, or onboarding

mintlify_trigger_preview

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_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.
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
idstringUnique identifier for the agent job
statusstringCurrent job status: active, completed, archived, or failed
sourceobjectSource repository information
modelstringAI model used for this job
prLinkstringGitHub pull request URL created by the agent. Null while the job is active or if no files changed.
createdAtstringTimestamp when the job was created
archivedAtstringTimestamp when the job was archived

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
idstringUnique identifier for the agent job
statusstringCurrent job status: active, completed, archived, or failed
sourceobjectSource repository information
modelstringAI model used for this job
prLinkstringGitHub pull request URL created by the agent. Null while the job is active or if no files changed.
createdAtstringTimestamp when the job was created
archivedAtstringTimestamp when the job was archived

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
idstringUnique identifier for the agent job
statusstringCurrent job status: active, completed, archived, or failed
sourceobjectSource repository information
modelstringAI model used for this job
prLinkstringGitHub pull request URL created by the agent. Null while the job is active or if no files changed.
createdAtstringTimestamp when the job was created
archivedAtstringTimestamp when the job was archived

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
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

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
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
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
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_searches

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
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_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
totalsobjectSite-wide content view event counts for the date range
viewsarrayPer-page content view event counts
hasMorebooleanWhether additional results are available

mintlify_get_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
totalsobjectSite-wide unique visitor totals for the date range, deduplicated across human and AI
visitorsarrayPer-page unique visitor counts
hasMorebooleanWhether additional results are available

Notes

  • Category: tools
  • Type: mintlify
Mintlify