project_id and their phone_number) via the SendZen backend API first, and then redirect the user to the Meta WhatsApp onboarding URL to complete WABA registration. SendZen will automatically link the newly registered number to their project in the background.POST https://api.sendzen.io/v1/waba/pre_registrationAuthorization: Bearer YOUR_PARTNER_API_KEY| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | integer | Yes | The ID of the target project in SendZen where this phone number should be assigned |
phone_number | string | Yes | The WhatsApp phone number of the customer (with country code, e.g., "1234567890") |
{
"project_id": 12345,
"phone_number": "12345678901"
}201 Created status with the following response body:{
"id": 1,
"project_id": 12345,
"phone_number": "12345678901"
}https://business.facebook.com/messaging/whatsapp/onboard/?app_id=1084368675447421&config_id=1394853824461250&extras=%7B%22featureType%22%3A%22whatsapp_business_app_onboarding%22%2C%22sessionInfoVersion%22%3A%223%22%2C%22version%22%3A%22v4-public-preview%22%2C%22features%22%3A[%7B%22name%22%3A%22marketing_messages_lite%22%7D]%7D{
"error": "Failed to create pre-registration record.",
"message": "Database failed to insert record."
}phone_number or project_id).project_id you are passing to the API is valid and belongs to your partner organization.