Cancels the active run for the specified agent thread.
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.
<Check title="Required Permissions" icon="key">The user must have permission to contribute to the thread.</Check>
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
threadId
The thread id.
Response
OK
id
The id of the entity.
createdOn
The date this entity was created.
createdBy
The id of the user who created this entity.
updatedOn
The date this entity was last modified.
updatedBy
The id of the user who last modified this entity.
type
The thread type.
title
The thread title.
status
The thread status.
isReadOnly
Whether the requester may only read this thread.
contributors
The users who explicitly joined this thread.
queue
The queued thread messages in dispatch order.
agentId
The agent used for the initial execution.
agentNameSnapshot
The immutable initial agent name.
executionOwnerUserId
The user whose permissions applied to the initial execution.
executionTriggeredByUserId
The user who triggered the initial execution.
executionType
The initial execution type.
executionSourceId
The entity that caused the initial execution.
modelProvider
The model provider.
modelName
The provider model name.
parentThreadId
The parent thread id.
projectId
The associated project id.
taskId
The associated task id.
clientId
The associated client id.
documentId
The associated document id.
startedOn
When execution started.
completedOn
When execution completed.
lastActivityOn
The latest activity timestamp.
lastActivityBy
The user responsible for the latest user-message activity.
failureReason
The failure reason.
lastSequence
The latest persisted event sequence.
latestThreadUpdateSequence
The latest event sequence that creates a thread update.
hasUpdate
Whether the requester has an unseen update.
isArchived
Whether the requester archived the thread.
archivedOn
When the requester archived the thread.
isPinned
Whether the requester pinned the thread.
pinnedOrder
The requester's pinned order.
isAwaitingAction
Whether the thread awaits user action.
pendingBatchConfirmation
Represents a pending batch confirmation for an agent thread.
pendingUserQuestion
Represents a pending user question for an agent thread.
usedConnectors
Connectors used successfully in this thread on detail responses.
contextWindowUsageRatio
The context-window usage ratio on detail responses.
rating
The personal-thread rating on detail responses.
Errors
404
Not Found Error

