OverviewPlatformsAPI ReferenceResources

Register a connected WhatsApp number on the Cloud API

POSThttps://zernio.com/api/v1/accounts/{accountId}/whatsapp/register

Re-runs Meta's Cloud API registration for a WhatsApp account that is already connected.

Use it when the number has its own two-step verification PIN. The connect flows register with a default PIN, and Meta rejects that with error 133005.

The number then fails every send with the misleading '(#200) You do not have the necessary permission to send messages' while the account still shows as connected.

The PIN is used for this call only and is not stored.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

accountIdstringRequired

The WhatsApp account ID

Body

application/json
Optional parameters1 field
pinstring

The 6-digit two-step verification PIN set on the number. Omitting it applies Zernio's managed default registration PIN, the same one every Embedded Signup connect sets automatically.

Responses

Success· the request worked

Errors· the request failed

POST/v1/accounts/{accountId}/whatsapp/register
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsapp.registerWhatsAppNumber({  path: {    accountId: 'account_abc123',  },  body: {    pin: 'string',  },});console.log(data);
{  "registered": true,  "accountId": "string",  "phoneNumberId": "string"}
OpenAPI specification
Was this page helpful?