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

# Publish flow

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

## Request

- Base URL: `https://zernio.com/api`
- URL: `https://zernio.com/api/v1/whatsapp/flows/{flowId}/publish`
- Auth: HTTP bearer

Publish a DRAFT flow. This is irreversible. Once published, the flow and its JSON
become immutable and the flow can be sent to users. To update a published flow,
create a new flow (optionally cloning this one via cloneFlowId).

## Path parameters

- `flowId` string, required

## Request body

- object
  - `accountId` string, required: WhatsApp account ID

## Response `200`

Flow published

- object
  - `success` boolean

## Other responses

- `400`: Flow is not in DRAFT status or has validation errors
- `401`: Missing or invalid API key. `code` is `missing_credentials` when no Authorization header was sent and `invalid_credentials` when the key is unknown, revoked or expired.
- `404`: WhatsApp account not found

## Changes

- **2026-10-06** `f8c8f34fb41a`: 1 warning
  - added the new `account` enum value to the `details/budgetScope` response property for the response status `401`
- **2026-10-02** `d556591af3f6`: 7 info
  - added the optional property `code` to the response with the `401` status
  - added the optional property `details` to the response with the `401` status
  - added the optional property `docUrl` to the response with the `401` status
  - added the optional property `param` to the response with the `401` status
  - …3 more

[Operation history](https://skmtc.dev/zernio/apis/zernio-api/changes/v1/whatsapp/flows/:flowId/publish/post.md)

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) · [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/4e74db179e73?raw)
