QR Codes - Dynamic
GET
https://qreq.com/api/qr-codes-dynamic
curl --request GET \
--url 'https://qreq.com/api/qr-codes-dynamic' \
--header 'Authorization: Bearer {api_key}'
{
"data": [
{
"id": 10,
"name": "Promo QR",
"type": "url",
"destination_url": "https://example.com/special-offer",
"short_url": "https://qreq.com/d/abc123",
"qr_code": "https://qreq.com/uploads/qrcodes/10.png",
"scans": 152,
"status": "active",
"datetime": "2025-01-15 11:30:00"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://qreq.com/api/qr-codes-dynamic?page=1",
"last": "https://qreq.com/api/qr-codes-dynamic?page=1",
"next": null,
"prev": null,
"self": "https://qreq.com/api/qr-codes-dynamic?page=1"
}
}
GET
https://qreq.com/api/qr-codes-dynamic/{qr_id}
curl --request GET \ --url 'https://qreq.com/api/qr-codes-dynamic/{qr_id}' \ --header 'Authorization: Bearer {api_key}'
{
"data": {
"id": 10,
"name": "Promo QR",
"type": "url",
"destination_url": "https://example.com/special-offer",
"short_url": "https://qreq.com/d/abc123",
"qr_code": "https://qreq.com/uploads/qrcodes/10.png",
"scans": 152,
"status": "active",
"datetime": "2025-01-15 11:30:00"
}
}
POST
https://qreq.com/api/qr-codes-dynamic
Parameters | Details | Description |
---|---|---|
name | Required String | Name of the QR code |
type | Required String | Type of QR (url, text, email, phone, etc.) |
destination_url | Required String | Target URL or redirect destination |
status | Optional String | active / inactive |
curl --request POST \ --url 'https://qreq.com/api/qr-codes-dynamic' \ --header 'Authorization: Bearer {api_key}' \ --header 'Content-Type: multipart/form-data' \ --form 'name=Promo QR' \ --form 'type=url' \ --form 'destination_url=https://example.com/special-offer' \ --form 'status=active'
POST
https://qreq.com/api/qr-codes-dynamic/{qr_id}
Parameters | Details | Description |
---|---|---|
name | Optional String | Update QR name |
destination_url | Optional String | Update redirect URL |
status | Optional String | active / inactive |
DELETE
https://qreq.com/api/qr-codes-dynamic/{qr_id}
curl --request DELETE \ --url 'https://qreq.com/api/qr-codes-dynamic/{qr_id}' \ --header 'Authorization: Bearer {api_key}'