Branch #14 docs/api/14-qr-proxy.md

16. QR Proxy (Pretty URL)

Branch #14 — Endpoint tạo QR hot-link cho email, social post, landing page mà không cần Bearer.

Endpoints

GET
https://bizgpt.vn/create-qr-code/?data={url}&size=300x300&ecc=H&format=png

Tạo QR trực tiếp qua URL

Auth: Public

Method Path Auth Mô tả
GET https://bizgpt.vn/create-qr-code/?data={url}&size=300x300&ecc=H&format=png Public Tạo QR trực tiếp qua URL

Query Examples

GET Tạo QR trực tiếp qua URL
curl -X GET "https://bizgpt.vn/create-qr-code/?data={url}&size=300x300&ecc=H&format=png"
const res = await fetch('https://bizgpt.vn/create-qr-code/?data={url}&size=300x300&ecc=H&format=png', {
  method: 'GET',
});
const data = await res.json();
console.log(data);
import requests
url = "https://bizgpt.vn/create-qr-code/?data={url}&size=300x300&ecc=H&format=png"
headers = {}
res = requests.get(url, headers=headers)
print(res.json())

Use Cases

  • Nhúng QR vào email signature, poster, catalogue.
  • Tạo QR cho chiến dịch Facebook/Zalo tức thời.
  • Kết nối offline -> online bằng QR một cách đơn giản.

Implementation Steps

  1. Encode URL target an toàn trước khi truyền.
  2. Dùng cache-control cho tài nguyên static.
  3. Theo dõi hiệu quả bằng link tracking đích.

Quick Start cURL

bash
curl -X GET "https://bizgpt.vn/create-qr-code/?data=https%3A%2F%2Fbizcity.vn&size=300x300&ecc=H&format=png" -o qr.png
Canonical Spec

docs/api/14-qr-proxy.md