---
updatedAt: 2026-10-30T08:42:27.000Z
agentTools:
  projectIndex: https://docs.wati.io/llms.txt
---

# Cancel conversation scan

Request cancellation of a scan owned by the current user. The service rechecks permissions and returns the updated scan state.

### Permissions

For API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `conversationsv3:read`, `wati_integration:read`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body. Allowed roles: `DEVELOPER`, `TRIAL`, `ADMINISTRATOR`, `EXTERNAL_ADMINISTRATOR`, `PARTNER_ADMINISTRATOR`, `AI_OPERATOR`, or `API_TOKEN`. A user with `FLEXI_TRIAL` or `FLEXI_PAID` is explicitly denied, even if another listed role is present. A qualifying outstanding invoice can also result in a 403 response.

### Plan availability

Commercial plan policy: this operation is included in Growth, Pro and Business. Cancellation is not restricted by subscription plan; the scan must belong to the current user and pass the normal permission checks. Authentication, roles, scopes and workspace/channel requirements still apply. See [Endpoint availability by plan](https://docs.wati.io/reference/endpoint-availability-by-plan).

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "WATI API",
    "version": "2.6",
    "description": "Documentation contract version 2.6. Use V3 for supported business operations, adopting its request, response, defaults and pagination. Retain V1/V2 only for the business exceptions listed in Introduction. API route versions are independent of this artifact version.\n\nSend Authorization: Bearer <your-token> with the workspace credential and regional API host. API route version does not select the authentication mechanism. Endpoint scopes, roles, account availability and channel access still apply; consult Authentication and each operation.\n\nChannel support is operation-specific. GET /api/ext/v3/channels lists additional connected channels and may exclude the default WhatsApp number; do not infer full channel coverage or permission to send from discovery alone.\n\nInspect HTTP status and business result separately. Some operations report business failure or partial recipient failure in HTTP 200. Authorization errors may have no JSON body. A 429 can indicate a rate or usage limit. For unknown write outcomes, reconcile state before retrying; do not assume idempotency.\n\nCreate webhook subscriptions through the documented V2 exception or the dashboard, then manage them through V3. Use supported event types for the workspace and distinguish request acceptance from final message delivery.",
    "contact": {
      "name": "WATI Support",
      "url": "https://docs.wati.io"
    }
  },
  "servers": [
    {
      "url": "https://live-mt-server.wati.io",
      "description": "WATI API host. Legacy v1 and v2 endpoints require tenantId in the path; v3 endpoints do not."
    }
  ],
  "tags": [
    {
      "name": "Conversations",
      "description": "Send messages (text, file, interactive), manage conversation status and operator assignment."
    }
  ],
  "paths": {
    "/api/ext/v3/conversations/scans/{scanId}/cancel": {
      "post": {
        "summary": "Cancel conversation scan",
        "description": "Request cancellation of a scan owned by the current user. The service rechecks permissions and returns the updated scan state.\n\n### Permissions\n\nFor API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `conversationsv3:read`, `wati_integration:read`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body. Allowed roles: `DEVELOPER`, `TRIAL`, `ADMINISTRATOR`, `EXTERNAL_ADMINISTRATOR`, `PARTNER_ADMINISTRATOR`, `AI_OPERATOR`, or `API_TOKEN`. A user with `FLEXI_TRIAL` or `FLEXI_PAID` is explicitly denied, even if another listed role is present. A qualifying outstanding invoice can also result in a 403 response.\n\n### Plan availability\n\nCommercial plan policy: this operation is included in Growth, Pro and Business. Cancellation is not restricted by subscription plan; the scan must belong to the current user and pass the normal permission checks. Authentication, roles, scopes and workspace/channel requirements still apply. See [Endpoint availability by plan](https://docs.wati.io/reference/endpoint-availability-by-plan).",
        "operationId": "ConversationQuery_Cancelconversationscan",
        "tags": [
          "Conversations"
        ],
        "x-wati-permissions": {
          "scopeRequirementGroups": [
            {
              "anyOf": [
                "api",
                "conversationsv3:read",
                "wati_integration:read"
              ]
            }
          ],
          "groupOperator": "allOf",
          "appliesTo": [
            "ApiAccessToken",
            "OIDC"
          ],
          "legacyJwtScopeCheck": "skipped",
          "apiAccessTokenHierarchy": "configured-by-identity-provider",
          "oidcFallbackWhenNoEndpointScope": null,
          "sourceCommit": "f7d7bef54fc6591851b145b7bdf12ed2c3a2534f"
        },
        "responses": {
          "200": {
            "description": "Updated scan state.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "scan_id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "result_mode": {
                      "type": "string"
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "started_at": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true
                    },
                    "completed_at": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true
                    },
                    "processed_count": {
                      "type": "integer",
                      "format": "int64"
                    },
                    "matched_count_so_far": {
                      "type": "integer",
                      "format": "int64"
                    },
                    "conversation_count": {
                      "type": "integer",
                      "format": "int64",
                      "nullable": true
                    },
                    "exact": {
                      "type": "boolean"
                    },
                    "context_complete": {
                      "type": "boolean"
                    },
                    "consistency": {
                      "type": "string"
                    },
                    "error_code": {
                      "type": "string"
                    },
                    "retry_after_seconds": {
                      "type": "integer",
                      "format": "int32"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The request is unauthorized."
          },
          "403": {
            "description": "Access denied by credential scopes, role or FLEXI exclusion, workspace permissions, or billing-related restrictions. Dunning can return JSON with an error field; other denials may have no JSON body."
          },
          "429": {
            "description": "Too many requests. Either the rate limit has been exceeded or usage limits have been reached."
          },
          "500": {
            "description": "Unexpected error occurred. Please try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnexpectedErrorResponse"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "scanId",
            "in": "path",
            "required": true,
            "description": "Scan ID returned by a query that starts an asynchronous scan.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "UnexpectedErrorResponse": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The error code associated with the error.",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "description": "The descriptive error message explaining what went wrong.",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "description": "The timestamp indicating when the error was recorded.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Represents an unexpected error."
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API token from your WATI Dashboard > API Settings. Pass as `Authorization: Bearer <token>`."
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}
```