Create or update a QR code
POST
/business/{phone_number_id}/message_qrdlsCreates a QR code with a prefilled message. To change the message of an existing code, include its code; the QR image stays the same, so printed codes keep working.
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.
Request Body
application/json
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://wa.hostmentor.com/v3/business/106540352242922/message_qrdls" \ -H "apikey: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prefilled_message": "Hi, I\'d like to know more about your hosting plans", "generate_qr_image": "PNG" }'{ "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"}