---
title: "Deprecate flow"
method: POST
path: "/v1/whatsapp/flows/{flowId}/deprecate"
tags: ["WhatsApp Flows"]
---

# Deprecate flow

`POST /v1/whatsapp/flows/{flowId}/deprecate`

Deprecate a PUBLISHED flow. This is irreversible. Deprecated flows cannot be sent
or opened, but existing active sessions may continue until they complete.

## Path parameters

- `flowId` string, required

## Request body

- object
  - `accountId` string, required — WhatsApp social account ID

## Response `200`

Flow deprecated

- object
  - `success` boolean

## Other responses

- `400` — Flow is not in PUBLISHED status
- `401` — Unauthorized
- `404` — WhatsApp account not found

---

[API](https://skmtc.net/zernio/apis/zernio-api.md) · [All operations](https://skmtc.net/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zernio/zernio-api/revisions/51932b099b2f/schema)
