cURL
curl --request POST \ --url https://api.wazapin.id/v1/waba/register-phone \ --header 'Content-Type: application/json' \ --header 'X-Api-Key: <api-key>' \ --data ' { "channel_id": "<string>", "waba_id": "<string>", "phone_number_id": "<string>" } '
Register a Meta phone number to a WABA channel.
POST /v1/waba/register-phone
curl -X POST "https://api.wazapin.id/v1/waba/register-phone" \ -H "X-Api-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "channel_id": "wzp_wu8f3k2p", "waba_id": "123456789012345", "phone_number_id": "987654321098765" }'
{ "data": { "channel_id": "wzp_wu8f3k2p", "status": "registered" } }
{ "title": "Bad Request", "status": 400, "detail": "phone_number_id is required" }