Cancels the active run in the specified personal-agent or custom-agent conversation and returns the thread. A successful cancellation also pauses dispatch of the next queued message.
Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Path parameters
threadIdstringRequiredThe thread id.
Responses
200 OK
application/json
idstringOptionalThe id of the entity.
createdOnstringOptionalThe date this entity was created.
createdBystringOptionalThe id of the user who created this entity.
updatedBystringOptionalThe id of the user who last modified this entity.
usageobjectOptionalRecorded usage converted with the current reporting credit rates.
Show 2 properties
creditsUsedintegerOptionalWhole-credit total rounded up once.
lastUsageOnstring or nullOptionalTime of the latest included usage record; this does not indicate run completion.
updatedOnstringOptionalThe parent timestamp used to order thread queue snapshots, with subsecond precision.
typestring or nullOptionalThe thread type.
titlestring or nullOptionalThe thread title.
statusstring or nullOptionalThe thread status.
isReadOnlybooleanOptionalWhether the requester may only read this thread.
isSharedbooleanOptionalWhether this directly shareable thread currently has active shares.
viewerAccessobjectOptionalDescribes the requester's current shared-thread capabilities.
Show 10 properties
canReadbooleanOptionalWhether the requester can read the thread.
canWritebooleanOptionalWhether the effective share grants Manage access. The field name preserves the existing API contract.
isJoinedbooleanOptionalWhether the requester joined the thread.
canJoinbooleanOptionalWhether the requester can Join.
canSendbooleanOptionalWhether the requester can send.
canStopbooleanOptionalWhether the requester can stop active work.
canManageThreadbooleanOptionalWhether the requester can rename or delete the thread.
canManageSharingbooleanOptionalWhether the requester can manage sharing.
canLeavebooleanOptionalWhether the requester can leave.
sendBlockedReasonstring or nullOptionalThe reason that prevents sending.
contributorsarray of object or nullOptionalThe users who explicitly joined this thread.
Show 3 properties
idstringOptionalThe contributor identifier.
userIdstringOptionalThe user identifier.
accessLevelstring or nullOptionalThe contributor access level.
activityUsersarray of object or nullOptionalCurrent details for users referenced by membership and sharing activities on detail responses.
Show 4 properties
idstringOptionalThe identifier of the nested model.
firstNamestring or nullOptionalThe first name of the user.
lastNamestring or nullOptionalThe last name of the user.
hasImageboolean or nullOptionalWhether this user has a profile image.
queuearray of object or nullOptionalThe queued thread messages in dispatch order.
Show 13 properties
idstringOptionalThe id of the entity.
createdOnstringOptionalThe date this entity was created.
createdBystringOptionalThe id of the user who created this entity.
updatedOnstringOptionalThe date this entity was last modified.
updatedBystringOptionalThe id of the user who last modified this entity.
threadUpdatedOnstring or nullOptionalThe parent timestamp saved with an edit; absent on queue snapshot rows.
threadIdstringOptionalThe owning thread id.
queueOrderintegerOptionalThe position in the queue.
displayTextstring or nullOptionalThe text shown in the queue.
payloadobjectOptionalSubmits a follow-up message or answers a pending question in an agent conversation.
Show 11 properties
presetKeystring or nullOptionalThe custom-agent preset. Its current settings override the supplied model and reasoning.
contentstring or nullOptionalThe message text. Required when no attachments are supplied.
attachmentsarray of object or nullOptional20 Up to 20 distinct files attached to this message. Each file can contain up to 20 MiB. Upload new files before submitting their identifiers.
Show 2 properties
temporaryFileIdstring or nullOptionalThe identifier returned when uploading a temporary file. Do not also supply aworkFileId.
aworkFileIdstring or nullOptionalThe identifier of an existing awork file the caller can read. Do not also supply temporaryFileId.
modelProviderstring or nullOptionalThe provider for a model override. Supply it together with modelName.
modelNamestring or nullOptionalThe model to use for this message. It must be available in the workspace.
reasoningLevelstring or nullOptionalThe reasoning level for this message. Supported values depend on the selected model.
toolAccessobjectOptionalPer-message agent tool access options.
Show 4 properties
aworkbooleanOptionalWhether awork tools are enabled for this run.
webSearchbooleanOptionalWhether web search is enabled for this run.
googleGenAibooleanOptionalWhether Google GenAI tools are enabled for this run.
openAiImageGenerationbooleanOptionalWhether OpenAI image generation is enabled for this run.
connectorIdsarray of string or nullOptionalThe connector selection for this message.
connectorConnectionsarray of object or nullOptionalConnection choices for custom-agent connectors. These do not change agent settings.
Show 2 properties
connectorIdstringOptionalThe connector identifier.
connectionIdstringOptionalThe connection identifier.
skillIdsarray of string or nullOptionalThe skill selection for this message.
answerToInterruptIdstring or nullOptionalThe interrupt identifier returned with the question being answered.
attachmentsarray of object or nullOptionalAttachment display metadata resolved by the server. This metadata is not part of the editable request.
Show 5 properties
idstring or nullOptionalThe resource id.
namestring or nullOptionalThe display name.
mimeTypestring or nullOptionalThe file media type.
sandboxPathstring or nullOptionalThe canonical sandbox path assigned after file promotion.
downloadUrlstring or nullOptionalThe relative file download URL.
responsibleUserIdstringOptionalThe user whose permissions apply at dispatch time.
blockedReasonstring or nullOptionalThe stable reason that prevents automatic dispatch.
agentIdstring or nullOptionalThe agent used for the initial execution.
agentNameSnapshotstring or nullOptionalThe immutable initial agent name.
executionOwnerUserIdstring or nullOptionalThe user whose permissions applied to the initial execution.
executionTriggeredByUserIdstring or nullOptionalThe user who triggered the initial execution.
executionTypestring or nullOptionalThe initial execution type.
executionSourceIdstring or nullOptionalThe entity that caused the initial execution.
modelProviderstring or nullOptionalThe model provider.
modelNamestring or nullOptionalThe provider model name.
parentThreadIdstring or nullOptionalThe parent thread id.
projectIdstring or nullOptionalThe associated project id.
taskIdstring or nullOptionalThe associated task id.
clientIdstring or nullOptionalThe associated client id.
documentIdstring or nullOptionalThe associated document id.
startedOnstring or nullOptionalWhen execution started.
completedOnstring or nullOptionalWhen execution completed.
lastActivityOnstring or nullOptionalThe latest activity timestamp.
lastActivityBystring or nullOptionalThe user responsible for the latest user-message activity.
failureReasonstring or nullOptionalThe failure reason.
lastSequenceintegerOptionalThe latest persisted event sequence.
latestThreadUpdateSequenceintegerOptionalThe latest event sequence that creates a thread update.
hasUpdatebooleanOptionalWhether the requester has an unseen update.
isUnseenbooleanOptionalWhether the requester explicitly marked this thread unseen.
isArchivedbooleanOptionalWhether the requester archived the thread.
archivedOnstring or nullOptionalWhen the requester archived the thread.
isPinnedbooleanOptionalWhether the requester pinned the thread.
pinnedOrdernumber or nullOptionalThe requester's pinned order.
listStateUpdatedOnstring or nullOptionalWhen the requester's archive or pin state last changed.
isAwaitingActionbooleanOptionalWhether the thread awaits user action.
pendingBatchConfirmationobjectOptionalRepresents a pending batch confirmation for an agent thread.
Show 6 properties
confirmationIdstring or nullOptionalThe confirmation id.
confirmationMessagestring or nullOptionalThe confirmation message.
affectedItemCountintegerOptionalThe affected item count.
isDestructivebooleanOptionalWhether the action is destructive.
confirmationDetailsobjectOptionalDetailed confirmation information for the UI with both English and German translations.
Show 13 properties
headerMessageEnstring or nullOptionalThe English confirmation heading.
headerMessageDestring or nullOptionalThe German confirmation heading.
descriptionEnstring or nullOptionalThe English text below the heading that explains the action, or null when the heading is enough.
descriptionDestring or nullOptionalThe German text below the heading that explains the action, or null when the heading is enough.
confirmationQuestionEnstring or nullOptionalThe English confirmation question.
confirmationQuestionDestring or nullOptionalThe German confirmation question.
confirmButtonTextEnstring or nullOptionalThe English confirm button label.
confirmButtonTextDestring or nullOptionalThe German confirm button label.
cancelButtonTextEnstring or nullOptionalThe English cancel button label.
cancelButtonTextDestring or nullOptionalThe German cancel button label.
isDestructivebooleanOptionalWhether the action is destructive.
totalItemCountintegerOptionalThe total item count.
actionsarray of object or nullOptionalThe actions that require confirmation.
Show 7 properties
actionDescriptionEnstring or nullOptionalThe English action description.
actionDescriptionDestring or nullOptionalThe German action description.
itemNamesarray of string or nullOptionalThe displayed affected item names.
itemsToggleLabelEnstring or nullOptionalThe English label of a toggle that shows the item names. When set, the item names start hidden.
itemsToggleLabelDestring or nullOptionalThe German label of a toggle that shows the item names. When set, the item names start hidden.
itemCountintegerOptionalThe item count.
hasMoreItemsbooleanOptionalWhether more affected items exist.
pendingToolCallsarray of object or nullOptionalThe tool calls awaiting confirmation.
Show 7 properties
idstring or nullOptionalThe provider tool call identifier.
toolNamestring or nullOptionalThe runtime tool that was called.
connectorIdstring or nullOptionalThe connector that supplied the tool, if applicable.
connectionIdstring or nullOptionalThe connector connection used by the tool, if applicable.
argumentsobject or nullOptionalThe structured arguments supplied to the tool.
Show schema
object or null
Additional properties
any
responsestring or nullOptionalThe serialized tool result.
chartBlockstring or nullOptionalThe serialized native chart block produced by code mode, when present.
pendingUserQuestionobjectOptionalRepresents a pending user question for an agent thread.
Show 2 properties
toolCallIdstring or nullOptionalThe tool call id.
userQuestionobjectOptionalDescribes a user action that must complete before an agent run can resume.
Show 10 properties
questionstring or nullOptionalThe user-facing question.
optionsarray of string or nullOptionalThe bounded selectable answers.
allowCustomTextbooleanOptionalWhether a custom text answer is accepted.
interactionTypestring or nullOptionalThe structured interaction type.
skillIdstring or nullOptionalThe skill whose secure access form is requested.
skillAgentIdstring or nullOptionalThe agent granting access to the skill, when needed.
connectorIdstring or nullOptionalThe connector that requires user action.
connectionIdstring or nullOptionalThe connection that requires reauthorization.
connectorNamestring or nullOptionalThe safe connector display name.
connectionActionstring or nullOptionalThe enable or reconnect action.
usedConnectorsarray of object or nullOptionalConnectors used successfully in this thread on detail responses.
Show 3 properties
idstringOptionalThe connector identifier.
namestring or nullOptionalThe connector name captured at its latest successful use.
logoPathstring or nullOptionalThe predefined connector logo path, when available.
contextWindowUsageRationumber or nullOptionalThe context-window usage ratio on detail responses.
ratingstring or nullOptionalThe personal-thread rating on detail responses.
404 Not Found
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.