List QR codes
GET
/business/{phone_number_id}/message_qrdlsReturns your QR codes. To get one code, pass its code.
Image links aren't included by default. To get them, add qr_image_url.format(PNG) or qr_image_url.format(SVG) to fields.
Authorization
apiKey apikey<token>
Your HostMentor API key, from the dashboard under Messaging → WhatsApp → API keys.
In: header
Path Parameters
phone_number_id*string
ID of your WhatsApp number, from the dashboard or List your phone numbers. It isn't the phone number itself.
Query Parameters
code?string
Return only this QR code.
fields?string
Comma-separated fields to return.
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://wa.hostmentor.com/v3/business/106540352242922/message_qrdls?code=RPASB5GEAP6FO1&fields=code%2Cprefilled_message%2Cdeep_link_url%2Cqr_image_url.format%28PNG%29" \ -H "apikey: YOUR_API_KEY"{ "data": [ { "code": "RPASB5GEAP6FO1", "prefilled_message": "Hi, I'd like to know more about your hosting plans", "deep_link_url": "https://wa.me/message/RPASB5GEAP6FO1", "qr_image_url": "https://example.com/qr/RPASB5GEAP6FO1.png" } ]}