Trigger preview deployment

Changed on

Creates or updates a preview deployment for a specific branch. If a preview already exists for the branch, it triggers a redeployment. Returns a status ID to track progress and the preview URL.

Authenticate with an admin API key.

post/project/preview/{projectId}

Request

  • Base URL
    https://api.mintlify.com/v1
  • Auth
    HTTP bearer

Path parameters

projectIdstring required

Your project ID. Can be copied from the API keys page in your dashboard.

Request body

branchstring required

The name of the Git branch to create a preview deployment for.

Response

Preview deployment queued successfully.

statusIdstring

The status ID for tracking the preview deployment. Use this with the Get deployment status endpoint.

previewUrlstring

The URL where the preview deployment is hosted.

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status