Skip to Content

Release a WhatsApp number to another organization

Reserves a disconnected WhatsApp number for the named Samva organization.

POST
/v1/whatsapp/business-accounts/{accountId}/release

Reserves a disconnected WhatsApp number for the named Samva organization. The recipient claims it through fresh Meta Embedded Signup for the same WhatsApp Business Account, Meta phone number ID, and E.164 number. The old account remains in history and cannot reconnect.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

accountId*string
Match^waba_[0-9a-hjkmnp-tv-z]{16,24}$

Request Body

application/json
  1. body
targetOrganizationId*OrganizationId
Match^org_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

Success

application/json
  1. response
success*true
Value intrue
Example Request
import { createClient } from "samva";

const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });

const result = await samva.whatsapp.releaseBusinessAccount({
  "accountId": "example",
  "targetOrganizationId": "example"
});
Example Response
{
  "success": true
}

Related documentation