Files
mintlify__docs/api/preview/trigger.mdx
mintlify[bot] 850d58c17a docs: apply style and tone fixes to preview deployment pages (#7130)
Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
2026-08-26 11:36:06 -07:00

24 lines
1.2 KiB
Plaintext

---
title: "Trigger preview deployment"
openapi: "/openapi.json POST /project/preview/{projectId}"
keywords: ["preview", "preview deployment", "branch preview", "staging"]
---
Use this endpoint to programmatically create or update a preview deployment for a Git branch. If a preview already exists for the specified branch, the endpoint triggers a redeployment instead of creating a duplicate.
The response includes a `statusId` that you can pass to [Get deployment status](/api/update/status) to track the deployment progress.
## Branch requirements
The `branch` must exist in the repository connected to your Mintlify project and you must have the Mintlify GitHub App installed. Branches on forks are not supported. See [Fork pull requests](/deploy/preview-deployments#fork-pull-requests) for how to preview changes from a fork.
## Use cases
- **CI/CD pipelines**: Automatically create preview deployments when users open or update pull requests.
- **Scheduled previews**: Build previews from long-running feature branches on a schedule.
- **Custom tooling**: Integrate preview creation into internal workflows or Slack bots.
## Rate limits
This endpoint allows up to 5 requests per minute per organization.