Forms
Form QR code
Returns the form's public link as an SVG QR code.
GET
https://app.getera.io/api/forms/{slug}/qrNone (public)
Draws a QR code pointing at the form's /public/forms/<slug> link. The QR code next to Copy link and Embed code in the form editor comes from this address too. Use it on a poster, a menu or a business card.
Path parameter
| Name | Type | Required | Description |
|---|---|---|---|
slug | string | Yes | The form's short name. Letters, numbers and hyphens; at most 80 characters. |
Query parameter
| Name | Type | Required | Description |
|---|---|---|---|
download | 1 | No | When given, the response downloads as a file named form-<slug>-qr.svg. |
Example
curl -o form-qr.svg "https://app.getera.io/api/forms/demo-contact/qr?download=1"Response
An SVG image of type image/svg+xml. The response may be cached for five minutes.
Errors
| Status | When |
|---|---|
404 | The short name is not in a valid form. |
The QR code holds only the link; it does not check whether the form is published. A closed form still gets a code, but the form will not accept answers when the link is opened.