HostMentor Docs

List your phone numbers

GET/getuserdetails

Returns the WhatsApp numbers your API key can use, with their phone_number_id and waba_id. It's a good first call to check that your key works.

Authorization

apiKey
apikey<token>

Your HostMentor API key, from the dashboard under Messaging → WhatsApp → API keys.

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://wa.hostmentor.com/v3/getuserdetails" \  -H "apikey: YOUR_API_KEY"
{  "code": 200,  "status": "SUCCESS",  "data": [    {      "whatsapp_business_account_id": "105954558954427",      "wanumber": "+919876500000",      "phone_number_id": "106540352242922"    }  ]}