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

threadIdstringRequiredformat: "uuid"
The thread id.

Response

OK
idstringOptionalformat: "uuid"
The id of the entity.
createdOnstringOptionalformat: "date-time"
The date this entity was created.
createdBystringOptionalformat: "uuid"
The id of the user who created this entity.
updatedOnstringOptionalformat: "date-time"
The date this entity was last modified.
updatedBystringOptionalformat: "uuid"
The id of the user who last modified this entity.
typestring or nullOptional
The thread type.
titlestring or nullOptional
The thread title.
statusstring or nullOptional
The thread status.
isReadOnlybooleanOptional
Whether the requester may only read this thread.
contributorslist of objects or nullOptional
The users who explicitly joined this thread.
queuelist of objects or nullOptional
The queued thread messages in dispatch order.
agentIdstring or nullOptionalformat: "uuid"
The agent used for the initial execution.
agentNameSnapshotstring or nullOptional
The immutable initial agent name.
executionOwnerUserIdstring or nullOptionalformat: "uuid"
The user whose permissions applied to the initial execution.
executionTriggeredByUserIdstring or nullOptionalformat: "uuid"
The user who triggered the initial execution.
executionTypestring or nullOptional
The initial execution type.
executionSourceIdstring or nullOptionalformat: "uuid"
The entity that caused the initial execution.
modelProviderstring or nullOptional
The model provider.
modelNamestring or nullOptional
The provider model name.
parentThreadIdstring or nullOptionalformat: "uuid"
The parent thread id.
projectIdstring or nullOptionalformat: "uuid"
The associated project id.
taskIdstring or nullOptionalformat: "uuid"
The associated task id.
clientIdstring or nullOptionalformat: "uuid"
The associated client id.
documentIdstring or nullOptionalformat: "uuid"
The associated document id.
startedOnstring or nullOptionalformat: "date-time"
When execution started.
completedOnstring or nullOptionalformat: "date-time"
When execution completed.
lastActivityOnstring or nullOptionalformat: "date-time"
The latest activity timestamp.
lastActivityBystring or nullOptionalformat: "uuid"

The user responsible for the latest user-message activity.

failureReasonstring or nullOptional
The failure reason.
lastSequencelongOptional
The latest persisted event sequence.
latestThreadUpdateSequencelongOptional
The latest event sequence that creates a thread update.
hasUpdatebooleanOptional
Whether the requester has an unseen update.
isArchivedbooleanOptional
Whether the requester archived the thread.
archivedOnstring or nullOptionalformat: "date-time"
When the requester archived the thread.
isPinnedbooleanOptional
Whether the requester pinned the thread.
pinnedOrderdouble or nullOptional
The requester's pinned order.
isAwaitingActionbooleanOptional
Whether the thread awaits user action.
pendingBatchConfirmationobjectOptional
Represents a pending batch confirmation for an agent thread.
pendingUserQuestionobjectOptional
Represents a pending user question for an agent thread.
usedConnectorslist of objects or nullOptional
Connectors used successfully in this thread on detail responses.
contextWindowUsageRatiodouble or nullOptional

The context-window usage ratio on detail responses.

ratingstring or nullOptional

The personal-thread rating on detail responses.

Errors

404
Not Found Error