curl --request POST \
--url https://api.mintlify.com/v1/project/{projectId}/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"branch": "feature/my-branch"
}
'{
"statusId": "<string>",
"previewDeploymentId": "<string>",
"subdomain": "<string>",
"previewUrl": "<string>"
}Create a preview deployment from a Git branch to preview documentation changes before merging.
curl --request POST \
--url https://api.mintlify.com/v1/project/{projectId}/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"branch": "feature/my-branch"
}
'{
"statusId": "<string>",
"previewDeploymentId": "<string>",
"subdomain": "<string>",
"previewUrl": "<string>"
}The Authorization header expects a Bearer token. Use an admin API key (prefixed with mint_). This is a server-side secret key. Generate one on the API keys page in your dashboard.
The Git branch to create a preview deployment from.
"feature/my-branch"
Preview deployment creation has been queued.
Was this page helpful?