---
title: "Cancel message generation in a conversation"
method: POST
path: "/api/v1/w/{wId}/assistant/conversations/{cId}/cancel"
tags: ["Conversations"]
---

# Cancel message generation in a conversation

`POST /api/v1/w/{wId}/assistant/conversations/{cId}/cancel`

## Request

- Base URL: `https://dust.tt`
- URL: `https://dust.tt/api/v1/w/{wId}/assistant/conversations/{cId}/cancel`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/dust-tt/apis/dust-api-documentation/docs/api/v1/w/:wId/assistant/conversations/:cId/cancel/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `wId` string, required
- `cId` string, required

## Request body

- object
  - `messageIds` string[], required: List of message IDs to cancel generation for

## Response `200`

Message generation successfully canceled

- object
  - `success` boolean: Indicates if the cancellation was successful

## Other responses

- `400`: Invalid request (invalid query parameters or request body)

---

[API](https://skmtc.dev/dust-tt/apis/dust-api-documentation.md) - [All operations](https://skmtc.dev/dust-tt/apis/dust-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/dust-tt/apis/dust-api-documentation/revisions/abb1c0993938?raw)
