Unify and manage your data

Cancel all active worker runs for a conversation

Learn more about cancel all active worker runs for a conversation.

Use the Cancel all active worker runs for a conversation to cancel all active worker runs for a conversation. This lets you stop all active work for a conversation in one call.

HTTP method and endpoint

Use the following HTTP method and endpoint path to cancel all active worker runs for a conversation.

POST {TenantURL}/ai/agentflow/api/v202605/{tenant_id}/lrt/jobs/cancel-by-conversation/{conversation_id}

The following table describes the endpoint path parameters.

ParameterTypeRequiredDescription
TenantURLStringYesThe base URL for your tenant.
conversation_idStringYesThe unique identifier of the conversation associated with the job.
tenant_idStringYesThe tenant identifier.

Request headers

The following request headers must be included.

HeaderValueRequired
Authorization<access_token>Yes

Request body

This operation does not require a request body.

Example request

Use the following example to see how a complete request is structured, with headers.

POST {TenantURL}/ai/agentflow/api/v202605/tenant-xyz/lrt/jobs/cancel-by-conversation/example-id
Authorization: <access_token>

Response body

The following table describes the fields returned in the response body.

ParameterTypeDescription
conversation_idStringThe unique identifier of the conversation.
job_idStringThe unique identifier of the job, if active runs were found.
statusStringThe status of the cancellation request.
messageStringA status message describing the result.

Example response

The following example shows a response with successful response.

{
  "conversation_id": "<string>",
  "job_id": "<string>",
  "status": "cancelling",
  "message": "<string>"
}

The following table lists the possible error responses returned by this API.

HTTP statusDescriptionRecommended action
422 Unprocessable EntityValidation ErrorReview the request parameters or body, correct the invalid values, and resend the request.