Skip to content
gist.link ↗

startProjectPreview

Mutation Deploy API — POST https://deploy.api.gist.link/graphql

Start the project’s sandbox dev server and return a token-gated browser preview URL. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.

deploy:mutation:startProjectPreview

The calling IAM key must hold this permission (or a wildcard that covers it: deploy:mutation:* or deploy:*) and the access token must have been minted with audience=deploy. See Permissions.

type Mutation {
startProjectPreview(projectId: Int!): PreviewInfo!
}
Argument Type Required Description
projectId Int! Yes —

PreviewInfo! — see the Deploy types reference.

Terminal window
curl https://deploy.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation StartProjectPreview($projectId: Int!) { startProjectPreview(projectId: $projectId) { url } }",
"variables": {
"projectId": 10
}
}
JSON