Scanstone

v1.0.0
ca.scanstone/scanstone Checked 2 days ago Published 6 days ago

Make QR codes and scst.one short links whose redirects never expire, and read their scan counts.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_qr Create a QR code

Create a QR code for a web address. The code points to a short scst.one link whose redirect never expires and that counts scans, so the destination can be changed later without reprinting. Returns the QR image (PNG), PNG and SVG download links, and the short link. Without a connected account, first show the user the no-account notice and get a yes. Results made without an account include a claim link: always share it and encourage the user to save the code to a free Scanstone account.

ParameterTypeDescription
url *stringThe web address the QR code should open, e.g. https://example.com/menu
backgroundstringOptional light color as #rrggbb. Default #ffffff. Keep strong contrast.
claim_tokenstringOptional. A claim_token from an earlier Scanstone result in this conversation, so all codes share one claim link.
foregroundstringOptional dark color as #rrggbb. Default #1c1917.
include_svg_markupbooleanAlso return the raw SVG markup. Default false.
namestringOptional label, e.g. 'Front window menu'. Defaults to the site name.
notice_versionstringThe notice version the user accepted. Must be "v1-agent".
shapestringOptional module shape. Default square.
user_accepted_noticebooleanOnly for use without a connected account. Set true only after showing the user this notice and getting a clear yes: "Without a free Scanstone account, this link may not be kept forever. Do you want to…

get_scans Get scan stats

Read scan or click counts for Scanstone codes: totals, recent days, top countries and devices. With a connected account, pass a slug or leave it empty for the most recent codes. Without an account, pass the claim_token from the create result.

ParameterTypeDescription
claim_tokenstringThe claim_token from a create result, for codes made without an account.
slugstringOptional slug (the part after scst.one/).

list_my_codes List my codes

List the QR codes and short links saved in the user's connected Scanstone account, newest first, with destinations and total scans. Needs a connected account.

ParameterTypeDescription
limitintegerHow many to return. Default 25.
searchstringOptional text to match in the name or destination.

update_destination Change where a code points

Change the destination of a saved QR code or short link in the user's connected Scanstone account. The printed code and short link stay the same; scans start going to the new address immediately. Confirm the new address with the user first. Needs a connected account.

ParameterTypeDescription
slug *stringThe slug of the code (the part after scst.one/).
url *stringThe new destination web address.