The GetQR API is in beta and is available to selected workspaces. Details may change before the general release.
styles, frameOptions and logoOptions. It never carries content or a link. Templates are shared by everyone in the workspace.
Apply a template
PasstemplateId when you create a QR code. The template’s design is applied to the new QR code. Any of the three design objects you send in the same request are merged on top of it.
- Copied, not linked. The QR code keeps its own copy of the design. Editing or deleting the template later doesn’t change it.
- Custom designs only. A template with
designKindbrandedoraican’t be applied through the API and returns422(art_template_unsupported). - Your workspace only. An unknown template, or one from another workspace, returns
404.
Headers
string
required
Bearer followed by your API key. See Authentication.string
application/json. Required on requests with a body.The template object
string
ID of the template, for example
qrt_8Hs2mQvKpLd4RtYw.string
Name shown when picking a template.
string
Read-only.
custom is a design the API can edit in full. branded and ai are a Branded design or AI design made in the dashboard: its picture can’t be edited through the API, and it is kept when you change the other design fields.object
The stored design. Each field has the same shape as the request field of the same name, so you can send it back.
string
Creation date, ISO 8601.
string
Last update date, ISO 8601.
List templates
GET /api/v1/templates
Returns the templates of your workspace, newest first. The list is paginated: see Pagination.
integer
default:"1"
Page to return, 1 or higher.
integer
default:"100"
Results per page, 1 to 100.
Create a template
POST /api/v1/templates
Saves a new design. Answers 201 Created. The design fields are checked against the catalogs in Customization, so an unknown shape, frame or logo is rejected with 422.
string
required
Name shown when picking a template, 1 to 40 characters.
object
Dot and corner shapes and colors. See Customization.
object
Frame drawn around the QR code and its call-to-action text. See Customization.
object
Logo placed in the center: a suggested logo, or your own file uploaded with the
logo target of Files. See Customization.Get a template
GET /api/v1/templates/{templateId}
string
required
ID of the template. Take it from the list or create response.
Update a template
PATCH /api/v1/templates/{templateId}
Send only the fields you want to change. Design objects are merged into the stored design, so a partial styles keeps the rest. QR codes already created from the template keep the design they were made with.
string
required
ID of the template.
string
New name, 1 to 40 characters.
object
Style changes, merged into the stored
styles.object
Frame changes, merged into the stored frame.
object
Logo changes, merged into the stored logo.
Delete a template
DELETE /api/v1/templates/{templateId}
Deletes the template. QR codes created from it keep their design.
string
required
ID of the template.
Duplicate a template
POST /api/v1/templates/{templateId}/duplicate
Creates a copy named <name> copy, with its own ID and an independent design you can edit freely. Takes no request body. Answers 201 Created.
string
required
ID of the template to copy.
Common issues
404 "QR template not found."
404 "QR template not found."
The
templateId doesn’t match a template in your workspace. Take it from List templates.422 when creating or updating a template
422 when creating or updating a template
A design field doesn’t match the catalogs, for example an unknown dot type, frame or suggested logo. The message names the field. See Customization.
422 art_template_unsupported when creating a QR code
422 art_template_unsupported when creating a QR code
The template uses a Branded design or AI design. Apply a template with
designKind custom instead.