curl -G "https://api.scanova.io/qr/QR7K9M2XN/download/" \
-H "Authorization: YOUR_API_KEY" \
-d file=svg \
-d size=600 \
-o "product-launch-flyer.svg"
Descargar la imagen de un código QR
GET /qr//download/
curl -G "https://api.scanova.io/qr/QR7K9M2XN/download/" \
-H "Authorization: YOUR_API_KEY" \
-d file=svg \
-d size=600 \
-o "product-launch-flyer.svg"
api.scanova.io), autenticado con tu clave sin procesar de la API de gestión.
GET https://api.scanova.io/qr/{qrid}/download/
Authorization: YOUR_API_KEY
qrid del código QR, p. ej. QR7K9M2XN./qrcode/{qrid}/download/ también sigue siendo accesible, por compatibilidad con versiones anteriores — misma vista, mismo comportamiento.Parámetros de consulta
png, jpg, jpeg, svg, pdf, eps o ps.10 a 2400.true, devuelve un PDF listo para imprimir generado localmente (no a través del servicio generador de imágenes) e ignora file.Respuesta
Una solicitud exitosa devuelve la imagen como una descarga de archivo binario (Content-Disposition: attachment), con un nombre de archivo derivado del nombre del código QR (o su qrid si no tiene nombre).
curl -G "https://api.scanova.io/qr/QR7K9M2XN/download/" \
-H "Authorization: YOUR_API_KEY" \
-d file=svg \
-d size=600 \
-o "product-launch-flyer.svg"
Errores
size está fuera del rango 10–2400, o file no es uno de los formatos admitidos.qrid no existe, o no pertenece a la cuenta a la que pertenece la clave.Relacionado
- Listar / crear códigos QR — encuentra el
qridque descargar aquí. - Obtener, actualizar, eliminar un código QR — obtén los detalles completos de un código QR en lugar de su imagen renderizada.
Autorizaciones
Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: YOUR_API_KEY. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.
Parámetros de ruta
The QR code's qrid — the opaque public identifier returned by the list endpoint, not the numeric id.
Parámetros de consulta
Output size in pixels, from 10 to 2400.
Return a print-ready PDF, generated locally rather than via the generator service.
Output format.
png, jpg, jpeg, svg, pdf, eps, ps Pre-computed encode payload override, for static categories whose client-side encoding the backend does not reproduce.
Respuesta
The rendered image, as a binary attachment.
¿Esta página le ayudó?