---
title: "Start Whatsapp Selfhosted Qr"
method: POST
path: "/api/channels/whatsapp/auth/selfhosted/qr-start"
tags: ["channels", "channels", "whatsapp"]
---

# Start Whatsapp Selfhosted Qr

`POST /api/channels/whatsapp/auth/selfhosted/qr-start`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/channels/whatsapp/auth/selfhosted/qr-start`
- Auth: none declared

Start native WhatsApp QR auth via self-hosted whatsmeow bridge.

workspace_id comes from the request context (X-Workspace-Id header /
user's currently-active workspace) so the new channel_account row
lands in the workspace the user is actively viewing — not their
`default_workspace_id`, which would route the account to the wrong
place when the user is on a team workspace.

## Query parameters

- `existing_account_id` integer, nullable: DB channel_account.id for reconnect
- `sync_scope` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/d84e7dc9977d?raw)
