---
title: "Setup encryption"
method: POST
path: "/whatsapp/flows/{flow_id}/setup_encryption"
tags: ["WhatsApp Flows"]
---

# Setup encryption

`POST /whatsapp/flows/{flow_id}/setup_encryption`

Set up flows encryption for the WABA associated with this flow. Required for data endpoints.

## Request body

- object
  - `phone_number_id` string — Override phone number (optional)

## Response `200`

Encryption configured

- WhatsappFlowEncryptionSetupResponse
  - `data` object, required
    - `status` 'success' | 'already_configured', required
    - `message` string, required
    - `flows_encryption_configured` boolean, required

## Other responses

- `401` — Missing or invalid API key
- `404` — Resource not found
- `422` — Request validation failed

---

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