Mutations

FieldDescription
_empty
createAccountCreate a team account that the caller owns.
updateAccountChange an account's name or slug. Requires account.settings.manage.
updateAccountMemberChange an account member's role. Requires account.members.manage.
deleteAccountMemberRemove a member from the account, or leave it yourself; removing another member requires account.members.manage. Requires account.read; API keys also need delete scope.
createAccountInvitationCreate account invitation. Requires account.invitations.manage.
deleteAccountInvitationDelete account invitation. Requires account.invitations.manage; API keys also need delete scope.
acceptAccountInvitationAccept account invitation.
createAccountProjectCreate account project. Requires account.projects.create.
appendRunEventsAppend run events.
createRunInputRequestCreate an input request.
createInputResponseRespond to input request.
cancelInputRequestCancel an input request.
createRunCreate a run.
cancelRunCancel a run.
pauseRunPause a run. Requires project.runs.write.
resumeRunResume a run. Requires project.runs.write.
finalizeRunFinalize a run.
succeedRunSucceed a run.
failRunFail a run.
updateRunUpdate a run. Requires project.runs.write.
deleteRunDelete a run. Requires project.runs.admin; API keys also need delete scope.
createRunHeartbeatRenew the execution lease of the current run generation.
createRunEventTokenIssue a nondelegating event-writer credential for a direct child run.
createScheduledRunRun a schedule now. Requires project.runs.write.
patchInferencePolicyUpdate the models a project allows and denies and its default model, replacing each key sent; returns the policy. Requires project.settings.manage.
deleteInferencePolicyRemove the stored inference policy of a project so it is served the defaults again; returns an acknowledgement. Requires project.settings.manage.
updateAccountInferencePolicyUpdate the models an account allows and denies and its default model, replacing each key sent; returns the policy. Requires account.settings.manage.
deleteAccountInferencePolicyRemove the model policy of an account, so its projects may use every model again; returns an acknowledgement. Requires account.settings.manage.
createCreditCheckoutStart a Stripe checkout to buy a credit package for an account, or for the account that owns a project; returns the checkout URL. Requires account.billing.manage.
redeemCreditCouponRedeem a coupon code for credits on an account; returns the credits granted and the new balance, or already_redeemed for a code the account used before. Requires account.billing.manage.
updateBillingDetailsChange the name, email, phone or address on the invoices of an account, where an omitted field keeps its value and null clears it; returns the updated billing details. Requires account.billing.manage.
createBudgetCreate a monthly AI spending limit for a project, a member on a project, an API key, or a combination of these.
updateBudgetChange the monthly limit of a budget, keeping its scope and this month’s usage.
deleteBudgetDelete budget.
createApiKeyCreate an API key and return its secret once.
updateApiKeyChange an API key's name or expiry.
deleteApiKeyRevoke an API key so that it can no longer authenticate; the key stays listed with status revoked.
updateAgentPushRuntimeServiceDrain or resume a runtime service.
createBranchCreate a branch from the project root or from another branch, snapshotting its files. Requires project.files.write.
deleteBranchDelete a branch and its uncommitted changes. Requires project.files.write; API keys also need delete scope.
mergeBranchMerge a branch into main or another branch, applying its file changes, deletions and the merge message to the target. Requires project.files.write.
createBranchPolicyCreate a merge policy for branches matching a pattern. Requires project.settings.manage.
deleteBranchPolicyDelete a branch policy so it no longer blocks merges. Requires project.settings.manage; API keys also need delete scope.
createBranchApprovalApprove a branch as the calling user, optionally with a comment. Requires project.files.write.
dismissBranchApprovalDismiss an approval so it no longer counts, keeping its record with the reason. Requires project.files.write; API keys also need delete scope.
updateBranchStatusCheckCreate or replace one named status check on a branch. Requires project.files.write.
writeCacheEntryCreate or replace one cache entry, as REST PUT /projects/{project_reference}/cache/entries/{key}. Requires project.cache.write.
deleteCacheEntryDelete one cache entry, as REST DELETE /projects/{project_reference}/cache/entries/{key}. Requires project.cache.write; API keys also need delete scope.
deleteCacheEntriesDelete every cache entry matching a glob pattern; * clears the project cache. Requires project.cache.write; API keys also need delete scope.
resolveProjectDependenciesResolve dependency pins. Requires project.files.write.
createChannelConnect a Slack agent. Requires project.channels.write.
updateChannelUpdate a channel binding. Requires project.channels.write.
deleteChannelDisconnect a channel. Requires project.channels.write; API keys also need delete scope.
checkChannelTest channel message delivery. Requires project.channels.write.
deleteDeploymentDelete a deployment. Requires project.deployments.write; API keys also need delete scope.
updateDomainUpdate a custom domain. Requires project.domains.write.
createEvalCreate an eval source file in the project source or a preview branch to test an agent against a dataset and metrics; returns the eval source document. Requires project.evals.write.
updateEvalChange fields of a structured eval, such as its name, target, dataset or metrics, where an omitted field keeps its value; returns the updated eval source document. Requires project.evals.write.
deleteEvalDelete the source file of a structured eval that is no longer needed, from the project source or a preview branch; returns an acknowledgement, or a conflict when the file must be edited in code because it defines other evals or builds the eval in code. Requires project.evals.write; API keys also need delete scope.
runProjectEvalStart a run of an eval against its agent, reading the eval from the project or a preview branch and running it on the main branch, an environment or a preview branch; returns the new eval run, which finishes in the background. Requires project.evals.run.
deleteFileDelete a file. Requires project.files.write; API keys also need delete scope.
moveFileMove a file. Requires project.files.write.
createFileCreate a file. Requires project.files.write.
updateFileUpdate a file. Requires project.files.write.
createImageGenerationGenerate 1 to 10 images from a text prompt with the EU image model and return their URLs; every image is billed in credits. Requires project.files.write.
updateProjectIntegrationChange the scope, allowed tools, configuration or execution mode of a project integration by sending only the fields to change, so that an omitted field keeps its stored value; returns the updated project integration. Requires project.integrations.configure.
deleteProjectIntegrationReset the settings of a project for one integration to the defaults without touching its connections, also when no settings were stored; every surface returns { ok: true }. Requires project.integrations.configure; API keys also need delete scope.
runIntegrationToolRun one integration tool synchronously by its qualified name, with provider arguments and an optional exact connection; returns the native tool result, where a provider failure or a refusal of the tool layer is a result with isError true, not an error.
createRetrievalDocumentCreate retrieval document. Requires project.knowledge.write.
updateRetrievalDocumentUpdate retrieval document. Requires project.knowledge.write.
deleteRetrievalDocumentDelete retrieval document. Requires project.knowledge.write; API keys also need delete scope.
updateProjectMemberChanges a non-owner member's role to admin, editor or viewer; the owner changes only through updateProjectOwner. Requires project.members.manage.
updateProjectOwnerTransfers project ownership from the calling owner to another existing member and demotes the previous owner to admin. Requires project.members.manage.
deleteProjectMemberRemoves a member from the project; the last owner cannot be removed, so transfer ownership first. Requires project.members.manage; API keys also need delete scope.
createProjectInvitationCreate an invitation. Requires project.invites.manage.
deleteProjectInvitationDelete an invitation. Requires project.invites.manage; API keys also need delete scope.
resendProjectInvitationResend an invitation. Requires project.invites.manage.
createConnectSessionCreate connect session.
deleteConnectionDelete a connection.
createAgentCreate agent. Requires project.agents.write.
updateAgentUpdate agent. Requires project.agents.write.
deleteAgentDelete agent. Requires project.agents.write; API keys also need delete scope.
installAgentInstall agent. Requires project.agents.write.
installAgentForProjectsInstall agent in projects. Requires project.agents.write.
uninstallAgentUninstall agent. Requires project.agents.write; API keys also need delete scope.
createPromptCreate a prompt source file in the project source or a preview branch so agents and clients can reuse its text; returns the prompt source document. Requires project.agents.write.
updatePromptReplace the content and description of a structured prompt, where REST and GraphQL clear an omitted description and the MCP tool keeps it; returns the updated prompt source document. Requires project.agents.write.
deletePromptDelete the source file of a prompt that is no longer needed; returns an acknowledgement. Requires project.agents.write.
createToolCreate a project tool source file in the project source or a preview branch so project agents can call it; returns the tool source document. Requires project.agents.write.
updateToolReplace the description of a structured project tool, where REST and GraphQL clear an omitted description and the MCP tool keeps it; returns the updated tool source document. Requires project.agents.write.
deleteToolDelete the source file of a project tool that is no longer needed; returns an acknowledgement. Requires project.agents.write.
createProjectResourceCreate a project resource, an MCP resource definition under resources/, in the project source or a preview branch; returns the project resource source document. Requires project.files.write.
updateProjectResourceChange the pattern, description or title of a structured project resource, where an omitted field keeps its value; returns the updated project resource source document. Requires project.files.write.
deleteProjectResourceDelete the source file of a project resource that is no longer needed; returns an acknowledgement. Requires project.files.write.
createTaskCreate a task source file in the project source or a preview branch when a new unit of work must be runnable or schedulable; returns the task source document. Requires project.runs.write.
updateTaskChange the name, description or schedulable flag of a structured task, where an omitted description or flag keeps its value; returns the updated task source document. Requires project.runs.write.
deleteTaskDelete the source file of a task that is no longer needed; returns the acknowledgement ok: true. Requires project.runs.write.
createWorkflowCreate a workflow source file in the project source or a preview branch when a new multi-step process must be runnable or schedulable; returns the workflow source document. Requires project.runs.write.
updateWorkflowChange the description, version or schedulable flag of a structured workflow, where an omitted field keeps its value; returns the updated workflow source document. Requires project.runs.write.
deleteWorkflowDelete the source file of a workflow that is no longer needed; returns the acknowledgement ok: true. Requires project.runs.write.
createSkillCreate a skill, a SKILL.md file an agent loads on demand, in the project source or a preview branch; returns the skill source document. Requires project.agents.write.
updateSkillChange the description, allowed tools or instructions of a structured skill, where omitted tools and instructions keep their values; returns the updated skill source document. Requires project.agents.write.
deleteSkillDelete the source files of a skill that is no longer needed; returns an acknowledgement. Requires project.agents.write.
createAgentAvatarCreate agent avatar. Requires project.agents.write.
createAgentLabelCreate agent label. Requires project.agents.write.
updateAgentLabelUpdate agent label. Requires project.agents.write.
deleteAgentLabelDelete agent label. Requires project.agents.write; API keys also need delete scope.
createProjectLabelCreate project label. Requires project.settings.manage.
updateProjectLabelUpdate project label. Requires project.settings.manage.
deleteProjectLabelDelete project label. Requires project.settings.manage; API keys also need delete scope.
createProjectCreate a project.
updateProjectUpdate a project. Requires project.settings.manage.
createDeploymentCreate a deployment. Requires project.deploy.execute.
deleteDomainRemove a custom domain. Requires project.domains.write.
deleteProjectDelete a project. Requires project.delete; API keys also need delete scope.
createEnvironmentCreate an environment. Requires project.environments.manage.
updateEnvironmentUpdate an environment. Requires project.environments.manage.
deleteEnvironmentDelete an environment. Requires project.environments.manage.
createEnvironmentVariableCreate an environment variable; a key that exists already is a conflict. Requires project.env_vars.write.
updateEnvironmentVariableChange the value or the key of one environment variable. Requires project.env_vars.write.
deleteEnvironmentVariableDelete an environment variable. Requires project.env_vars.write.
writeEnvironmentVariableSet one environment variable, creating it or replacing its value. Requires project.env_vars.write.
createDomainAdd a custom domain. Requires project.domains.write.
createReleaseCreate a release. Requires project.releases.write.
deleteReleaseDelete a release. Requires project.releases.write; API keys also need delete scope.
startReleaseAssetManifestBuildStart manifest build. Requires project.files.write.
cancelSubscriptionSchedule the paid subscription of an account to end with its current billing period; returns the canceled subscription. Requires account.billing.manage.
updateSubscriptionChange the plan, billing cycle, seats or add-ons of an account; returns what changed, or a checkout URL when the change needs payment. Requires account.billing.manage.
createBillingPortalSessionOpen a Stripe billing portal session where a person changes payment methods, tax details or the renewal of an account; returns the portal URL. Requires account.billing.manage.
createUploadFolderCreate a folder in project uploads with a visibility. Requires project.uploads.write.
deleteUploadFolderDelete a folder's visibility settings and child folders and soft-delete every upload under its prefix. Requires project.uploads.write; API keys also need delete scope.
deleteUploadSoft-delete an upload so it no longer lists or downloads. Requires project.uploads.write; API keys also need delete scope.
moveUploadMove an upload to another path in the same project, keeping its ID. Requires project.uploads.write.
restoreUploadRestore a soft-deleted upload. Requires project.uploads.write.
createUploadCreate a pending upload at a project path and return the signed URL and headers for the PUT request that sends the bytes. Requires project.uploads.write.
moveUploadFolderMove a folder, its child folder settings and its active uploads to a new unused path. Requires project.uploads.write.
updateUploadVisibilitySet an upload's or folder's visibility to project, public or private. Requires project.uploads.admin.
deleteUploadVisibilityRemove the explicit visibility on an upload path or folder so it inherits from its parent folder or the project default again. Requires project.uploads.admin; API keys also need delete scope.
updateUploadGrantsReplace the complete list of user grants on an upload or folder; an empty list revokes every grant. Requires project.uploads.admin.
updateUploadGrantGrant one user read, write or admin access to an upload or folder, or change that grant, and leave the other grants unchanged. Requires project.uploads.admin.
deleteUploadGrantRevoke one user's grant on an upload or folder. Requires project.uploads.admin; API keys also need delete scope.
commitFilesCommit the files. Requires project.files.write.
updateDraftContentUpdate draft content. Requires project.files.write.
deleteDraftContentDelete draft content. Requires project.files.write; API keys also need delete scope.
commitDraftContentCommit draft content. Requires project.files.write.
createProjectFavoriteAdds the project to the caller's favorites and returns the favorite record; a repeat call returns the existing record. Requires project.read.
deleteProjectFavoriteRemoves the project from the caller's favorites; an absent favorite answers not_found. Requires project.read; API keys also need delete scope.
upsertFileChunksUpsert file chunks. Requires project.knowledge.write.
deleteFileChunksDelete file chunks. Requires project.knowledge.write; API keys also need delete scope.
upsertEmbeddingsUpsert embeddings. Requires project.knowledge.write.
deleteEmbeddingsDelete chunk embeddings. Requires project.knowledge.write; API keys also need delete scope.
createServerCreate a dedicated server for an environment. Requires project.runtime.manage.
deleteServerStart deleting a server. Requires project.runtime.manage; API keys also need delete scope.
createServerEnvironmentLinkLink a server environment. Requires project.runtime.manage.
deleteServerEnvironmentLinkUnlink a server environment. Requires project.runtime.manage; API keys also need delete scope.
importExternalFileImport external file. Requires project.uploads.write.
createExternalFileCreate external file. Requires project.integrations.connect.
updateExternalFileUpdate external file. Requires project.integrations.connect.
createExternalFolderCreate external folder. Requires project.integrations.connect.
moveExternalFileMove external file. Requires project.integrations.connect.
deleteExternalFileDelete external file. Requires project.integrations.connect; API keys also need delete scope.
createSandboxCreate a sandbox. Requires project.sandboxes.manage.
updateSandboxLifetimeUpdate sandbox lifetime. Requires project.sandboxes.manage.
deleteSandboxDelete a sandbox. Requires project.sandboxes.manage.
heartbeatSandboxRecord sandbox activity. Requires project.sandboxes.manage.
runSandboxCommandRun a sandbox command. Requires project.sandboxes.manage.
startSandboxBackgroundCommandStart a background command. Requires project.sandboxes.manage.
cancelSandboxBackgroundCommandCancel a background command. Requires project.sandboxes.manage.
writeSandboxFilesWrite sandbox files. Requires project.sandboxes.manage.
createScheduleCreate a recurring schedule that starts a task, a workflow or an agent on a cron expression, or, on REST and GraphQL only, activate a schedule declared in source (the MCP tool creates manual schedules only); returns the schedule: a new schedule is active, and a source schedule that was activated before keeps its current status. Requires project.runs.write.
updateScheduleChange the fields of a schedule, or pause and resume it with the status, where an omitted field keeps its value; returns the updated schedule. Requires project.runs.write.
deleteScheduleDelete a schedule that is no longer needed so that it starts no more runs; returns the acknowledgement ok: true. Requires project.runs.write; API keys also need delete scope.
createWebhookCreate a webhook when an external service must start an agent, task or workflow run, or when its deliveries must only be stored as webhook events; returns the webhook and its secret, which is shown only once. Requires project.agents.write.
updateWebhookChange the name, target, prompt template, event filter or status of a webhook, for example to enable or disable deliveries; returns the updated webhook. Requires project.agents.write.
deleteWebhookDelete a webhook that is no longer needed so that its URL refuses future deliveries; returns ok true once the webhook is deleted. Requires project.agents.write; API keys also need delete scope.
runWebhookSend a test payload to a webhook as an external sender posts it, to check its target and filter, also when the webhook is a draft or disabled; returns the webhook event that the call created.
replayWebhookEventSend the stored payload of a webhook event to the current target of the webhook again, for example after a failed run; returns the new webhook event that the replay created.
ensureChildAgentRunCreate or recover the child run of a parent run tool call.
createConversationStart a conversation in a project when a user or an agent opens a new thread, optionally with a first user message; a retry with the same idempotency key returns the same conversation. Requires project.conversations.create.
createConversationMessageAdd a user message to a conversation to send what the user typed; the parent message defaults to the selected branch and an idempotency key makes retries safe.
updateConversationMessageReplace the parts of an existing message to edit it in place; to keep the original, create a branch instead.
deleteConversationMessageDelete one message from a conversation only when the user asks to remove that message; the deletion needs editor access.
createConversationMessageBranchCreate a sibling of a message with new parts when the user edits an earlier message and wants to keep the original reply; the new message gets the parent and role of the original and becomes the selected branch.
updateConversationBranchSelectionSelect which branch is the current path of a conversation after the user switches branches, so that later messages continue from the selected message; returns the ID of the selected message.
createConversationParticipantAdd a user to a conversation as member or viewer to share a thread; the operation needs the admin relation.
deleteConversationParticipantRemove a user from a conversation to revoke the access of that participant to the thread; the operation needs the admin relation.
updateConversationReadStateAdvance the read cursor of the caller to a message of the conversation when the user has seen messages; the cursor never moves backwards.
updateConversationChange the title, summary, project or status (active or archived) of a conversation, for example to rename or archive a thread; a change of status, summary or project needs the admin relation.
deleteConversationDelete a conversation only when the user asks to remove the thread, so that it and its messages are no longer accessible; the deletion cannot be undone through the API and needs the admin relation.