Files
mintlify__docs/api/preview/trigger.mdx
Ethan Palm 564f4a768a Update plan gates (#6043)
* configure assistant on starter plan

* assistant

* update workflows changelog note

* auth

* Update custom-frontend.mdx

* remove pro plan
2026-06-01 14:29:31 -07:00

21 lines
914 B
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.
## 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.