Skip to content
gist.link ↗

Deploy API

Cloud-provider connections and application deployment.

Endpoint POST https://deploy.api.gist.link/graphql
Token audience audience=deploy
Permission prefix deploy:

Mint an access token for this API with your IAM key and audience=deploy — see Authentication.

Operation Required permission Description
agentModelOptions deploy:query:agentModelOptions Selectable model × effort presets for the builder agent, scored on speed/economy/quality. Any org member.
agentSession deploy:query:agentSession One agent session plus its messages. Pass afterSequence to fetch only messages newer than those already loaded (the chat panel’s poll loop).
agentSessions deploy:query:agentSessions All agent sessions on a project, newest first. Any org member.
application deploy:query:application A single application (with its deployments eager-available via the nested field). Any org member.
applications deploy:query:applications Cursor-paginated applications for the current organization. Any org member.
connections deploy:query:connections This organization’s provider connections. Any org member.
customDomainSetup deploy:query:customDomainSetup Guide data for connecting hostname (under the settings domain domainUuid) to a project: the DNS record to add, detected DNS host, whether automatic setup is available, and live progress. Any org member.
deployment deploy:query:deployment A single deployment including its full log text. Any org member.
deployments deploy:query:deployments Cursor-paginated deployments, optionally filtered to one application. Any org member.
frameworkOptions deploy:query:frameworkOptions Supported framework paths (with allowed databases, tiers, and implementation status) for the new-project wizard. Any org member.
frameworkSuggestion deploy:query:frameworkSuggestion Rule-based wizard recommendation derived from a free-text description of the app. Any org member.
gitConnections deploy:query:gitConnections This organization’s git-hosting connections (tokens never returned). Any org member.
orgDomains deploy:query:orgDomains The organization’s registered domains (proxied from settings) for the connect-domain picker. Any org member.
project deploy:query:project A single builder project. Any org member.
projectFile deploy:query:projectFile Read one file from the project’s sandbox working copy. Any org member.
projectFiles deploy:query:projectFiles Recursive file listing of the project’s sandbox working copy. Any org member.
projects deploy:query:projects Cursor-paginated builder projects for the current organization. Any org member.
providers deploy:query:providers Registry metadata: every supported provider + its credential form schema. Any org member.
searchProjectFiles deploy:query:searchProjectFiles Workspace-wide literal text search (max 300 matches; node_modules/.git/dist excluded). Any org member.
Operation Required permission Description
cancelAgentSession deploy:mutation:cancelAgentSession Request cancellation of a running agent session (takes effect between loop iterations). ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
cancelDeployment deploy:mutation:cancelDeployment Best-effort cancellation of an in-flight deployment. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
connectProjectDomain deploy:mutation:connectProjectDomain Attach a custom hostname to the project’s managed deployment: provisions the platform custom hostname (certificate) and pushes the CNAME through the domain’s DNS provider connected in settings. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
connectProjectRepository deploy:mutation:connectProjectRepository Link a project to a repository and push the workspace as the initial commit. Omit repository to create one named after the project slug under the token’s account. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
createApplication deploy:mutation:createApplication Create an application. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
createConnection deploy:mutation:createConnection Create + test + encrypt a provider connection. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
createGitConnection deploy:mutation:createGitConnection Verify + encrypt a GitHub/GitLab access token as an org git connection. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
createProject deploy:mutation:createProject Create a builder project: seeds the framework starter into a fresh sandbox session. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
deleteApplication deploy:mutation:deleteApplication Delete an application. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
deleteConnection deploy:mutation:deleteConnection Delete a provider connection. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
deleteGitConnection deploy:mutation:deleteGitConnection Delete a git connection (projects linked through it lose sync until reconnected). ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
deleteProject deploy:mutation:deleteProject Delete a builder project (and destroy its sandbox session, best-effort). ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
deleteProjectFile deploy:mutation:deleteProjectFile Delete one file from the project’s sandbox working copy. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
deployProject deploy:mutation:deployProject Build and deploy the project to managed hosting (creates its managed Application on first use). ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
disconnectProjectDomain deploy:mutation:disconnectProjectDomain Detach the project’s custom hostname (best-effort certificate cleanup). ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
pullProjectChanges deploy:mutation:pullProjectChanges Hard-reset the workspace to the linked repository’s branch. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
pushProjectChanges deploy:mutation:pushProjectChanges Commit the workspace and push to the linked repository. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
renameProjectFile deploy:mutation:renameProjectFile Rename/move a file or folder within the workspace (fails if the destination exists). ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
retryProjectWorkspace deploy:mutation:retryProjectWorkspace Re-attempt sandbox provisioning for a project with no workspace; surfaces the real failure reason. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
rollbackDeployment deploy:mutation:rollbackDeployment Redeploy the previous succeeded provider ref for this application. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
runProjectCommand deploy:mutation:runProjectCommand Run one shell command in the project’s isolated sandbox (the integrated terminal); output is buffered. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
sendAgentMessage deploy:mutation:sendAgentMessage Append a user message to a project’s agent conversation and run the agent loop. Starts a new session when sessionId is omitted; reuses the session otherwise. Rejected while the session is already running. modelOption (an agentModelOptions id) switches the session’s model from this turn on; omitted keeps the session’s current choice. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
setEnvVars deploy:mutation:setEnvVars Replace this application’s env vars (encrypted at rest; values never echoed back). ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
startProjectPreview deploy:mutation:startProjectPreview Start the project’s sandbox dev server and return a token-gated browser preview URL. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
triggerDeployment deploy:mutation:triggerDeployment Queue a new deployment for an application. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
updateApplication deploy:mutation:updateApplication Update an application’s config. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.
writeProjectFile deploy:mutation:writeProjectFile Write one file in the project’s sandbox working copy (the manual editor’s save). ROLE_ADMIN or ROLE_DEPLOY_MANAGER.