Release a WhatsApp number to another organization
Reserves a disconnected WhatsApp number for the named Samva organization.
POST
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.
apiKeyheader
x-api-key<token>accountId*stringMatch
^waba_[0-9a-hjkmnp-tv-z]{16,24}$application/json- body
targetOrganizationId*OrganizationIdMatch
^org_[0-9a-hjkmnp-tv-z]{16,24}$Success
application/json- response
success*trueValue in
trueimport { 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
}