Endpoint
Authentication
This endpoint requires an admin API key. Include it in theAuthorization header as a Bearer token.
Path parameters
Request body
Response
Example request
Example response
How it works
When you trigger a PR check:- The autopilot agent fetches the pull request details from GitHub
- It analyzes the PR changes using an agentic workflow with access to:
- Your documentation repository files
- The code repository files
- The PR diff and metadata
- If documentation updates are needed, it creates a suggestion in your autopilot dashboard
- You can review and act on the suggestion from your dashboard
Error responses
Notes
- The Mintlify GitHub App must be installed on the repository owner’s organization
- The analysis runs asynchronously - the endpoint returns immediately with a
queuedstatus - Check your autopilot dashboard to see the results of the analysis
- This endpoint is automatically called by the GitHub webhook when PRs are merged to watched repositories